You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Geurt Schimmel <GS...@schubergphilis.com> on 2013/03/22 11:28:35 UTC
Failover issues
Hi,
We have 2 network-of-brokers with a failover-configuration, but we're having performance-problems and loosing messages. Clients connect to HostA1 and HostA2. All brokers run 5.8 stable, only persistent messages using KahaDB:
<persistenceAdapter>
<kahaDB directory="${activemq.base}/data/kahadb" enableJournalDiskSyncs="false" indexWriteBatchSize="10000" indexCacheSize="1000"/>
</persistenceAdapter>
HostA1:
uri="static:(ssl://HostA2:61616)" duplex="true"
uri="static:(failover:(ssl://HostB1:61616,HostB2:61616)?randomize=false&priorityBackup=true)" conduitSubscriptions="false" decreaseNetworkConsumerPriority="true" duplex="true" networkTTL="10" prefetchSize="4000" staticBridge="true" suppressDuplicateQueueSubscriptions="true"
HostA2:
uri="static:(failover:(ssl://HostB2:61616,ssl://HostB1:61616)?randomize=false&priorityBackup=true)" conduitSubscriptions="false" decreaseNetworkConsumerPriority="true" duplex="true" networkTTL="10" prefetchSize="4000" staticBridge="true" suppressDuplicateQueueSubscriptions="true"
HostB1:
uri="static:(ssl://HostB2:61616)" duplex="true"
HostB1 and HostB2:
uri="ssl://0.0.0.0:61616?jms.prefetchPolicy.queuePrefetch=4000&jms.optimizeAcknowledge=true" updateClusterClients="true" rebalanceClusterClients="true" updateClusterClientsOnRemove="true"/>
Note the host-order in the URI is mirrored.
When the brokers on HostA2 and HostB2 are down, performance is amazing (> 1000 msg/sec), and all messages are received by HostB1.
Please advise - I'm lost.
Geurt