You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2022/04/24 14:58:06 UTC

[shardingsphere] branch master updated: Update document for default proxy port configurable (#17003) (#17069)

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

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new ea5cc2bc66b Update document for default proxy port configurable (#17003) (#17069)
ea5cc2bc66b is described below

commit ea5cc2bc66b0417038e354def3495fa3555b9b16
Author: galaxy <ga...@tencent.com>
AuthorDate: Sun Apr 24 22:58:01 2022 +0800

    Update document for default proxy port configurable (#17003) (#17069)
    
    * Update document for default proxy port configurable (#17003)
    
    * add a space between English and Chinese words (#17003)
---
 .../shardingsphere-proxy/yaml-config/props.cn.md   | 35 +++++++++++-----------
 .../shardingsphere-proxy/yaml-config/props.en.md   |  3 +-
 2 files changed, 20 insertions(+), 18 deletions(-)

diff --git a/docs/document/content/user-manual/shardingsphere-proxy/yaml-config/props.cn.md b/docs/document/content/user-manual/shardingsphere-proxy/yaml-config/props.cn.md
index 845bdff0a61..efc05555e76 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/yaml-config/props.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/yaml-config/props.cn.md
@@ -10,23 +10,24 @@ Apache ShardingSphere 提供属性配置的方式配置系统级配置。
 
 ## 配置项说明
 
-| *名称*                              | *数据类型* | *说明*                                                                                                                                                                          | *默认值*  | *动态生效* |             
-| ---------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- |  -------- | 
-| sql-show (?)                       | boolean   | 是否在日志中打印 SQL。 <br /> 打印 SQL 可以帮助开发者快速定位系统问题。日志内容包含:逻辑 SQL,真实 SQL 和 SQL 解析结果。<br /> 如果开启配置,日志将使用 Topic `ShardingSphere-SQL`,日志级别是 INFO。 | false    | 是        |
-| sql-simple (?)                     | boolean   | 是否在日志中打印简单风格的 SQL。                                                                                                                                                    | false    | 是        |
-| kernel-executor-size (?)           | int       | 用于设置任务处理线程池的大小。每个 ShardingSphereDataSource 使用一个独立的线程池,同一个 JVM 的不同数据源不共享线程池。                                                                        | infinite | 否        |
-| max-connections-size-per-query (?) | int       | 一次查询请求在每个数据库实例中所能使用的最大连接数。                                                                                                                                     | 1        | 是       |
-| check-table-metadata-enabled (?)   | boolean   | 在程序启动和更新时,是否检查分片元数据的结构一致性。                                                                                                                                     | false    | 否       |
-| proxy-frontend-flush-threshold (?) | int       | 在 ShardingSphere-Proxy 中设置传输数据条数的 IO 刷新阈值。                                                                                                                           | 128      | 是       |
-| proxy-opentracing-enabled (?)      | boolean   | 是否允许在 ShardingSphere-Proxy 中使用 OpenTracing。                                                                                                                               | false    | 是      |
-| proxy-hint-enabled (?)             | boolean   | 是否允许在 ShardingSphere-Proxy 中使用 Hint。使用 Hint 会将 Proxy 的线程处理模型由 IO 多路复用变更为每个请求一个独立的线程,会降低 Proxy 的吞吐量。                                               | false    | 是      |
-| proxy-backend-query-fetch-size (?) | int       | Proxy 后端与数据库交互的每次获取数据行数(使用游标的情况下)。数值增大可能会增加 ShardingSphere Proxy 的内存使用。默认值为 -1,代表设置为 JDBC 驱动的最小值。                                          | -1       | 否      |
-| check-duplicate-table-enabled (?)  | boolean   | 在程序启动和更新时,是否检查重复表。                                                                                                                                                   | false    | 否      |
-| proxy-frontend-executor-size (?)   | int       | Proxy 前端 Netty 线程池线程数量,默认值 0 代表使用 Netty 默认值。                                                                                                                       | 0        | 否      |
-| proxy-backend-executor-suitable (?)| String    | 可选选项:OLAP、OLTP。OLTP 选项可能会减少向客户端写入数据包的时间开销,但如果客户端连接数超过 `proxy-frontend-executor-size`,尤其是执行慢 SQL 时,它可能会增加 SQL 执行的延迟甚至阻塞其他客户端的连接。    | OLAP     | 否      |
-| proxy-frontend-max-connections (?) | int       | 允许连接 Proxy 的最大客户端数量,默认值 0 代表不限制。                                                                                                                                  | 0        | 是      |
-| sql-federation-enabled (?)         | boolean   | 是否开启 federation 查询。                                                                                                                                                         | false    | 是      |
-| show-process-list-enabled (?)      | boolean   | 是否开启 processlist 功能,同时仅在 Cluster 模式生效。功能和 MySQL show processlist 类似。目前只对 DDL 和 DML 语句生效。                                                                   | false    | 是      |
+| *名称*                                | *数据类型*     | *说明*                                                                                                                                   | *默认值*    | *动态生效* |             
+|-------------------------------------|------------|----------------------------------------------------------------------------------------------------------------------------------------|----------|--------| 
+| sql-show (?)                        | boolean    | 是否在日志中打印 SQL。 <br /> 打印 SQL 可以帮助开发者快速定位系统问题。日志内容包含:逻辑 SQL,真实 SQL 和 SQL 解析结果。<br /> 如果开启配置,日志将使用 Topic `ShardingSphere-SQL`,日志级别是 INFO。 | false    | 是      |
+| sql-simple (?)                      | boolean    | 是否在日志中打印简单风格的 SQL。                                                                                                                     | false    | 是      |
+| kernel-executor-size (?)            | int        | 用于设置任务处理线程池的大小。每个 ShardingSphereDataSource 使用一个独立的线程池,同一个 JVM 的不同数据源不共享线程池。                                                            | infinite | 否      |
+| max-connections-size-per-query (?)  | int        | 一次查询请求在每个数据库实例中所能使用的最大连接数。                                                                                                             | 1        | 是      |
+| check-table-metadata-enabled (?)    | boolean    | 在程序启动和更新时,是否检查分片元数据的结构一致性。                                                                                                             | false    | 否      |
+| proxy-frontend-flush-threshold (?)  | int        | 在 ShardingSphere-Proxy 中设置传输数据条数的 IO 刷新阈值。                                                                                             | 128      | 是      |
+| proxy-opentracing-enabled (?)       | boolean    | 是否允许在 ShardingSphere-Proxy 中使用 OpenTracing。                                                                                            | false    | 是      |
+| proxy-hint-enabled (?)              | boolean    | 是否允许在 ShardingSphere-Proxy 中使用 Hint。使用 Hint 会将 Proxy 的线程处理模型由 IO 多路复用变更为每个请求一个独立的线程,会降低 Proxy 的吞吐量。                                    | false    | 是      |
+| proxy-backend-query-fetch-size (?)  | int        | Proxy 后端与数据库交互的每次获取数据行数(使用游标的情况下)。数值增大可能会增加 ShardingSphere Proxy 的内存使用。默认值为 -1,代表设置为 JDBC 驱动的最小值。                                      | -1       | 否      |
+| check-duplicate-table-enabled (?)   | boolean    | 在程序启动和更新时,是否检查重复表。                                                                                                                     | false    | 否      |
+| proxy-frontend-executor-size (?)    | int        | Proxy 前端 Netty 线程池线程数量,默认值 0 代表使用 Netty 默认值。                                                                                           | 0        | 否      |
+| proxy-backend-executor-suitable (?) | String     | 可选选项:OLAP、OLTP。OLTP 选项可能会减少向客户端写入数据包的时间开销,但如果客户端连接数超过 `proxy-frontend-executor-size`,尤其是执行慢 SQL 时,它可能会增加 SQL 执行的延迟甚至阻塞其他客户端的连接。        | OLAP     | 否      |
+| proxy-frontend-max-connections (?)  | int        | 允许连接 Proxy 的最大客户端数量,默认值 0 代表不限制。                                                                                                       | 0        | 是      |
+| sql-federation-enabled (?)          | boolean    | 是否开启 federation 查询。                                                                                                                    | false    | 是      |
+| show-process-list-enabled (?)       | boolean    | 是否开启 processlist 功能,同时仅在 Cluster 模式生效。功能和 MySQL show processlist 类似。目前只对 DDL 和 DML 语句生效。                                               | false    | 是      |
+| proxy-default-port (?)              | String     | Proxy 通过配置文件指定默认端口。                                                                                                                    | 3307     | 否      |
 
 属性配置可以通过 [DistSQL#RAL](/cn/user-manual/shardingsphere-proxy/distsql/syntax/ral/) 修改。
 支持动态修改的属性可以立即生效,不支持动态修改的属性需要重启后生效。
diff --git a/docs/document/content/user-manual/shardingsphere-proxy/yaml-config/props.en.md b/docs/document/content/user-manual/shardingsphere-proxy/yaml-config/props.en.md
index 920dd7dac32..a22cc33d896 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/yaml-config/props.en.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/yaml-config/props.en.md
@@ -11,7 +11,7 @@ Apache ShardingSphere provides the way of property configuration to configure sy
 ## Configuration Item Explanation
 
 | *Name*                              | *Data Type* | *Description*                                                                                                                                                                                                                                                                                                             | *Default Value* | *Dynamic Update* | 
-| ----------------------------------- | ----------- |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| --------------- |----------------- | 
+|-------------------------------------|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------|------------------| 
 | sql-show (?)                        | boolean     | Whether show SQL or not in log. <br /> Print SQL details can help developers debug easier. The log details include: logic SQL, actual SQL and SQL parse result. <br /> Enable this property will log into log topic `ShardingSphere-SQL`, log level is INFO.                                                              | false           | true             |
 | sql-simple (?)                      | boolean     | Whether show SQL details in simple style.                                                                                                                                                                                                                                                                                 | false           | true             |
 | kernel-executor-size (?)            | int         | The max thread size of worker group to execute SQL. One ShardingSphereDataSource will use a independent thread pool, it does not share thread pool even different data source in same JVM.                                                                                                                                | infinite        | false            |
@@ -27,6 +27,7 @@ Apache ShardingSphere provides the way of property configuration to configure sy
 | proxy-frontend-max-connections (?)  | int         | The maximum permitted number of client connections to Proxy. The default value is 0 and less than or equal to 0 means no limitation.                                                                                                                                                                                      | 0               | true             |
 | sql-federation-enabled (?)          | boolean     | Whether enable sql federation.                                                                                                                                                                                                                                                                                            | false           | true             |
 | show-process-list-enabled (?)       | boolean     | Whether enable show process list, and it only take effect when mode is Cluster. This function is similar as MySQL show processlist. It just apply on DDL and DML statements currently.                                                                                                                                    | false           | true             |
+| proxy-default-port (?)              | String      | Proxy specifies the default port through the configuration file.                                                                                                                                                                                                                                                          | 3307            | false            |
 
 Properties can be updated by [DistSQL#RAL](/en/user-manual/shardingsphere-proxy/distsql/syntax/ral/).
 Dynamic update can take effect immediately, static update can take effect after restarted.