| |
| <!DOCTYPE HTML> |
| <html lang="zh_CN" > |
| <head> |
| <meta charset="UTF-8"> |
| <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> |
| <title>hidden · GitBook</title> |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| <meta name="description" content=""> |
| <meta name="generator" content="GitBook 3.2.3"> |
| |
| |
| |
| |
| <link rel="stylesheet" href="../../gitbook/style.css"> |
| |
| |
| |
| |
| <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css"> |
| |
| |
| |
| <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css"> |
| |
| |
| |
| <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css"> |
| |
| |
| |
| |
| |
| |
| |
| |
| <link rel="stylesheet" href="../styles/website.css"> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <meta name="HandheldFriendly" content="true"/> |
| <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> |
| <meta name="apple-mobile-web-app-capable" content="yes"> |
| <meta name="apple-mobile-web-app-status-bar-style" content="black"> |
| <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png"> |
| <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon"> |
| |
| |
| <link rel="next" href="../" /> |
| |
| |
| |
| </head> |
| <body> |
| |
| <div class="book"> |
| <div class="book-summary"> |
| |
| |
| <div id="book-search-input" role="search"> |
| <input type="text" placeholder="Type to search" /> |
| </div> |
| |
| |
| <nav role="navigation"> |
| |
| |
| |
| <ul class="summary"> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <li class="chapter " data-level="1.1" > |
| |
| <span> |
| |
| |
| just-for-gitbook-build |
| |
| </span> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter active" data-level="1.1.1" data-path="verticle-count.html"> |
| |
| <a href="verticle-count.html"> |
| |
| |
| hidden |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| <li class="chapter " data-level="1.2" data-path="../"> |
| |
| <a href="../"> |
| |
| |
| 概述 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.3" data-path="../catalog/start.html"> |
| |
| <a href="../catalog/start.html"> |
| |
| |
| 入门 |
| |
| </a> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter " data-level="1.3.1" data-path="../start/terminology.html"> |
| |
| <a href="../start/terminology.html"> |
| |
| |
| 术语表 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.3.2" data-path="../start/architecture.html"> |
| |
| <a href="../start/architecture.html"> |
| |
| |
| 微服务系统架构 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.3.3" data-path="../start/development-environment.html"> |
| |
| <a href="../start/development-environment.html"> |
| |
| |
| 安装本地开发环境 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.3.4" data-path="../start/first-sample.html"> |
| |
| <a href="../start/first-sample.html"> |
| |
| |
| 开发第一个微服务 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| <li class="chapter " data-level="1.4" data-path="../catalog/build-provider.html"> |
| |
| <a href="../catalog/build-provider.html"> |
| |
| |
| 开发服务提供者 |
| |
| </a> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter " data-level="1.4.1" data-path="../build-provider/definition/service-definition.html"> |
| |
| <a href="../build-provider/definition/service-definition.html"> |
| |
| |
| 服务定义 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.4.2" data-path="../build-provider/define-contract.html"> |
| |
| <a href="../build-provider/define-contract.html"> |
| |
| |
| 定义服务契约 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.4.3" data-path="../build-provider/code-first.html"> |
| |
| <a href="../build-provider/code-first.html"> |
| |
| |
| 使用隐式契约 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.4.4" data-path="../build-provider/swagger-annotation.html"> |
| |
| <a href="../build-provider/swagger-annotation.html"> |
| |
| |
| 使用Swagger注解 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.4.5" data-path="../build-provider/springmvc.html"> |
| |
| <a href="../build-provider/springmvc.html"> |
| |
| |
| 用SpringMVC开发微服务 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.4.6" data-path="../build-provider/jaxrs.html"> |
| |
| <a href="../build-provider/jaxrs.html"> |
| |
| |
| 用JAX-RS开发微服务 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.4.7" data-path="../build-provider/transparent-rpc.html"> |
| |
| <a href="../build-provider/transparent-rpc.html"> |
| |
| |
| 用透明RPC开发微服务 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.4.8" data-path="../build-provider/interface-constraints.html"> |
| |
| <a href="../build-provider/interface-constraints.html"> |
| |
| |
| 接口定义和数据类型 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.4.9" data-path="../build-provider/listen-address-and-publish-address.html"> |
| |
| <a href="../build-provider/listen-address-and-publish-address.html"> |
| |
| |
| 服务监听地址和发布地址 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.4.10" data-path="../build-provider/thread-pool.html"> |
| |
| <a href="../build-provider/thread-pool.html"> |
| |
| |
| 线程池 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.4.11" data-path="../build-provider/service-configuration.html"> |
| |
| <a href="../build-provider/service-configuration.html"> |
| |
| |
| 服务配置 |
| |
| </a> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter " data-level="1.4.11.1" data-path="../build-provider/configuration/lb-strategy.html"> |
| |
| <a href="../build-provider/configuration/lb-strategy.html"> |
| |
| |
| 负载均衡策略 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.4.11.2" data-path="../build-provider/configuration/ratelimite-strategy.html"> |
| |
| <a href="../build-provider/configuration/ratelimite-strategy.html"> |
| |
| |
| 限流策略 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.4.11.3" data-path="../build-provider/configuration/downgrade-strategy.html"> |
| |
| <a href="../build-provider/configuration/downgrade-strategy.html"> |
| |
| |
| 降级策略 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.4.11.4" data-path="../build-provider/configuration/parameter-validator.html"> |
| |
| <a href="../build-provider/configuration/parameter-validator.html"> |
| |
| |
| 参数效验 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| <li class="chapter " data-level="1.4.12" data-path="../build-provider/bootup.html"> |
| |
| <a href="../build-provider/bootup.html"> |
| |
| |
| 程序启动逻辑 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.4.13" data-path="../build-provider/access-log-configuration.html"> |
| |
| <a href="../build-provider/access-log-configuration.html"> |
| |
| |
| Access Log配置 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| <li class="chapter " data-level="1.5" data-path="../catalog/build-consumer.html"> |
| |
| <a href="../catalog/build-consumer.html"> |
| |
| |
| 开发服务消费者 |
| |
| </a> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter " data-level="1.5.1" data-path="../build-consumer/common-configuration.html"> |
| |
| <a href="../build-consumer/common-configuration.html"> |
| |
| |
| 消费者通用配置项 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.5.2" data-path="../build-consumer/using-resttemplate.html"> |
| |
| <a href="../build-consumer/using-resttemplate.html"> |
| |
| |
| 使用RestTemplate开发服务消费者 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.5.3" data-path="../build-consumer/using-AsyncRestTemplate.html"> |
| |
| <a href="../build-consumer/using-AsyncRestTemplate.html"> |
| |
| |
| 使用AsynRestTemplate开发服务消费者 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.5.4" data-path="../build-consumer/develop-consumer-using-rpc.html"> |
| |
| <a href="../build-consumer/develop-consumer-using-rpc.html"> |
| |
| |
| 使用RPC方式开发服务消费者 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.5.5" data-path="../build-consumer/with-contract.html"> |
| |
| <a href="../build-consumer/with-contract.html"> |
| |
| |
| 使用服务契约 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.5.6" data-path="../build-consumer/invoke-control.html"> |
| |
| <a href="../build-consumer/invoke-control.html"> |
| |
| |
| 调用控制 |
| |
| </a> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter " data-level="1.5.6.1" data-path="../build-consumer/circuit-breaker.html"> |
| |
| <a href="../build-consumer/circuit-breaker.html"> |
| |
| |
| 熔断策略 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.5.6.2" data-path="../build-consumer/flow-control.html"> |
| |
| <a href="../build-consumer/flow-control.html"> |
| |
| |
| 限流策略 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.5.6.3" data-path="../build-consumer/fault-injection.html"> |
| |
| <a href="../build-consumer/fault-injection.html"> |
| |
| |
| 故障注入 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| <li class="chapter " data-level="1.5.7" data-path="../build-consumer/3rd-party-service-invoke.html"> |
| |
| <a href="../build-consumer/3rd-party-service-invoke.html"> |
| |
| |
| 调用第三方REST服务 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| <li class="chapter " data-level="1.6" data-path="transport.html"> |
| |
| <a href="transport.html"> |
| |
| |
| Transports |
| |
| </a> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter " data-level="1.6.1" data-path="rest-over-servlet.html"> |
| |
| <a href="rest-over-servlet.html"> |
| |
| |
| REST over Servlet |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.6.2" data-path="rest-over-vertx.html"> |
| |
| <a href="rest-over-vertx.html"> |
| |
| |
| REST over Vertx |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.6.3" data-path="highway-rpc.html"> |
| |
| <a href="highway-rpc.html"> |
| |
| |
| Highway |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.6.4" data-path="http2.html"> |
| |
| <a href="http2.html"> |
| |
| |
| HTTP2 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7" data-path="../catalog/general-develop.html"> |
| |
| <a href="../catalog/general-develop.html"> |
| |
| |
| 通用开发 |
| |
| </a> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter " data-level="1.7.1" data-path="../general-development/visit-sc.html"> |
| |
| <a href="../general-development/visit-sc.html"> |
| |
| |
| 访问服务中心 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.2" data-path="../general-development/metrics.html"> |
| |
| <a href="../general-development/metrics.html"> |
| |
| |
| 应用性能监控 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.3" data-path="../general-development/microservice-invocation-chain.html"> |
| |
| <a href="../general-development/microservice-invocation-chain.html"> |
| |
| |
| 微服务调用链 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.4" data-path="../general-development/customized-tracing.html"> |
| |
| <a href="../general-development/customized-tracing.html"> |
| |
| |
| 自定义调用链打点 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.5" data-path="../general-development/local-develop-test.html"> |
| |
| <a href="../general-development/local-develop-test.html"> |
| |
| |
| 本地开发和测试 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.6" data-path="../general-development/http-filter.html"> |
| |
| <a href="../general-development/http-filter.html"> |
| |
| |
| Http Filter |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.7" data-path="../general-development/file-upload.html"> |
| |
| <a href="../general-development/file-upload.html"> |
| |
| |
| 文件上传 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.8" data-path="../general-development/file-download.html"> |
| |
| <a href="../general-development/file-download.html"> |
| |
| |
| 文件下载 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.9" data-path="../general-development/reactive.html"> |
| |
| <a href="../general-development/reactive.html"> |
| |
| |
| Reactive |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.10" data-path="../general-development/dnsconfig.html"> |
| |
| <a href="../general-development/dnsconfig.html"> |
| |
| |
| DNS自定义配置 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.11" data-path="../general-development/dai-li-she-zhi.html"> |
| |
| <a href="../general-development/dai-li-she-zhi.html"> |
| |
| |
| 代理设置 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.12" data-path="../general-development/report-framework-version.html"> |
| |
| <a href="../general-development/report-framework-version.html"> |
| |
| |
| 框架上报版本号 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.13" data-path="../general-development/cross-app-invocation.html"> |
| |
| <a href="../general-development/cross-app-invocation.html"> |
| |
| |
| 跨应用调用 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.14" data-path="../general-development/secret-field.html"> |
| |
| <a href="../general-development/secret-field.html"> |
| |
| |
| 定制序列化和反序列化方法 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.15" data-path="../general-development/context.html"> |
| |
| <a href="../general-development/context.html"> |
| |
| |
| 使用Context传递控制消息 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.16" data-path="../general-development/produceprocess.html"> |
| |
| <a href="../general-development/produceprocess.html"> |
| |
| |
| 返回值序列化扩展 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.17" data-path="../general-development/CORS.html"> |
| |
| <a href="../general-development/CORS.html"> |
| |
| |
| CORS机制 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.18" data-path="../general-development/AlarmEvent.html"> |
| |
| <a href="../general-development/AlarmEvent.html"> |
| |
| |
| 获取熔断与实例隔离告警事件信息 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.19" data-path="../general-development/shutdown.html"> |
| |
| <a href="../general-development/shutdown.html"> |
| |
| |
| 优雅停机 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.20" data-path="../general-development/error-handling.html"> |
| |
| <a href="../general-development/error-handling.html"> |
| |
| |
| 异常处理 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.21" data-path="../general-development/multienvironment.html"> |
| |
| <a href="../general-development/multienvironment.html"> |
| |
| |
| 微服务实例间多环境隔离 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.7.22" data-path="../general-development/thread-model.html"> |
| |
| <a href="../general-development/thread-model.html"> |
| |
| |
| 线程模型 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| <li class="chapter " data-level="1.8" data-path="../catalog/config.html"> |
| |
| <a href="../catalog/config.html"> |
| |
| |
| 配置 |
| |
| </a> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter " data-level="1.8.1" data-path="../config/general-config.html"> |
| |
| <a href="../config/general-config.html"> |
| |
| |
| 通用配置说明 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.8.2" data-path="../config/inject-config.html"> |
| |
| <a href="../config/inject-config.html"> |
| |
| |
| 配置注入说明 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| <li class="chapter " data-level="1.9" data-path="../edge/open-service.html"> |
| |
| <a href="../edge/open-service.html"> |
| |
| |
| 服务能力开放 |
| |
| </a> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter " data-level="1.9.1" data-path="../edge/by-servicecomb-sdk.html"> |
| |
| <a href="../edge/by-servicecomb-sdk.html"> |
| |
| |
| 使用Edge Service做边缘服务 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.9.2" data-path="../edge/nginx.html"> |
| |
| <a href="../edge/nginx.html"> |
| |
| |
| 使用confd和Nginx做边缘服务 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.9.3" data-path="../edge/zuul.html"> |
| |
| <a href="../edge/zuul.html"> |
| |
| |
| 使用zuul做边缘服务 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| <li class="chapter " data-level="1.10" data-path="../catalog/service-package-run.html"> |
| |
| <a href="../catalog/service-package-run.html"> |
| |
| |
| 服务打包和运行 |
| |
| </a> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter " data-level="1.10.1" data-path="../packaging/standalone.html"> |
| |
| <a href="../packaging/standalone.html"> |
| |
| |
| 以standalone模式打包 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.10.2" data-path="../packaging/web-container.html"> |
| |
| <a href="../packaging/web-container.html"> |
| |
| |
| 以WEB容器模式打包 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| <li class="chapter " data-level="1.11" data-path="../catalog/security.html"> |
| |
| <a href="../catalog/security.html"> |
| |
| |
| 微服务安全 |
| |
| </a> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter " data-level="1.11.1" data-path="../security/tls.html"> |
| |
| <a href="../security/tls.html"> |
| |
| |
| 使用TLS通信 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.11.2" data-path="../security/shi-yong-rsa-ren-zheng.html"> |
| |
| <a href="../security/shi-yong-rsa-ren-zheng.html"> |
| |
| |
| 使用RSA认证 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| <li class="chapter " data-level="1.12" data-path="../using-java-chassis-in-spring-boot/using-java-chassis-in-spring-boot.html"> |
| |
| <a href="../using-java-chassis-in-spring-boot/using-java-chassis-in-spring-boot.html"> |
| |
| |
| 在Spring Boot中使用java chassis |
| |
| </a> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter " data-level="1.12.1" data-path="../using-java-chassis-in-spring-boot/components-for-spring-boot.html"> |
| |
| <a href="../using-java-chassis-in-spring-boot/components-for-spring-boot.html"> |
| |
| |
| 提供的spring boot starter说明 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.12.2" data-path="../using-java-chassis-in-spring-boot/java-application.html"> |
| |
| <a href="../using-java-chassis-in-spring-boot/java-application.html"> |
| |
| |
| JAVA应用方式开发步骤 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.12.3" data-path="../using-java-chassis-in-spring-boot/web-application.html"> |
| |
| <a href="../using-java-chassis-in-spring-boot/web-application.html"> |
| |
| |
| Web开发方式开发步骤 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.12.4" data-path="../using-java-chassis-in-spring-boot/diff-spring-mvc.html"> |
| |
| <a href="../using-java-chassis-in-spring-boot/diff-spring-mvc.html"> |
| |
| |
| Spring MVC开发习惯的差异 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| <li class="chapter " data-level="1.13" data-path="../references-handlers/intruduction.html"> |
| |
| <a href="../references-handlers/intruduction.html"> |
| |
| |
| 处理链参考 |
| |
| </a> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter " data-level="1.13.1" data-path="../references-handlers/loadbalance.html"> |
| |
| <a href="../references-handlers/loadbalance.html"> |
| |
| |
| 负载均衡 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.13.2" data-path="../references-handlers/publickey.html"> |
| |
| <a href="../references-handlers/publickey.html"> |
| |
| |
| 公钥认证 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| <li class="chapter " data-level="1.14" data-path="../question-and-answer/question_answer.html"> |
| |
| <a href="../question-and-answer/question_answer.html"> |
| |
| |
| 常见问题 |
| |
| </a> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter " data-level="1.14.1" data-path="../question-and-answer/interface-compatibility.html"> |
| |
| <a href="../question-and-answer/interface-compatibility.html"> |
| |
| |
| 微服务接口兼容常见问题 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| |
| |
| |
| <li class="divider"></li> |
| |
| <li> |
| <a href="https://www.gitbook.com" target="blank" class="gitbook-link"> |
| Published with GitBook |
| </a> |
| </li> |
| </ul> |
| |
| |
| </nav> |
| |
| |
| </div> |
| |
| <div class="book-body"> |
| |
| <div class="body-inner"> |
| |
| |
| |
| <div class="book-header" role="navigation"> |
| |
| |
| <!-- Title --> |
| <h1> |
| <i class="fa fa-circle-o-notch fa-spin"></i> |
| <a href=".." >hidden</a> |
| </h1> |
| </div> |
| |
| |
| |
| |
| <div class="page-wrapper" tabindex="-1" role="main"> |
| <div class="page-inner"> |
| |
| <div id="book-search-results"> |
| <div class="search-noresults"> |
| |
| <section class="normal markdown-section"> |
| |
| <h1 id="verticle-count">verticle-count</h1> |
| <h2 id="名称及默认值">名称及默认值</h2> |
| <ul> |
| <li>1.2.0之前的版本<br>命名为thread-count,且默认值为1,这存在以下问题: <ul> |
| <li>名字有歧义<br>ServiceComb底层基于vertx,通信层逻辑均由verticle承载,运行于eventloop线程中,并不会再创建独立的线程 |
| 所以thread-count实际表示的是创建的verticle实例的个数,并不是线程数。</li> |
| <li>默认值偏小<br>因为不存在在所有场景下都最优的配置,所以旧版本,选择了最保守的默认值,这导致大部分场景,都需要做这些参数的调整</li> |
| </ul> |
| </li> |
| <li>1.2.0及其之后的版本<br>重命名为verticle-count<br>同时允许旧的thread-count,但是会打印warning日志,提醒切换为新配置项<br>默认值规则: <ul> |
| <li>如果CPU数小于8,则取CPU数</li> |
| <li>如果CPU数大于等于8,则为8</li> |
| </ul> |
| </li> |
| </ul> |
| <h2 id="eventloop与verticle实例的关系:">Eventloop与verticle实例的关系:</h2> |
| <p>假设CPU为2,则vertx默认创建2 * CPU, 即4个Eventloop线程<br>假设配置server verticle count和client verticle count均为3,则:<br><img src="../assets/eventloop-and-verticle.png" alt=""><br>因为在Eventloop中不允许执行任何阻塞动作,再结合上图,我们可以知道,当充分利用了CPU之后,再增加verticle实例是没有意义的<br>建议使用者结合自己的实际场景,测试总结出合适的配置值</p> |
| |
| |
| </section> |
| |
| </div> |
| <div class="search-results"> |
| <div class="has-results"> |
| |
| <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1> |
| <ul class="search-results-list"></ul> |
| |
| </div> |
| <div class="no-results"> |
| |
| <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1> |
| |
| </div> |
| </div> |
| </div> |
| |
| </div> |
| </div> |
| |
| </div> |
| |
| |
| |
| |
| <a href="../" class="navigation navigation-next navigation-unique" aria-label="Next page: 概述"> |
| <i class="fa fa-angle-right"></i> |
| </a> |
| |
| |
| |
| </div> |
| |
| <script> |
| var gitbook = gitbook || []; |
| gitbook.push(function() { |
| gitbook.page.hasChanged({"page":{"title":"hidden","level":"1.1.1","depth":2,"next":{"title":"概述","level":"1.2","depth":1,"path":"introduction.md","ref":"introduction.md","articles":[]},"previous":{"title":"just-for-gitbook-build","level":"1.1","depth":1,"ref":"","articles":[{"title":"hidden","level":"1.1.1","depth":2,"path":"transports/verticle-count.md","ref":"transports/verticle-count.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":[],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"introduction.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"language":"zh_CN","gitbook":"*"},"file":{"path":"transports/verticle-count.md","mtime":"2020-02-10T07:31:45.864Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-02-10T07:32:25.443Z"},"basePath":"..","book":{"language":"zh_CN"}}); |
| }); |
| </script> |
| </div> |
| |
| |
| <script src="../../gitbook/gitbook.js"></script> |
| <script src="../../gitbook/theme.js"></script> |
| |
| |
| <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script> |
| |
| |
| |
| <script src="../../gitbook/gitbook-plugin-search/search.js"></script> |
| |
| |
| |
| <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script> |
| |
| |
| |
| <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script> |
| |
| |
| |
| <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script> |
| |
| |
| |
| <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script> |
| |
| |
| |
| </body> |
| </html> |
| |