Database Reference
In-Depth Information
Creating a RabbitMQ cluster
Here are the steps that you need to execute to set up a two (or more) node RabbitMQ
cluster:
1. Considering rmq-flc-1 and rmq-flc-2 are the short hostnames of the two
instances, we will start standalone RabbitMQ servers on both instances using the
command:
sudo service rabbitmq-server start
2. On rmq-flc-2 , we will stop the RabbitMQ application, reset the node, join the
cluster, and restart the RabbitMQ application using the following commands (all
this is being done while the RabbitMQ server is up and running on rmq-
flc-1 ):
sudo rabbitmqctl stop_app
sudo rabbitmqctl join_cluster rabbit@rmq-flc-1
sudo rabbitmqctl start_app
3. Check the cluster status by running the following command on any of the ma-
chines:
sudo service rabbitmq-server status
4. The following output should be seen:
5. The cluster is set up successfully.
Search WWH ::




Custom Search