Adding nodes to RabbitMQ master node cluster - Restricted Security Area Surveillance 4.2

Restricted Security Area Surveillance Plugin Guide 4.2

Applies to
Restricted Security Area Surveillance 4.2
Last updated
Content type
Guides > Plugin and extension guides
English (United States)
Restricted Security Area Surveillance

Add backup nodes to the RabbitMQ master node cluster to help you enable queue mirroring. This ensures that messages published to a queue are replicated to all mirrors.


  1. On each node, right-click the RabbitMQ Command Prompt (sbin dir) application and select Run as administrator.
    This application is installed with RabbitMQ by default
  2. To stop the node, execute the following command:
    rabbitmqctl stop_app
  3. To add the node to the cluster, execute the following command:
    rabbitmqctl.bat join_cluster rabbit@<MasterNodeName>
    NOTE: <MasterNodeName> is case sensitive.
  4. To restart the node, execute the following command:
    rabbitmqctl 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.
  5. Enable queue mirroring on each node to improve high-availability:
    1. On all the nodes, including the master node, open the RabbitMQ Command Prompt.
    2. Execute the following command:
      rabbitmqctl.bat set_policy ha-all "" "{""ha-mode"":""all"", ""ha-sync-mode"":""automatic""}"