RabbitMq cluster configuration for IQ Bot

Use the command prompt to configure three clusters.

Prerequisites

Complete steps 1 and 2 in Installing IQ Bot in Cluster mode.

Procedure

  1. Open command prompt, navigate to {RabbitMq installation directory}\sbin and execute the following command: rabbitmqctl.bat cluster_status.
    You will see an output similar to this:Cluster status of node rabbit@IQBotCluster1 ... [{ nodes, [{ disc, [rabbit @IQBotCluster1] }] }, { running_nodes, [rabbit @IQBotCluster1] }, { cluster_name, << "rabbit@IQBotCluster1" >> }, { partitions, [] }, { alarms, [{ rabbit @IQBotCluster1, [] }] }]
  2. Execute the following command: rabbitmqctl list_queues -p test.
  3. Configure the primary cluster.
    1. In IQBotCluster1 VM, open command prompt and navigate to {IQ Bot Installation Directory}\Configurations
    2. Execute the following command: messagequeue_cluster_configuration.bat “IQBotCluster1”.
  4. Link the second cluster to the primary cluster.
    1. In IQBotCluster2 VM, open command prompt and navigate to {IQ Bot Installation Directory}\Configurations.
    2. Execute the following command: messagequeue_cluster_configuration.bat “IQBotCluster1”.
  5. Verify if the clusters were added successfully.
    Open command prompt, navigate to {RabbitMq installation directory}\sbin and execute the following command: rabbitmqctl.bat cluster_status.
    You should see a similar output to the following, confirming that the two clusters were successfully added: Cluster status of node rabbit @IQBotCluster2...[{ nodes, [{ disc, [rabbit @IQBotCluster1, rabbit @IQBotCluster2] }] }, { running_nodes, [rabbit @IQBotCluster1, rabbit @IQBotCluster2] }, { cluster_name, << "rabbit@IQBotCluster1" >> }, { partitions, [] }, { alarms, [{ rabbit @IQBotCluster1, [] }, { rabbit @IQBotCluster2, [] }] }]
  6. Link the third cluster to the primary cluster.
    1. In IQBotCluster3 VM, open command prompt and navigate to {IQ Bot Installation Directory}\Configurations.
    2. Execute the following command: messagequeue_cluster_configuration.bat “IQBotCluster1”.
    You should see a similar output to the following, confirming that the third cluster was successfully added: Cluster status of node rabbit @IQBotCluster3...[{ nodes, [{ disc, [rabbit @IQBotCluster1, rabbit @IQBotCluster2, rabbit @IQBotCluster3] }] }, { running_nodes, [rabbit @IQBotCluster1, rabbit @IQBotCluster2, rabbit @IQBotCluster3] }, { cluster_name, << "rabbit@IQBotCluster1" >> }, { partitions, [] }, { alarms, [{ rabbit @IQBotCluster1, [] }, { rabbit @IQBotCluster2, [] }, { rabbit @IQBotCluster3, [] }] }]

Next steps

When you are done linking the clusters, proceed to step 4 in Installing IQ Bot in Cluster mode.