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

Genetec Mission Control™ Deployment Guide

Applies to
Genetec Mission Control™
Last updated
Content type
Guides > Deployment guides
Genetec Mission Control™

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.

Before you begin

You must open port 25672 on every node.


  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 -p Genetec.MissionControl ha-all "" "{""ha-mode"":""all"", ""ha-sync-mode"":""automatic""}"
      NOTE: You can also do this through the RabbitMQ web portal (https://localhost:15671).

      In the Admin tab, Policies section, ensure that the Genetec.MissionControl virtual host has the policy ha-all.

      If the Genetec.MissionControl virtual host policy is not set to ha-all:
      1. In the Name text box, enter ha-all.
      2. From the Apply to list, select Queues.
      3. From the Queues [Classic] tags list, click HA mode.
      4. Ensure the Definition > ha-mode is set to all.
      5. From the Queues [Classic] tags list, click HA sync mode.
      6. Ensure the Definition > ha-sync-mode is set to automatic.
      7. Click Add / Update policy.