I think you've misunderstood something important here.

> I was not clear of the benefits of setting up a colocated backup servers
> with data replication approach.

The benefits of colocation are the same whether you use shared-store or 
replication.  The difference is simply how the messages get from the master to 
the slave.


> If I set up master activemq server and slave activemq server in the same
> wildfly instance, then the messages will be copied from master to slave?

You would never colocate a slave in the same JVM as its master as it would be 
useless for HA purposes.  I'm not sure where you got that idea.


> But then the messages in slave activemq.2 will still not
> be accessible since it is master activemq.2 that is active.

When master activemq.1 dies then slave activemq.2 will activate so the messages 
are available. That's the whole point of fail-over.


Justin

----- Original Message -----
From: "wwang2016" <[email protected]>
To: [email protected]
Sent: Thursday, August 11, 2016 1:07:08 PM
Subject: Re: How to configure colocated backup servers for data replication 
approach

Hi Justin,

I was not clear of the benefits of setting up a colocated backup servers
with data replication approach.

If I set up master activemq server and slave activemq server in the same
wildfly instance, then the messages will be copied from master to slave?
That does not seem to be a useful feature since you would like the messages
to be copied between wildfly instances to support HA for messaging. 

The only scenario I can imagine is that for data replication, we set up the
following:

Wildfly #1 (master activemq.1 + slave activemq.1)
Wildfly #2 (master activemq.2 + slave activemq.2) 

Where master activemq.1 pairs with slave activemq.2 and master activemq.2
pairs with slave activemq.1. 
This way, if wildfly #1 is down, the slave activemq.2 will get a copy of
master activemq.1. But then the messages in slave activemq.2 will still not
be accessible since it is master activemq.2 that is active.

I can see the benefit of setting up colocated backup servers with
shared-store, but not with data replication.

Thanks,

Wayne



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/How-to-configure-colocated-backup-servers-for-data-replication-approach-tp4715415p4715417.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to