vernemq.conf
with the distributed_cookie
setting. Set the Cookie to a private value for security reasons!vernemq.conf
change the nodename = [email protected]
to something appropriate. Make sure that the node names are unique within the cluster. Read the section on VerneMQ Inter-node Communication if firewalls are involved.vmq-admin cluster leave
command. If you want a node to join a cluster use the vmq-admin cluster join
command.vmq-admin cluster leave node=<NodeThatShouldGo>
vmq-admin cluster leave node=<NodeThatShouldGo> -k
-k
flag will delete the MQTT Listeners of the leaving node, taking down all live connections. If this is what you want from the beginning, you can do this right away as a first step.-t
), and an interval in seconds (-i
) indicating how often information on the migration progress should be printed to the console.log):vmq-admin cluster leave node=<NodeThatShouldGo> -k -i 5 -t 120
data
directory and start with a new directory. (It will be created automatically by VerneMQ at boot).