Rabbitmq Clustering with three nodes

Viewed 6619

I am trying to do clustering on RABBITMQ. I have added 2 nodes but unable to add 3rd one.i have clustered rabbit@node1 and rabbit@node2. Now I am trying to cluster rabbit@node3 with rabbit@node1. Here is what I am trying to do

rabbitmqctl join_cluster rabbit@node1
Clustering node rabbit@node3 with rabbit@node1 ...
Error: mnesia_not_running

Is there any solution that how to add a third node in cluster? Or any solution for the Error: mnesia_not_running

2 Answers

It happens when the target node's app is stopped. When joining a node to a rabbitmq cluster, only the source node(the node which you are trying to link) should be stopped.

master node: rabbitmqctl start_app

on the current node: rabbitmqctl stop_app rabbitmqctl join_cluster rabbit@node1

Related