[rabbitmq-discuss] Clustering question

Matt Calder mvcalder at gmail.com
Tue May 11 17:53:19 BST 2010


Matt,

Uh, yep. Thanks.

Matt

On Tue, May 11, 2010 at 11:28 AM, Matthew Sackman <matthew at lshift.net> wrote:
> Hi Matt,
>
> On Tue, May 11, 2010 at 11:20:12AM -0400, Matt Calder wrote:
>> I am following along the clustering guide and not getting expected
>> results. I have two machines running rabbitmq, and they can
>> communicate (each can send messages to the other). So as per the
>> clustering guide I run:
>>
>> ubuntu at domU-2:~/tmp$ sudo rabbitmqctl stop_app
>> Stopping node 'rabbit at domU-2 ...
>> ...done.
>> ubuntu at domU-2:~/tmp$ sudo rabbitmqctl reset
>> Resetting node 'rabbit at domU-2' ...
>> ...done.
>> ubuntu at domU-2:~/tmp$ sudo rabbitmqctl cluster rabbit at domU-1
>> Clustering node 'rabbit at domU-2' with ['rabbit at domU-1'] ...
>> ...done.
>> ubuntu at domU-2:~/tmp$ sudo rabbitmqctl status
>> Status of node 'rabbit at domU-2' ...
>> [{running_applications,[{sasl,"SASL  CXC 138 11","2.1.6"},
>>                         {stdlib,"ERTS  CXC 138 10","1.16.2"},
>>                         {kernel,"ERTS  CXC 138 10","2.13.2"}]},
>>  {nodes,['rabbit at domU-2']},
>>  {running_nodes,[]}]
>> ...done.
>>
>> So despite the fact that it appeared to run, you can see that there
>> are no running nodes.
>
> The crucial step you're missing is to restart rabbit:
>
> ubuntu at domU-2:~/tmp$ sudo rabbitmqctl start_app
>
>> On the other machine:
>>
>> ubuntu at domU-1:~/tmp$ sudo rabbitmqctl status
>> Status of node 'rabbit at domU-1' ...
>> [{running_applications,[{rabbit,"RabbitMQ","1.6.0"},
>>                         {mnesia,"MNESIA  CXC 138 12","4.4.10"},
>>                         {os_mon,"CPO  CXC 138 46","2.2.2"},
>>                         {sasl,"SASL  CXC 138 11","2.1.6"},
>>                         {stdlib,"ERTS  CXC 138 10","1.16.2"},
>>                         {kernel,"ERTS  CXC 138 10","2.13.2"}]},
>>  {nodes,['rabbit at domU1','rabbit at domU-2']},
>>  {running_nodes,['rabbit at domU-1']}]
>> ...done.
>
> domU-1 knows of the existence of domU-2 now (hence it being listed in
> nodes), but as you've not started it up again, it's not running.
>
> Matthew
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>



More information about the rabbitmq-discuss mailing list