[rabbitmq-discuss] Moving from 2node to 3node cluster?

Simon MacMullen simon at rabbitmq.com
Mon Jun 9 10:11:42 BST 2014

On 07/06/2014 2:36AM, Jakov Sosic wrote:
> I have a 2node rabbitmq cluster with about 10 HA queues.
> I plan to expand it to 3 node cluster..
> My plan so far is to:
> - shut down secondary
> - shut down primary
> - change config on primary
> - start primary
> - change config on secondary
> - start secondary
> - sync secondary to primary
> - start third server
> Is there maybe a faster solution, or is this as best as I can do :)

You don't need to do that.

I assume by "config" you're referring to 

But the docs there say:

> Note that the cluster configuration is applied only to fresh nodes. A
> fresh nodes is a node which has just been reset or is being start for
> the first time. Thus, the automatic clustering won't take place after
> restarts of nodes. This means that any change to the clustering via
> rabbitmqctl will take precedence over the automatic clustering
> configuration.

So neither of the existing nodes need to be reconfigured. You just need 
to tell the third node to join the cluster, either with the config file 
(on the third node!) as mentioned above, or with 'rabbitmqctl 
join_cluster'. No downtime needed.

Cheers, Simon

Simon MacMullen
RabbitMQ, Pivotal

More information about the rabbitmq-discuss mailing list