Add backup nodes to the RabbitMQ cluster to help you enable queue mirroring. This
ensures that messages published to a queue are replicated to all mirrors.
Before you begin
You must open port 25672 on every node.
Procedure
-
In Windows search box, type navigate RabbitMQ Command Prompt (sbin dir).
-
Right-click and select Run as administrator.
This application is installed with RabbitMQ by default
-
To stop the node, execute the following command:
rabbitmqctl.bat stop_app
-
To add the node to the cluster, execute the following command in the backup node:
rabbitmqctl.bat join_cluster
rabbit@<NodeName>
NOTE:
<NodeName> is case sensitive.
-
To restart the node, execute the following command:
rabbitmqctl.bat start_app
NOTE: You can verify that the correct node has been added successfully by executing the
following command:
rabbitmqctl.bat cluster_status
or through the
RabbitMQ web interface at
https://<node
hostname>:15671
-
In Windows, open the Services application and restart the RabbitMQ
service on all servers.