[rabbitmq-discuss] Clustering question

Matt Calder mvcalder at gmail.com
Tue May 11 16:20:12 BST 2010


Hi,

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. 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.

So the this machine is aware of the other, but is unable to
communicate with it.

Both machines have the same cookie in  ~rabbitmq/.erlang.cookie . I do
not see any errors in the logs. Like I said above, I can communicate
from each machine to the other withou a problem. Any suggestions would
be helpful, thanks.

Matt



More information about the rabbitmq-discuss mailing list