You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by CobraTheSleek <ka...@yahoo.com> on 2008/01/23 23:54:20 UTC

Assistance with Master Slave

Hi,

I am trying to understand the master/slave configuration.

I am following the instructions on the website:

"shutdown the slave broker (The clients do not need to be shutdown - they
will wait until the topology is re-established if they are failover clients 
copy the data directory from the slave over the data directory of the master
broker 
re-start the master and the slave "

The directories of the slave is ${ACTIVEMQ_HOME}/data-slave while the
directory of the master is at ${ACTIVEMQ_HOME}/data

When I overrite the data directory with the data-slave directory, the
messages persisted in the queue are not available when the master starts up. 

What am I missing? Which directories do I specifically need to override with
data from the slave?

Thanks much in advance.
-- 
View this message in context: http://www.nabble.com/Assistance-with-Master-Slave-tp15054743s2354p15054743.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Assistance with Master Slave

Posted by CobraTheSleek <ka...@yahoo.com>.
Hi Joe,

Thanks much for the response. I agree regarding that the pure-master slave
is best run on separate machines. I was only trying to understand how it
worked. 

I got it to work by replacing the kr-store folder in the master with the
kr-store folder from the slave.

Thanks


CobraTheSleek wrote:
> 
> Hi,
> 
> I am trying to understand the master/slave configuration.
> 
> I am following the instructions on the website:
> 
> "shutdown the slave broker (The clients do not need to be shutdown - they
> will wait until the topology is re-established if they are failover
> clients 
> copy the data directory from the slave over the data directory of the
> master broker 
> re-start the master and the slave "
> 
> The directories of the slave is ${ACTIVEMQ_HOME}/data-slave while the
> directory of the master is at ${ACTIVEMQ_HOME}/data
> 
> When I overrite the data directory with the data-slave directory, the
> messages persisted in the queue are not available when the master starts
> up. 
> 
> What am I missing? Which directories do I specifically need to override
> with data from the slave?
> 
> Thanks much in advance.
> 

-- 
View this message in context: http://www.nabble.com/Assistance-with-Master-Slave-tp15054743s2354p15065248.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Assistance with Master Slave

Posted by ttmdev <jo...@ttmsolutions.com>.
With a 'pure' master/slave configuration, you want the master and slave
brokers to run on their own separate machines, so you shouldn't have to
fiddle with their default data directory settings.  

Do you have the 'masterConnectorURI' attribute set on the slave broker? For
example, 

<broker xmlns="http://activemq.org/config/1.0" 
           masterConnectorURI="tcp://masterhost:62001"
           brokerName="slave" dataDirectory="${activemq.base}/data">

Joe



CobraTheSleek wrote:
> 
> Hi,
> 
> I am trying to understand the master/slave configuration.
> 
> I am following the instructions on the website:
> 
> "shutdown the slave broker (The clients do not need to be shutdown - they
> will wait until the topology is re-established if they are failover
> clients 
> copy the data directory from the slave over the data directory of the
> master broker 
> re-start the master and the slave "
> 
> The directories of the slave is ${ACTIVEMQ_HOME}/data-slave while the
> directory of the master is at ${ACTIVEMQ_HOME}/data
> 
> When I overrite the data directory with the data-slave directory, the
> messages persisted in the queue are not available when the master starts
> up. 
> 
> What am I missing? Which directories do I specifically need to override
> with data from the slave?
> 
> Thanks much in advance.
> 

-- 
View this message in context: http://www.nabble.com/Assistance-with-Master-Slave-tp15054743s2354p15065238.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.