[rabbitmq-discuss] cluster setup not working

mahi e mahi.rabbitmq at gmail.com
Sat Aug 31 23:26:59 BST 2013


Hi

These are the steps performed for cluster.

1. I installed on two server A and B
2. Took from A .erlang.cookie file and placed in B

Executed steps in server B

/rabbitmqctl stop_app
 ./rabbitmqctl reset
 ./rabbitmqctl join_cluster --ram rabbit at B
 ./rabbitmqctl start_app
./rabbitmqctl cluster_status

Cluster was successful.

I wrote a sample program to publish message and given connection details of
server A ( Server A is down.)

java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at
java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)

And my assumption is should publish to server B because in cluster setup up
and running.


Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130831/e5813a77/attachment.htm>


More information about the rabbitmq-discuss mailing list