KassieZ commented on code in PR #1306: URL: https://github.com/apache/doris-website/pull/1306#discussion_r1832553702
########## i18n/zh-CN/docusaurus-plugin-content-docs/current/admin-manual/config/be-config.md: ########## Review Comment: 建议所有内容交给大模型优化下,以下是大模型优化的结果: ## 查看配置项 有两种方式能够查看 BE 配置项: 1. 通过 BE 的 Web 管理界面查看 在浏览器中打开 BE 的 Web 管理界面: http://be_host:be_webserver_port/varz 2. 通过命令行查看 可以在 MySQL 客户端中,通过以下命令查看 BE 的配置项,具体用法参照 [SHOW-CONFIG](https://yiyan.baidu.com/sql-manual/sql-statements/Database-Administration-Statements/SHOW-CONFIG.md): `SHOW BACKEND CONFIG;` 结果中各列含义如下: - BackendId: Backend 节点 ID。 - Host: Backend 节点 IP。 - Key: 配置项名称。 - Value: 配置项的值。 - Type: 配置项值类型,如整型、字符串。 - 是否可以动态配置:如果为 true,表示该配置项可以在运行时进行动态配置。如果为 false,则表示该配置项只能在 be.conf 中配置并且重启 BE 后生效。 ########## docs/admin-manual/config/be-config.md: ########## @@ -40,9 +40,28 @@ The location of the `be_custom.conf` file can be configured in `be.conf` through ## View configuration items -Users can view the current configuration items by visiting BE's web page: +There are two ways to view the configuration items of BE: -`http://be_host:be_webserver_port/varz` +1. BE web page + + Users can view the current configuration items by visiting BE's web page: + + `http://be_host:be_webserver_port/varz` + +2. View by command + + You can view the configuration items of the FE in the MySQL client with the following command,Concrete language law reference [SHOW-CONFIG](../../sql-manual/sql-statements/Database-Administration-Statements/SHOW-CONFIG.md): Review Comment: BE or FE ? ########## docs/sql-manual/sql-statements/Database-Administration-Statements/SHOW-CONFIG.md: ########## @@ -69,6 +78,22 @@ The columns in the results have the following meanings: 1 row in set (0.01 sec) ``` +3. View the configuration for a specific BE using the backend ID `10001` + + ```sql + SHOW BACKEND CONFIG FROM 10001; + ``` +4. View the configuration useing both a pattern and a backend ID + ```` Review Comment: ``` only three ` ########## docs/sql-manual/sql-statements/Database-Administration-Statements/SHOW-CONFIG.md: ########## @@ -69,6 +78,22 @@ The columns in the results have the following meanings: 1 row in set (0.01 sec) ``` +3. View the configuration for a specific BE using the backend ID `10001` + + ```sql + SHOW BACKEND CONFIG FROM 10001; + ``` +4. View the configuration useing both a pattern and a backend ID + ```` + mysql> SHOW BACKEND CONFIG LIKE "be_port" FROM 10001; + +-----------+---------------+---------+-------+---------+-----------+ + | BackendId | Host | Key | Value | Type | IsMutable | + +-----------+---------------+---------+-------+---------+-----------+ + | 10001 | xx.xx.xxx.xxx | be_port | 9060 | int32_t | false | + +-----------+---------------+---------+-------+---------+-----------+ + ```` Review Comment: only three ``` ########## i18n/zh-CN/docusaurus-plugin-content-docs/current/admin-manual/config/be-config.md: ########## @@ -38,9 +38,26 @@ BE 进程启动后,会先读取 `be.conf` 中的配置项,之后再读取 `b ## 查看配置项 -用户可以通过访问 BE 的 Web 页面查看当前配置项: +有两种方式能够查看BE配置项: -`http://be_host:be_webserver_port/varz` +1. 通过BE前端页面查看 + + 在浏览器中打开 BE 前端页面: `http://be_host:be_webserver_port/varz` + +2. 通过命令行查看 + + 可以在 MySQL 客户端中,通过以下命令查看 BE 的配置项,具体语法参照[SHOW-CONFIG](../../sql-manual/sql-statements/Database-Administration-Statements/SHOW-CONFIG.md): + + `SHOW BACKEND CONFIG;` + + 结果中各列含义如下: + + 1. BackendId: backend 节点 ID。 + 2. Host: backend 节点 IP。 + 3. Key: 配置项名称。 + 4. Value: 配置项的值。 + 5. Type: 配置项值类型,如果整型、字符串。 Review Comment: 如整型、字符串,多了一个果字 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org