title: ActiveMQ, Network of Brokers, idle consumers
body: <p>We're running ActiveMQ 5.6.0. We have 3 brokers operating in a static network in our test environment.  Here's the current scenario. We have 6 consumers randomly connecting to the 3 brokers. One broker has 3 consumers, the second has 2, the 3rd has 1. When we pile on message to the queue, we're seeing that messages are backlogging on the 3rd broker with 1 consumer, the other two brokers aren't given any of the backlog and the remaining 5 consumers are idle. </p>
  
  <p>Below you'll find our configuration for all one of our brokers (dev.queue01), the other 2 are similar with the proper changes for the static hostnames.   </p>
  
  <p>I would expect that messages would be automatically distributed to the other brokers for consumption by the idle consumers. Please tell me if I've missed something in my description of the problem.  Thanks in advance for any guidance. </p>
  
  <p>http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
    <a href="http://activemq.apache.org/schema/core" rel="nofollow">http://activemq.apache.org/schema/core</a> http://activemq.apache.org/schema/core/activemq-core.xsd"></p>
  
  <pre><code>&lt;bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
      &lt;property name="locations"&gt;
          &lt;value&gt;file:${activemq.conf}/credentials.properties&lt;/value&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;broker xmlns="http://activemq.apache.org/schema/core" brokerName="prd.queue01" dataDirectory="${activemq.data}"&gt;
  
      &lt;destinationPolicy&gt;
          &lt;policyMap&gt;
            &lt;policyEntries&gt;
              &lt;policyEntry topic="&gt;" producerFlowControl="false" memoryLimit="1mb"&gt; 
                &lt;pendingSubscriberPolicy&gt;
                  &lt;vmCursor /&gt;
                &lt;/pendingSubscriberPolicy&gt;
              &lt;/policyEntry&gt;
              &lt;policyEntry queue="&gt;" producerFlowControl="false" memoryLimit="64mb" optimizedDispatch="true" enableAudit="false" prioritizedMessages="true"&gt; 
                &lt;networkBridgeFilterFactory&gt;
                  &lt;conditionalNetworkBridgeFilterFactory replayWhenNoConsumers="true" /&gt;
                &lt;/networkBridgeFilterFactory&gt;
              &lt;/policyEntry&gt;
            &lt;/policyEntries&gt;
          &lt;/policyMap&gt;
      &lt;/destinationPolicy&gt;
  
      &lt;managementContext&gt;
          &lt;managementContext createConnector="true"/&gt;
      &lt;/managementContext&gt;
  
      &lt;persistenceAdapter&gt;
          &lt;amqPersistenceAdapter directory="${activemq.data}/data/amqdb"/&gt;
      &lt;/persistenceAdapter&gt;
  
        &lt;systemUsage&gt;
          &lt;systemUsage&gt;
              &lt;memoryUsage&gt;
                  &lt;memoryUsage limit="256 mb"/&gt;
              &lt;/memoryUsage&gt;
              &lt;storeUsage&gt;
                  &lt;storeUsage limit="750 gb"/&gt;
              &lt;/storeUsage&gt;
              &lt;tempUsage&gt;
                  &lt;tempUsage limit="750 gb"/&gt;
              &lt;/tempUsage&gt;
          &lt;/systemUsage&gt;
      &lt;/systemUsage&gt;
      &lt;transportConnectors&gt;
          &lt;transportConnector name="openwire" uri="tcp://0.0.0.0:61616" updateClusterClients="true" updateClusterClientsOnRemove="true" rebalanceClusterClients="true"/&gt;
      &lt;/transportConnectors&gt;
  
      &lt;networkConnectors&gt;
        &lt;networkConnector uri="static:(tcp://dev.queue02:61616,tcp://dev.queue03:61616)" name="queues_only" conduitSubscriptions="false" decreaseNetworkConsumerPriority="false" networkTTL="4"&gt;
        &lt;dynamicallyIncludedDestinations&gt;
          &lt;queue physicalName="&gt;"/&gt; 
        &lt;/dynamicallyIncludedDestinations&gt;
        &lt;excludedDestinations&gt;
          &lt;topic physicalName="&gt;"/&gt; 
        &lt;/excludedDestinations&gt;
      &lt;/networkConnector&gt;
  &lt;/networkConnectors&gt;
  
  
  &lt;/broker&gt;
  &lt;import resource="jetty.xml"/&gt;
  </code></pre>
  
  <p></p>