This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new c36cd18a08 [docs](docs)add more explanation for Fe config (#21627) c36cd18a08 is described below commit c36cd18a087a306be1f8e82c914c1bb219d9f0c5 Author: wangbo <wan...@apache.org> AuthorDate: Sun Jul 9 08:46:37 2023 +0800 [docs](docs)add more explanation for Fe config (#21627) add more explanation for Fe config --- docs/en/docs/admin-manual/config/fe-config-template.md | 8 ++++++++ docs/zh-CN/docs/admin-manual/config/fe-config-template.md | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/docs/en/docs/admin-manual/config/fe-config-template.md b/docs/en/docs/admin-manual/config/fe-config-template.md index 9e4650d0b5..e73cf1ec9f 100644 --- a/docs/en/docs/admin-manual/config/fe-config-template.md +++ b/docs/en/docs/admin-manual/config/fe-config-template.md @@ -38,6 +38,14 @@ After the FE process is started, it will read the configuration items in `fe.con The location of the `fe_custom.conf` file can be configured in `fe.conf` through the `custom_config_dir` configuration item. +## Precautions + +**1.** For the purpose of simplifying the architecture, modifying the configuration through the mysql protocol will only modify the data in the local FE memory, and will not synchronize the changes to all FEs. +For Config items that only take effect on the Master FE, the modification request will be automatically forwarded to the Master FE. + +**2.** Note that the option ```forward_to_master``` will affect the display results of ```admin show frontend config```, if ```forward_to_master=true```, ```admin show frontend config``` shows the Config of Master FE (Even if you are connecting to a Follower FE currently), this may cause you to be unable to see the modification of the local FE configuration; if you expect show config of the FE you're connecting, then execute the command ```set forward_to_master=false```. + + ## View configuration items There are two ways to view the configuration items of FE: diff --git a/docs/zh-CN/docs/admin-manual/config/fe-config-template.md b/docs/zh-CN/docs/admin-manual/config/fe-config-template.md index 025475e3ab..08a711aadb 100644 --- a/docs/zh-CN/docs/admin-manual/config/fe-config-template.md +++ b/docs/zh-CN/docs/admin-manual/config/fe-config-template.md @@ -37,6 +37,13 @@ FE 进程启动后,会先读取 `fe.conf` 中的配置项,之后再读取 `f `fe_custom.conf` 文件的位置可以在 `fe.conf` 通过 `custom_config_dir` 配置项配置。 +## 注意事项 + +**1.** 出于简化架构的目的,目前通过```mysql协议修改Config```的方式修改配置只会修改本地FE内存中的数据,而不会把变更同步到所有FE。 +对于只会在Master FE生效的Config项,修改请求会自动转发到Master节点 + +**2.** 需要注意```forward_to_master```选项会影响```admin show frontend config```的展示结果,如果```forward_to_master=true```,那么只会展示Master的配置(即使您此时连接的是Follower FE节点),这可能导致您无法看到对本地FE配置的修改;如果期望show config返回本地FE的配置项,那么执行命令```set forward_to_master=false``` + ## 查看配置项 FE 的配置项有两种方式进行查看: --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org