RabbitMQ — Cluster Config¶
# Master node
rabbitmqctl set_policy ha-all "" '{"ha-mode":"all","ha-sync-mode":"automatic"}'
# Slave nodes
rabbitmqctl stop_app
rabbitmqctl join_cluster rabbit@SERVER_DNS_NAME
rabbitmqctl start_app
Troubleshoot¶
All nodes MUST have the same erlang.cookie. Locations:
/var/lib/rabbitmq/.erlang.cookie$HOME/.erlang.cookie
Force file locations¶
Content: