Adding nodes to RabbitMQ master node cluster - Genetec Mission Control™ 2.13.3.0

Genetec Mission Control™ Deployment Guide 2.13.3.0

series
Genetec Mission Control™ 2.13.3.0
revised_modified
2020-07-15

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. Run the RabbitMQ Command Prompt (sbin dir) application in Administrator mode.
    This application is installed with RabbitMQ by default
  2. To stop the node, execute the following command:
    rabbitmqctl.bat 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.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.
  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""}"