[rabbitmq-discuss] Clustering

Tim Watson watson.timothy at gmail.com
Tue Oct 23 09:20:31 BST 2012


Ah of course - sorry i missed that guys. After so recently looking at the 3.0 cluster commands I'd forgotten that the choice of disk/ram was done that way in 2.8.x. 

On 22 Oct 2012, at 21:26, Matthias Radestock <matthias at rabbitmq.com> wrote:

> 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.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss


More information about the rabbitmq-discuss mailing list