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

Restricted Security Area Surveillance Plugin Guide 3.5

series
Restricted Security Area Surveillance 3.5
revised_modified
2020-07-06

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.

Procedure

  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 so they become highly available:
    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""}"