有时我们有必要从集群中移出某个node,分三步
[root@h102 ~]# rabbitmqctl cluster_status
Cluster status of node rabbit@h102 ...
[{nodes,[{disc,[rabbit@h101,rabbit@h102]}]},
{running_nodes,[rabbit@h101,rabbit@h102]},
{cluster_name,<<"rabbit@h101.temp">>},
{partitions,[]}]
[root@h102 ~]# rabbitmqctl stop_app
Stopping node rabbit@h102 ...
[root@h102 ~]# rabbitmqctl reset
Resetting node rabbit@h102 ...
[root@h102 ~]# rabbitmqctl start_app
Starting node rabbit@h102 ...
[root@h102 ~]# rabbitmqctl cluster_status
Cluster status of node rabbit@h102 ...
[{nodes,[{disc,[rabbit@h102]}]},
{running_nodes,[rabbit@h102]},
{cluster_name,<<"rabbit@h102.temp">>},
{partitions,[]}]
[root@h102 ~]#
h101上的集群状态
[root@h101 ~]# rabbitmqctl cluster_status
Cluster status of node rabbit@h101 ...
[{nodes,[{disc,[rabbit@h101,rabbit@h102]}]},
{running_nodes,[rabbit@h102,rabbit@h101]},
{cluster_name,<<"rabbit@h101.temp">>},
{partitions,[]}]
[root@h101 ~]# rabbitmqctl cluster_status
Cluster status of node rabbit@h101 ...
[{nodes,[{disc,[rabbit@h101,rabbit@h102]}]},
{running_nodes,[rabbit@h101]},
{cluster_name,<<"rabbit@h101.temp">>},
{partitions,[]}]
[root@h101 ~]# rabbitmqctl cluster_status
Cluster status of node rabbit@h101 ...
[{nodes,[{disc,[rabbit@h101]}]},
{running_nodes,[rabbit@h101]},
{cluster_name,<<"rabbit@h101.temp">>},
{partitions,[]}]
[root@h101 ~]#
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。