activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiram Chirino <>
Subject Re: Connecting to Master/Slave from client libs (MQTT, STOMP etc.) and failover
Date Thu, 15 May 2014 13:49:29 GMT
On Wed, May 14, 2014 at 4:12 PM, paddycarman <> wrote:
> Hi All,
>  In a Master/Slave setup AFAIK, the individual brokers have different IP
> addresses. Let's say that a device would like to connect to a  Master/Slave
> setup using a client lib (say MQTT). How do we do failover in this case? As
> far as I understand, the failover protocol is only for JMS connections.

Correct.  Failover is mostly a function of the client lib.

> * Should the client know the IP addresses of both the Master and Slave and
> handle connection failures on its own by connecting to the slave if the
> master fails?


> * Is there a way to advertise a single IP address for the Master/Slave setup
> and hide the details of the setup from the client?

Yes.  Use TCP load balancer in front of the master/slave pairs.
Something like HAProxy should work.

> Thanks in advance.
> Paddy
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

Hiram Chirino
Engineering | Red Hat, Inc. | |
skype: hiramchirino | twitter: @hiramchirino

View raw message