activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiram Chirino <hi...@hiramchirino.com>
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 <paddy.carman@gmail.com> 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?
>

Yes.

> * 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: http://activemq.2283324.n4.nabble.com/Connecting-to-Master-Slave-from-client-libs-MQTT-STOMP-etc-and-failover-tp4681129.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Hiram Chirino
Engineering | Red Hat, Inc.
hchirino@redhat.com | fusesource.com | redhat.com
skype: hiramchirino | twitter: @hiramchirino

Mime
View raw message