Hi,

I have a question regarding how to balance the consumers for the queues in
network of brokers setup. 

I have 2 activemq brokers which are set up as network of brokers with
network connectors on both directions. There are many independent services
(read as standalone machines) which act as both producers and consumers for
different queues. For example, Service A produces message on queue Q1 which
will be consumed by Service B. A and B are on different servers. To make
services fault tolerant, we have 2 servers for each type of services. for
example, Service A actually has server A1 and server A2, which both produce
messages to the network of brokers. All the services use Camel JMS to
produce or consume messages.

The client side url to brokers is like following:

failover:(tcp://broker1:61616,tcp://borker2:61616)

on the broker side, the transportConnector uri is like:

tcp://0.0.0.0:61616

I also tried to set updateClusterClients="true",
rebalanceClusterClients="true" to the TransportConnector on broker.

The issue is that no matter what I did, for example, if I shut down broker1,
all the consumers will be listening on the queue on the broker2 (20
consumers). When I take broker1 back, the consumers will not be rebalanced
to have 10 consumers from server A1 to listen on queue on broker1 or 2, and
10 consumers from server A2 to listen on queue on another broker. 

If you encounter such issue and have a solution for it, could you please
kindly give me some suggestions?

Thank you very much!

Changsu Jiang



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/How-to-balance-consumers-for-the-queues-in-network-of-brokers-tp4675964.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to