Merge pull request #10230 from zmstone/0324-update-docs

docs: delete local-override.conf from config template
This commit is contained in:
Zaiming (Stone) Shi 2023-03-24 09:14:40 +01:00 committed by GitHub
commit 9d994575d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -4,13 +4,12 @@ and a superset of JSON.
## Layered
EMQX configuration consists of 3 layers.
EMQX configuration consists of two layers.
From bottom up:
1. Immutable base: `emqx.conf` + `EMQX_` prefixed environment variables.<br/>
Changes in this layer require a full node restart to take effect.
1. Cluster overrides: `$EMQX_NODE__DATA_DIR/configs/cluster-override.conf`
1. Local node overrides: `$EMQX_NODE__DATA_DIR/configs/local-override.conf`
When environment variable `$EMQX_NODE__DATA_DIR` is not set, config `node.data_dir`
is used.

View File

@ -3,12 +3,11 @@ HOCONHuman-Optimized Config Object Notation是一个JSON的超集非常
## 分层结构
EMQX的配置文件可分为层,自底向上依次是:
EMQX的配置文件可分为层,自底向上依次是:
1. 不可变的基础层 `emqx.conf` 加上 `EMQX_` 前缀的环境变量。<br/>
修改这一层的配置之后,需要重启节点来使之生效。
1. 集群范围重载层:`$EMQX_NODE__DATA_DIR/configs/cluster-override.conf`
1. 节点本地重载层:`$EMQX_NODE__DATA_DIR/configs/local-override.conf`
如果环境变量 `$EMQX_NODE__DATA_DIR` 没有设置,那么该目录会从 `emqx.conf``node.data_dir` 配置中读取。