You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by je...@apache.org on 2018/08/03 07:33:27 UTC

[incubator-dubbo-website] branch asf-site updated: fix the default value of threads and payload in dubbo:provider and dubbo:protocol (#65)

This is an automated email from the ASF dual-hosted git repository.

jerrick pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new ecfffda  fix the default value of threads and payload in dubbo:provider and dubbo:protocol (#65)
ecfffda is described below

commit ecfffda9c7a167e66162ffca25b7a0ba5756bac4
Author: shaoshuai <st...@gmail.com>
AuthorDate: Fri Aug 3 15:33:25 2018 +0800

    fix the default value of threads and payload in dubbo:provider and dubbo:protocol (#65)
    
    * fix the default value of threads and payload in dubbo:protocol
    
    fix the default value of threads to 200
    fix the default value of payload to 8 * 1024 * 1024 = 8388608 (8M)
---
 docs/en-us/user/references/xml/dubbo-protocol.md | 4 ++--
 docs/en-us/user/references/xml/dubbo-provider.md | 4 ++--
 docs/zh-cn/user/references/xml/dubbo-protocol.md | 4 ++--
 docs/zh-cn/user/references/xml/dubbo-provider.md | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/docs/en-us/user/references/xml/dubbo-protocol.md b/docs/en-us/user/references/xml/dubbo-protocol.md
index ba86533..b655502 100644
--- a/docs/en-us/user/references/xml/dubbo-protocol.md
+++ b/docs/en-us/user/references/xml/dubbo-protocol.md
@@ -53,10 +53,10 @@ Service provider protocol configuration. The corresponding class is `com.alibaba
 | port          | &lt;port&gt;                | int            | False       | The default port of dubbo protocol is 20880, rmi protocol is 1099, http and hessian protocol are 80;It will allocate the default port if `port` is not filled; It will allocate an unused port if `port` equals `-1`. To ensure the ports scope is controllable, the port will increase based on the corresponding protocol default port after Dubbo 2.4.0+ | Service discovery         | Service port                        [...]
 | host          | &lt;host&gt;                | string         | False       | Find local IP automatically              | Service discovery         | &#45;The host name of services, to specify VIP and domain, or having multiple network cards. If null, it will find local IP automatically&#45; It's recommended to let Dubbo find local IP automatically | Above 2.0.5   |
 | threadpool    | threadpool                  | string         | False       | fixed                                    | Performance optimize      | The type of Thread Pool, fixed/cached are available | Above 2.0.5   |
-| threads       | threads                     | int            | False       | 100                                      | Performance optimize      | The size of the services' Thread Pool(Fixed) | Above 2.0.5   |
+| threads       | threads                     | int            | False       | 200                                      | Performance optimize      | The size of the services' Thread Pool(Fixed) | Above 2.0.5   |
 | iothreads     | threads                     | int            | False       | The count of CPU + 1                     | Performance optimize      | The size of io Thread Pool(Fixed)        | Above 2.0.5   |
 | accepts       | accepts                     | int            | False       | 0                                        | Performance optimize      | The maximum connection count of the service provider | Above 2.0.5   |
-| payload       | payload                     | int            | False       | 88388608(=8M)                            | Performance optimize      | The length limit of request and response, unit is byte | Above 2.0.5   |
+| payload       | payload                     | int            | False       | 8388608(=8M)                            | Performance optimize      | The length limit of request and response, unit is byte | Above 2.0.5   |
 | codec         | codec                       | string         | False       | dubbo                                    | Performance optimize      | Protocol encoding                        | Above 2.0.5   |
 | serialization | serialization               | string         | False       | The default serialization of dubbo protocol is hessian2, rmi protocol is java, http protocol is json | Performance optimize      | Protocol serialization, It's used when a protocol has multiple serializations. For example, `dubbo` protocol has 4 serializations, they are `dubbo`, `hessian2`, `java` and `compactedjava`. | Above 2.0.5   |
 | accesslog     | accesslog                   | string/boolean | False       |                                          | Service discovery         | `true` will write access log to logger. Specifying it to a log path, you can write access logs to special log file. | Above 2.0.5   |
diff --git a/docs/en-us/user/references/xml/dubbo-provider.md b/docs/en-us/user/references/xml/dubbo-provider.md
index ad081b0..c90fff6 100644
--- a/docs/en-us/user/references/xml/dubbo-provider.md
+++ b/docs/en-us/user/references/xml/dubbo-provider.md
@@ -51,8 +51,8 @@ The default configuration of service provider. The corresponding class is `com.a
 | id            |                             | string         | False    | dubbo                                    | Configuration association | Bean Id of the protocol, can be referenced in &lt;dubbo:service proivder=""&gt; | Above 1.0.16  |
 | protocol      | &lt;protocol&gt;            | string         | False    | dubbo                                    | Performance optimize      | Protocol name                            | Above 1.0.16  |
 | host          | &lt;host&gt;                | string         | False    | Find local IP automatically              | Service discovery         | The host name of services, to specify VIP and domain, or having multiple network cards. If null, it will find local IP automatically. It's recommended to let Dubbo find local IP automatically | Above 1.0.16  |
-| threads       | threads                     | int            | False    | 100                                      | Performance optimize      | The size of the services' Thread Pool(Fixed) | Above 1.0.16  |
-| payload       | payload                     | int            | False    | 88388608(=8M)                            | Performance optimize      | The length limit of request and response, unit is byte | Above 2.0.0   |
+| threads       | threads                     | int            | False    | 200                                      | Performance optimize      | The size of the services' Thread Pool(Fixed) | Above 1.0.16  |
+| payload       | payload                     | int            | False    | 8388608(=8M)                            | Performance optimize      | The length limit of request and response, unit is byte | Above 2.0.0   |
 | path          | &lt;path&gt;                | string         | False    |                                          | Service discovery         | Context path of the service provider, the prefix of the service path | Above 2.0.0   |
 | server        | server                      | string         | False    | Default is netty for dubbo protocol, servlet for http protocol | Performance optimize      | The server implement of the protocol. For example, mina and netty for dubbo ptotocol, jetty and servlet for http protocol. | Above 2.0.0   |
 | client        | client                      | string         | False    | Default is netty for dubbo protocol      | Performance optimize      | The client implement of the protocol. For example, mina and netty for dubbo protocol. | Above 2.0.0   |
diff --git a/docs/zh-cn/user/references/xml/dubbo-protocol.md b/docs/zh-cn/user/references/xml/dubbo-protocol.md
index 3ce93ba..c0cba4f 100644
--- a/docs/zh-cn/user/references/xml/dubbo-protocol.md
+++ b/docs/zh-cn/user/references/xml/dubbo-protocol.md
@@ -53,10 +53,10 @@ table tr:hover {
 | port | &lt;port&gt; | int | 可选 | dubbo协议缺省端口为20880,rmi协议缺省端口为1099,http和hessian协议缺省端口为80;如果<b>没有</b>配置port,则自动采用默认端口,如果配置为<b>-1</b>,则会分配一个没有被占用的端口。Dubbo 2.4.0+,分配的端口在协议缺省端口的基础上增长,确保端口段可控。 | 服务发现 | 服务端口 | 2.0.5以上版本 |
 | host | &lt;host&gt; | string | 可选 | 自动查找本机IP | 服务发现 | &#45;服务主机名,多网卡选择或指定VIP及域名时使用,为空则自动查找本机IP,&#45;建议不要配置,让Dubbo自动获取本机IP | 2.0.5以上版本 |
 | threadpool | threadpool | string | 可选 | fixed | 性能调优 | 线程池类型,可选:fixed/cached | 2.0.5以上版本 |
-| threads | threads | int | 可选 | 100 | 性能调优 | 服务线程池大小(固定大小) | 2.0.5以上版本 |
+| threads | threads | int | 可选 | 200 | 性能调优 | 服务线程池大小(固定大小) | 2.0.5以上版本 |
 | iothreads | threads | int | 可选 | cpu个数+1 | 性能调优 | io线程池大小(固定大小) | 2.0.5以上版本 |
 | accepts | accepts | int | 可选 | 0 | 性能调优 | 服务提供方最大可接受连接数 | 2.0.5以上版本 |
-| payload | payload | int | 可选 | 88388608(=8M) | 性能调优 | 请求及响应数据包大小限制,单位:字节 | 2.0.5以上版本 |
+| payload | payload | int | 可选 | 8388608(=8M) | 性能调优 | 请求及响应数据包大小限制,单位:字节 | 2.0.5以上版本 |
 | codec | codec | string | 可选 | dubbo | 性能调优 | 协议编码方式 | 2.0.5以上版本 |
 | serialization | serialization | string | 可选 | dubbo协议缺省为hessian2,rmi协议缺省为java,http协议缺省为json | 性能调优 | 协议序列化方式,当协议支持多种序列化方式时使用,比如:dubbo协议的dubbo,hessian2,java,compactedjava,以及http协议的json等 | 2.0.5以上版本 |
 | accesslog | accesslog | string/boolean | 可选 | | 服务治理 | 设为true,将向logger中输出访问日志,也可填写访问日志文件路径,直接把访问日志输出到指定文件 | 2.0.5以上版本 |
diff --git a/docs/zh-cn/user/references/xml/dubbo-provider.md b/docs/zh-cn/user/references/xml/dubbo-provider.md
index 322e447..62fa41a 100644
--- a/docs/zh-cn/user/references/xml/dubbo-provider.md
+++ b/docs/zh-cn/user/references/xml/dubbo-provider.md
@@ -51,8 +51,8 @@ table tr:hover {
 | id | | string | 可选 | dubbo | 配置关联 | 协议BeanId,可以在&lt;dubbo:service proivder=""&gt;中引用此ID | 1.0.16以上版本 |
 | protocol | &lt;protocol&gt; | string | 可选 | dubbo | 性能调优 | 协议名称 | 1.0.16以上版本 |
 | host | &lt;host&gt; | string | 可选 | 自动查找本机IP | 服务发现 | 服务主机名,多网卡选择或指定VIP及域名时使用,为空则自动查找本机IP,建议不要配置,让Dubbo自动获取本机IP | 1.0.16以上版本 |
-| threads | threads | int | 可选 | 100 | 性能调优 | 服务线程池大小(固定大小) | 1.0.16以上版本 |
-| payload | payload | int | 可选 | 88388608(=8M) | 性能调优 | 请求及响应数据包大小限制,单位:字节 | 2.0.0以上版本 |
+| threads | threads | int | 可选 | 200 | 性能调优 | 服务线程池大小(固定大小) | 1.0.16以上版本 |
+| payload | payload | int | 可选 | 8388608(=8M) | 性能调优 | 请求及响应数据包大小限制,单位:字节 | 2.0.0以上版本 |
 | path | &lt;path&gt; | string | 可选 | | 服务发现 | 提供者上下文路径,为服务path的前缀 | 2.0.0以上版本 |
 | server | server | string | 可选 | dubbo协议缺省为netty,http协议缺省为servlet | 性能调优 | 协议的服务器端实现类型,比如:dubbo协议的mina,netty等,http协议的jetty,servlet等 | 2.0.0以上版本 |
 | client | client | string | 可选 | dubbo协议缺省为netty | 性能调优 | 协议的客户端实现类型,比如:dubbo协议的mina,netty等 | 2.0.0以上版本 |