When using peer discovery, nodes must be restarted to forget a cluster node #6023
-
Reported here: This project demonstrates setting up a cluster using classic peer discovery: This script shows the steps necessary to forget a cluster node ( Note that nodes must be restarted (after commenting out the relevant config lines) in order for the peer discovery configuration to be cleared from RabbitMQ. cc @michaelklishin - is this expected? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Peer discovery is only performed by freshly booting nodes early in the boot process. It does not change cluster membership. Node removal generally assumes that the node is stopped or won't be coming back. A restarted node, if it reads the same In other words, a node without any peer discovery information won't know how to rejoin the cluster but a node that is set up to perform peer discovery will, if it is restarted for any reason at any moment after I was removed from the original cluster. |
Beta Was this translation helpful? Give feedback.
Peer discovery is only performed by freshly booting nodes early in the boot process. It does not change cluster membership.
Node removal generally assumes that the node is stopped or won't be coming back.
A restarted node, if it reads the same
rabbitmq.conf
, would rejoin its cluster early on boot. This may be what confuses you. There should be debug log messages around peer discovery activity.In other words, a node without any peer discovery information won't know how to rejoin the cluster but a node that is set up to perform peer discovery will, if it is restarted for any reason at any moment after I was removed from the original cluster.