Skip to content

Conversation

@DarvenDuan
Copy link
Contributor

@DarvenDuan DarvenDuan commented Nov 6, 2024

Versions

PR apache/doris#36525 has implemented showing backend config by ShowStmt, add some docs.

  • dev
  • 3.0
  • 2.1
  • 2.0

Languages

  • Chinese
  • English


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):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BE or FE ?

SHOW BACKEND CONFIG FROM 10001;
```
4. View the configuration useing both a pattern and a backend ID
````
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

``` only three `

+-----------+---------------+---------+-------+---------+-----------+
| 10001 | xx.xx.xxx.xxx | be_port | 9060 | int32_t | false |
+-----------+---------------+---------+-------+---------+-----------+
````
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only three ```

2. Host: backend 节点 IP。
3. Key: 配置项名称。
4. Value: 配置项的值。
5. Type: 配置项值类型,如果整型、字符串。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如整型、字符串,多了一个果字

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议所有内容交给大模型优化下,以下是大模型优化的结果:

查看配置项

有两种方式能够查看 BE 配置项:

  1. 通过 BE 的 Web 管理界面查看

    在浏览器中打开 BE 的 Web 管理界面: http://be_host:be_webserver_port/varz

  2. 通过命令行查看

    可以在 MySQL 客户端中,通过以下命令查看 BE 的配置项,具体用法参照 SHOW-CONFIG

    SHOW BACKEND CONFIG;

    结果中各列含义如下:

    • BackendId: Backend 节点 ID。
    • Host: Backend 节点 IP。
    • Key: 配置项名称。
    • Value: 配置项的值。
    • Type: 配置项值类型,如整型、字符串。
    • 是否可以动态配置:如果为 true,表示该配置项可以在运行时进行动态配置。如果为 false,则表示该配置项只能在 be.conf 中配置并且重启 BE 后生效。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have done

@DarvenDuan DarvenDuan force-pushed the add_show_be_config_doc branch from 118a7f1 to 1e6a150 Compare November 7, 2024 12:31
@DarvenDuan DarvenDuan requested a review from KassieZ November 7, 2024 12:31
@KassieZ KassieZ merged commit 7b68672 into apache:master Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants