[rabbitmq-discuss] Clustering

Matthias Radestock matthias at rabbitmq.com
Mon Oct 22 21:26:58 BST 2012


On 22/10/12 20:28, chetan dev wrote:
>>     here is what i am doing
>>     1. two nodes rabbit at SHIKHARM and rabbit at CHETANDEV are clustered

yes, but...

>> i clustered them as given on rabbitmq clustering documentation for e.g
>> on the first place both nodes are running
>> now i stopped app using rabbitmqctl stop_app then i reset that node than
>> i clusterd that node with another using rabbitmqctl cluster rabbit at SHIKHARM
>> then i started the node using rabbitmqctl start_app
>> when i checked the cluster status it was showing fine then i did as i
>> mentioned earlier

That will make rabbit at CHETANDEV a *ram* node. To make both nodes disk 
nodes the node itself would have to be mentioned in the cluster command 
too, i.e. 'rabbitmqctl cluster rabbit at SHIKHAR rabbit at CHETANDEV'.

>>     2. now i stop node rabbit at SHIKHARM using  rabbitmqctl stop commnad
>>     3. now i start the node rabbit at SHIKHARM using rabbitmq-server
>>     start commnad

You have just stopped and restarted the clusters' only disk node. Rabbit 
clusters won't function properly if they have only ram nodes.

>>     4. and then i check cluster status it shows only one running node
>>     Cluster status of node rabbit at CHETANDEV ...
>>     [{nodes,[{disc,[rabbit at SHIKHARM]},{ram,[rabbit at CHETANDEV]}]},
>>      {running_nodes,[rabbit at CHETANDEV]}]
>>     ...done.

Try running that command against rabbit at SHIKHARM. I suspect it will tell 
you that it only knows about itself.

Anyway, I suggest you change your cluster configuration s.t. both nodes 
are disk nodes.

Regards,

Matthias.


More information about the rabbitmq-discuss mailing list