Configuring failover for RabbitMQ - Genetec Mission Control™ 2.11 GA

Genetec Mission Control™ User Guide 2.11 GA

Applies to
Genetec Mission Control™ 2.11 GA
Last updated
2019-06-12
Content type
Guides
Guides > User guides
Language
English
Product
Genetec Mission Control™
Version
2.11

For high availability, you must first configure a RabbitMQ cluster with a master node (primary server) and a secondary node (secondary server). After a working cluster is created, you can mirror the nodes. This ensures that when the master node is unavailable, the secondary node can be reached so no data is lost.

Before you begin

Install RabbitMQ on two separate servers, a master node and a secondary node. See Installing Genetec Mission Control™.

What you should know

All servers in the RabbitMQ cluster must be on the same domain and on the same LAN (local area network).

Procedure

  1. Configure a RabbitMQ cluster.
    1. Copy the .erlang.cookie file from the master node to the secondary node.
      This file is located in two places on the master node, it must be copied to the same two locations on the secondary node:
      • C:\Windows\System32\config\systemprofile
      • %HOMEDRIVE%%HOMEPATH%

        Usually C:\Users\<username>

    2. Restart the RabbitMQ service on the secondary node.
    3. On your RabbitMQ master node, open the RabbitMQ Command Prompt and enter:
      C:\Program Files\RabbitMQ Server\rabbitmq_server-<version>\sbin\rabbitmqctl start_app

      Where <version> is the version number of your RabbitMQ installation package.

    4. On the secondary node, open the RabbitMQ Command Prompt and enter:
      C:\Program Files\RabbitMQ Server\rabbitmq_server-<version>\sbin\rabbitmqctl stop_app
      C:\Program Files\RabbitMQ Server\rabbitmq_server-<version>\sbin\rabbitmqctl join_cluster rabbit@<MasterNodeName>
      C:\Program Files\RabbitMQ Server\rabbitmq_server-<version>\sbin\rabbitmqctl start_app
      NOTE: <MasterNodeName> is case sensitive.
      This adds the secondary node to a cluster with the master node.
  2. Mirror the RabbitMQ master and secondary node.
    On either the master or secondary node, open the RabbitMQ Command Prompt and enter:
    C:\Program Files\RabbitMQ Server\rabbitmq_server-<version>\sbin\rabbitmqctl set_policy ha-all "" "{""ha-mode"":""all""}"