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

Genetec Mission Control™ Deployment Guide 2.13.2.0

Applies to
Genetec Mission Control™ 2.13.2.0
Last updated
2020-05-07
Content type
Guides
Guides > Deployment guides
Language
English
Product
Genetec Mission Control™
Version
2.13

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""}"