You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Gilbert <gi...@hotmail.com> on 2007/07/09 05:27:46 UTC

Slave broker still accepts connections from MessageProducer

Hi,

Currently I am running a setup with a pure Master/Slave configuration.
According to the documentation, the slave broker should not accept any
connections when it is a slave. So I configure my client with the following
connection url:
failover://(tcp://slavehost:61616,tcp://masterhost:61615)?randomize=false

My assumption is wrong as my client is able to connect to the slave and all
the messages produced are put in the slave's queue. However my consumer is
not able to retrieve the messages from the slave's queue.

Can anyone advise on whether this is the correct behaviour?
Should the slave broker be accepting connections?
Thanks.

Regards,
Gilbert
-- 
View this message in context: http://www.nabble.com/Slave-broker-still-accepts-connections-from-MessageProducer-tf4046999s2354.html#a11495470
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Slave broker still accepts connections from MessageProducer

Posted by Gilbert <gi...@hotmail.com>.
Hi,

The activemq.log does not say anything much at all.
I have attached both the master and slave logs for your reference.

My setup is such that I got a client on the same server as the master
broker.
If the server is restarted and the master broker is configured to auto start
upon reboot, then the client will connect to the master broker successfully.
But as the queue has failover to the slave broker already, now I got some
clients connecting to the slave and 1 client connecting to the master.
Which is why I thought of connecting to the slave first and then failover to
the master.

Thanks for any advice.

Regards,
Gilbert



Sandeep Chayapathi wrote:
> 
> Hi,
> 
>  What does the activemq.log say, on both you master and slave servers ? 
> 
>  With "randomize=false", your client will connect to the servers in the
> same order and failover if they don't get a connection. 
> 
>  Not sure if its a bug with failover or the configuration, but the slave
> should reject connection. Maybe you should be connecting to the master
> server first and then failover to the slave.
> 
> - Sandeep
> 
> 
> Gilbert wrote:
>> 
>> Hi,
>> 
>> Currently I am running a setup with a pure Master/Slave configuration.
>> According to the documentation, the slave broker should not accept any
>> connections when it is a slave. So I configure my client with the
>> following connection url:
>> failover://(tcp://slavehost:61616,tcp://masterhost:61615)?randomize=false
>> 
>> My assumption is wrong as my client is able to connect to the slave and
>> all the messages produced are put in the slave's queue. However my
>> consumer is not able to retrieve the messages from the slave's queue.
>> 
>> Can anyone advise on whether this is the correct behaviour?
>> Should the slave broker be accepting connections?
>> Thanks.
>> 
>> Regards,
>> Gilbert
>> 
> 
> 
http://www.nabble.com/file/p11522778/master.log master.log 
http://www.nabble.com/file/p11522778/slave.log slave.log 
-- 
View this message in context: http://www.nabble.com/Slave-broker-still-accepts-connections-from-MessageProducer-tf4046999s2354.html#a11522778
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Slave broker still accepts connections from MessageProducer

Posted by Sandeep Chayapathi <sa...@wssource.com>.
Hi,

 What does the activemq.log say, on both you master and slave servers ? 

 With "randomize=false", your client will connect to the servers in the same
order and failover if they don't get a connection. 

 Not sure if its a bug with failover or the configuration, but the slave
should reject connection. Maybe you should be connecting to the master
server first and then failover to the slave.

- Sandeep


Gilbert wrote:
> 
> Hi,
> 
> Currently I am running a setup with a pure Master/Slave configuration.
> According to the documentation, the slave broker should not accept any
> connections when it is a slave. So I configure my client with the
> following connection url:
> failover://(tcp://slavehost:61616,tcp://masterhost:61615)?randomize=false
> 
> My assumption is wrong as my client is able to connect to the slave and
> all the messages produced are put in the slave's queue. However my
> consumer is not able to retrieve the messages from the slave's queue.
> 
> Can anyone advise on whether this is the correct behaviour?
> Should the slave broker be accepting connections?
> Thanks.
> 
> Regards,
> Gilbert
> 

-- 
View this message in context: http://www.nabble.com/Slave-broker-still-accepts-connections-from-MessageProducer-tf4046999s2354.html#a11504554
Sent from the ActiveMQ - User mailing list archive at Nabble.com.