activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: difficult and unusual configuration..
Date Mon, 13 May 2013 14:30:43 GMT
Paul, that is correct.


On Sun, May 12, 2013 at 7:01 PM, Paul Gale <paul.n.gale@gmail.com> wrote:

> >I saw this document from here
> http://activemq.apache.org/jdbc-master-slave.html and i think in here they
> allow brokers to have more than 2.
> >Did i misunderstand what you mean?
>
> In master-slave you can have as many brokers as you want, regardless of the
> storage strategy in use. However, there can only be one master at any one
> instant in time. The other brokers will remain slaves. As slaves they have
> their transport connectors turned so as not to accept any client
> connections. They are also constantly trying to acquire the shared lock
> that the master hold. If the master dies one of the slaves will be
> successful in its next attempt to acquire the lock as the master will not
> have been able to renew its lease on the lock. Once acquired the slave
> holding the lock will automatically promote itself to become the new master
> at which point it will turn on its transport connectors and start accepting
> client connections.
>
> One requirement for all this to work is that all clients must be using the
> failover protocol to connect to a broker. In turn all clients using the
> failover protocol must know the addresses of all the brokers as
> load-balancing is done client-side; an unfortunate consequence of using the
> failover protocol. I suppose you could mitigate this by putting all the
> brokers behind a load-balancer and have all clients use a single VIP
> although how the load-balancer would know which broker was the new master
> is not clear to me.
>
> At least that's how I've always understood it.
>
> Feel free to correct any errors.
>
> Thanks,
> Paul
>
>
> On Sun, May 12, 2013 at 8:24 PM, verystrongjoe <verystrongjoe@gmail.com
> >wrote:
>
> > thanks for reply.
> > so you mean the master/slave have to configured with only 2 brokers?
> >
> > I saw this document from activemq.org ( here
> > <http://activemq.apache.org/jdbc-master-slave.html>  )
> > and i think in here they allow brokers to have more than 2.
> > did i misunderstand what you mean?
> >
> > and how about using vm connector and putting the jdbc persistent adaptor
> to
> > each broker?
> >
> >
> >
> > --
> > View this message in context:
> >
> http://activemq.2283324.n4.nabble.com/difficult-and-unusual-configuration-tp4666877p4666941.html
> > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
> >
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message