RabbitMq cluster configuration for IQ Bot
Feedback
- Updated: 2021/11/03
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
-
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, [] }] }]
-
Execute the following command:
rabbitmqctl list_queues -p test
. -
Configure the primary cluster.
-
In IQBotCluster1 VM, open command prompt and navigate to
{IQ Bot Installation Directory}\Configurations
-
Execute the following command:
messagequeue_cluster_configuration.bat “IQBotCluster1”
.
-
In IQBotCluster1 VM, open command prompt and navigate to
-
Link the second cluster to the primary cluster.
-
In IQBotCluster2 VM, open command prompt and navigate to
{IQ Bot Installation Directory}\Configurations
. -
Execute the following command:
messagequeue_cluster_configuration.bat “IQBotCluster1”
.
-
In IQBotCluster2 VM, open command prompt and navigate to
-
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, [] }] }]
-
Link the third cluster to the primary cluster.
-
In IQBotCluster3 VM, open command prompt and navigate to
{IQ Bot Installation Directory}\Configurations
. -
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, [] }] }]
-
In IQBotCluster3 VM, open command prompt and navigate to
Next steps
When you are done linking the clusters, proceed to step 4 in Installing IQ Bot in Cluster mode.