activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danaR <>
Subject ActiveMQ master/slave with load balancing problems
Date Thu, 31 Oct 2013 06:08:46 GMT
We are using ActiveMQ 5.8.0 and In order to achieve both high availability
and load balancing, we tried to set up a configuration with a Host pair with
master/slave pairs (JDBC master/slave), as stated   here on fuse-source
We have a one-directional network connector on each broker, that points
towards the other master/slave pair of brokers like this:
    <networkConnector name="link-to-b"
After having some problems (losing messages or receiving duplicates when one
of the brokers fails), we found this post so now we also
have in the configuration, on the queues this policyEntry
<policyEntry queue=">" producerFlowControl="true" memoryLimit="200mb"
enableAudit="false" >
    <conditionalNetworkBridgeFilterFactory replayWhenNoConsumers="true" />
and this transport connector
  <transportConnector name="openwire" uri="tcp://"
auditNetworkProducers="true" />
However, the problem still persists. Sometimes we receive duplicates and
sometimes messages are lost when we force a failover (we stop one broker
during a test). Our tests are very basic, one machine sends messages to a
queue while another machine consumes them from the same queue. The producers
and consumers connect to the broker cluster using the failover transport
where all 4 broker instances are specified.
For more information, here are links to our full configurations.
(the brokers are named like in the fuse-source link example)

A1: <>  
B2: <>  
A2: <>  
B1: <>  
Can anyone help with this? How can we configure activeMQ to have both high
availability and load balancing?

Thank you.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message