-
1. Re: Load balancing in brokers network
garytully Sep 6, 2010 6:01 AM (in response to andii)For a network connector, the prefetch is configured using the prefetchSize attribute of the network connector, it defaults to 1000.
<networkConnector prefetchSize="1" ...>
I wonder if both network connectors are 'up' when the messages are produced. If you have JMX enabled, can you validate the network connector on node2 is active? Consumers on a queue have round robin dispatch by default which should evenly distribute the load, so you should see an even distribution of messages across both consumers through the network bridges provided they are active.
-
2. Re: Load balancing in brokers network
andii Sep 6, 2010 8:04 AM (in response to garytully)Hi,
Thanks for your answer.
Jmx is enabled for all brokers and all connections are active when producer generating messages.
Thanks
Andrzej
-
3. Re: Load balancing in brokers network
andii Sep 6, 2010 10:01 AM (in response to andii)I found the solution. All messages was processed only by one broker because networkTTL parameter in networkConnection element is by default set to 1. When it was changed to value 3 then part of messages was processed by node2 and others by node3.
-
4. Re: Load balancing in brokers network
davsclaus Sep 6, 2010 10:56 AM (in response to andii)Check out Rob's last 2 webinars on ActiveMQ which is posted at fusesource. He explains network topology and the TTL option (which may have a bad name as its really network hobs).