Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMQX 5.x 配置优先级翻转问题 #2517

Open
tigercl opened this issue Jun 5, 2024 · 0 comments
Open

EMQX 5.x 配置优先级翻转问题 #2517

tigercl opened this issue Jun 5, 2024 · 0 comments

Comments

@tigercl
Copy link
Contributor

tigercl commented Jun 5, 2024

EMQX 启动时配置的优先级:环境变量 > emqx.conf > cluster.hocon

EMQX 运行时配置的优先级:谁最后修改,谁优先级最高。(文档中未明确说明)

这存在一个问题,如果 EMQX 先从 emqx.conf 启动,在 EMQX 运行过程中我通过 Dashboard 修改了配置(比如更新某个 Sink 的地址),这时如果 EMQX 发生重启,将丢失上一次运行期间的所有修改,回退到 emqx.conf 中的配置,这可能导致服务不可用(因为 Sink 的地址已经失效等等)

我想文档中必须明确地提醒这一点:在特定情况下(就像前面说的那样),EMQX 重启前后的运行状态可能不一样,以及用户需要怎么做来避免这种情况。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant