You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by artemisn00b <pr...@nokia.com> on 2019/03/18 21:30:39 UTC

Slave Fail-over in a static cluster

I have 3 master nodes and 3 slaves. I have 2 brokers in each of the 3 VM
instance, and one is a master and the other is a slave. Total 6 brokers.

The current configuration is such that M1, M2, M3 - S1, S2, S3 i.e.
Master1's slave is S2, which is in VM2. So, in case one VM goes down, the
slave will be on the other VM.

However, I notice a peculiar behavior, where the slaves assign different
masters than what they're configured to do so. What I mean is, for example,
on M1's config, I have M2, M3 and S2 in a cluster. In S2's config, I have
only M1 as a connector reference. 

Let me know if this is intended, else I'll post my broker configuration.


Thanks guys! :)




--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Slave Fail-over in a static cluster

Posted by artemisn00b <pr...@nokia.com>.
Awesome as usual! I'll give it a try and see how it works out!



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Slave Fail-over in a static cluster

Posted by artemisn00b <pr...@nokia.com>.
Hey Justin, so if I have 3 master nodes and 3 slave nodes, should I have all
the 5 nodes in each broker's static connectors, or only the masters + 1
slave (same group) would do?



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Slave Fail-over in a static cluster

Posted by Justin Bertram <jb...@apache.org>.
Take a look at the documentation for replication [1], specifically the
"Data Replication" section. It discusses the "group-name" configuration
parameter which is what I believe you want.

You'll find there's lots of helpful things in the documentation.  :)


Justin

[1] https://activemq.apache.org/artemis/docs/latest/ha.html

On Mon, Mar 18, 2019 at 4:44 PM artemisn00b <pr...@nokia.com> wrote:

> It's a replication HA. On what basis does a master and slave pair together
> then?
>
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>

Re: Slave Fail-over in a static cluster

Posted by artemisn00b <pr...@nokia.com>.
master1.xml <http://activemq.2283324.n4.nabble.com/file/t379404/master1.xml>  
master2.xml <http://activemq.2283324.n4.nabble.com/file/t379404/master2.xml>  
slave1.xml <http://activemq.2283324.n4.nabble.com/file/t379404/slave1.xml>  
slave2.xml <http://activemq.2283324.n4.nabble.com/file/t379404/slave2.xml>  
master3.xml <http://activemq.2283324.n4.nabble.com/file/t379404/master3.xml>  
slave3.xml <http://activemq.2283324.n4.nabble.com/file/t379404/slave3.xml>  

Please keep in mind that Master 1's intended slave is Slave2. Master2's
slave is Slave 3 and Master3's slave is Slave1.



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Slave Fail-over in a static cluster

Posted by artemisn00b <pr...@nokia.com>.
It's a replication HA. On what basis does a master and slave pair together
then?




--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Slave Fail-over in a static cluster

Posted by Justin Bertram <jb...@apache.org>.
What kind of HA have you configured (i.e. replication or shared-store)?

The cluster connection configuration doesn't define how masters and slaves
pair together.


Justin

On Mon, Mar 18, 2019 at 4:30 PM artemisn00b <pr...@nokia.com> wrote:

> I have 3 master nodes and 3 slaves. I have 2 brokers in each of the 3 VM
> instance, and one is a master and the other is a slave. Total 6 brokers.
>
> The current configuration is such that M1, M2, M3 - S1, S2, S3 i.e.
> Master1's slave is S2, which is in VM2. So, in case one VM goes down, the
> slave will be on the other VM.
>
> However, I notice a peculiar behavior, where the slaves assign different
> masters than what they're configured to do so. What I mean is, for example,
> on M1's config, I have M2, M3 and S2 in a cluster. In S2's config, I have
> only M1 as a connector reference.
>
> Let me know if this is intended, else I'll post my broker configuration.
>
>
> Thanks guys! :)
>
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>