[rabbitmq-discuss] Get a list of running nodes in RabbitMQ cluster

Matthew Sackman matthew at rabbitmq.com
Thu Nov 18 12:08:31 GMT 2010

On Thu, Nov 18, 2010 at 03:52:40AM -0800, sriramv wrote:
>         I have set up a RabbitMQ cluster consisting of 2 nodes. I need to
> retrieve the running nodes on the cluster.

rabbitmqctl status

> What if I want to remotely(a client) fetch this information from either of
> these nodes. The reason for this is I am implementing HA on the client side
> rather than on RabbitMQ server. So in case one of the nodes goes down I will
> know the other one running and can connect to this.
> Any suggestion for achieving this functionality.

There are a couple of ways of doing this. One would be DNS changes,
driven by something like pacemaker which responds to the failure of one
node. Another is to just preload the clients with the necessary host
names and have them try each host in order. Another would be to stick a
plain TCP load balancer in front and have it monitor the nodes and proxy
TCP connections through as necessary.


More information about the rabbitmq-discuss mailing list