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

核心节点是否承载MQTT连接的疑问? #2367

Open
alwyngo opened this issue Feb 20, 2024 · 0 comments
Open

核心节点是否承载MQTT连接的疑问? #2367

alwyngo opened this issue Feb 20, 2024 · 0 comments

Comments

@alwyngo
Copy link

alwyngo commented Feb 20, 2024

https://www.emqx.io/docs/zh/latest/deploy/cluster/mria-introduction.html
文档版本 v5.5

根据业务需求,核心节点可以连接 MQTT 客户端,也可以纯粹作为集群的数据库来使用,我们建议:

在小型集群中(3个节点或更少),没有必要使用 Core + Replicant 复制模式,而是让核心节点承载所有连接。
在超大的集群中(10 个节点或更多),核心节点不承载 MQTT 连接,这样更加稳定性和水平扩展性更好。
在中型集群中,核心节点是否承载 MQTT 连接取决于许多因素,需要根据您实际的场景测试才能知道哪个选择更优。

问题:在同时存在核心节点和复制节点的集群中,核心节点可以配置为接收连接或不接收连接吗?还是在复制节点存在的情况下,核心节点都不会承载MQTT连接?

在文档 https://docs.emqx.com/zh/emqx-operator/2.1.0/tasks/configure-emqx-core-replicant.html#%E9%85%8D%E7%BD%AE-emqx-%E9%9B%86%E7%BE%A4-core-%E8%8A%82%E7%82%B9 中有说明支出:
如果 EMQX 集群配置了 Replicant 节点,MQTT 客户端的请求会连接 Rplicant 节点,否则会连接到 Core 节点。访问 EMQX Dashboard 的请求只会连接到 Core 节点。

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