多次手动集群,只成功一个

root@verdin-imx8mp-07154523:/opt/emqx# LD_LIBRARY_PATH=/opt/emqx/dynlibs/ ./bin/emqx_ctl cluster join ‘emqx0326@192.168.3.26’
Join the cluster successfully.
Cluster status: #{running_nodes =>
[‘emqx0325@192.168.3.25’,‘emqx0326@192.168.3.26’],
stopped_nodes => }
root@verdin-imx8mp-07154523:/opt/emqx# LD_LIBRARY_PATH=/opt/emqx/dynlibs/ ./bin/emqx_ctl cluster join ‘emqx0327@192.168.3.27’
Join the cluster successfully.
Cluster status: #{running_nodes =>
[‘emqx0325@192.168.3.25’,‘emqx0327@192.168.3.27’],
stopped_nodes => }
第一次集群成功,第二次集群也成功,但是第一次集群成功的节点丢失了。

集群的日志

2023-10-19T12:49:31.067578+00:00 [warning] msg: Stopping mria, mfa: mria:stop/1, line: 134, reason: join
2023-10-19T12:49:34.136153+00:00 [warning] msg: CMD_overridden, mfa: emqx_ctl:handle_call/3, line: 254, cmd: observer, mf: {emqx_observer_cli,cmd}
2023-10-19T12:49:34.136920+00:00 [warning] msg: CMD_overridden, mfa: emqx_ctl:handle_call/3, line: 254, cmd: cluster_call, mf: {emqx_conf_cli,admins}
2023-10-19T12:49:34.137486+00:00 [warning] msg: CMD_overridden, mfa: emqx_ctl:handle_call/3, line: 254, cmd: conf, mf: {emqx_conf_cli,conf}

您好。您这里列出了3个节点:

第一条命令是“emqx0325@192.168.3.25”加入到“emqx0326@192.168.3.26”。
第二条命令是“emqx0325@192.168.3.25”是加入到”emqx0327@192.168.3.27”,所以“emqx0325@192.168.3.25”离开“emqx0326@192.168.3.26”,加入到新指定的节点。

如果您想将这3个节点构成一个集群,可以
执行“emqx0325@192.168.3.25” join “emqx0326@192.168.3.26”
执行”emqx0327@192.168.3.27” join “emqx0326@192.168.3.26”