raffian
raffian

Reputation: 32056

ActiveMQ 5.11 network of brokers and master/slave group config

In ActiveMQ /A-MQ 5.11, I want to build a broker topology of:

<networkConnectors>
<networkConnector
   uri="masterslave:(tcp://masterHost:61002,tcp://slaveHost:61002)"/>    
</networkConnectors>

..so for this topology,

enter image description here

..the networkConnectors for master/slave pairs in Las Vegas (NY omitted for brevity) should be:

vegas-A1,A2...connected to B,C,D master/slave groups

<networkConnectors>
  <networkConnector name="groupBLink" uri="masterslave:(tcp://vegas-B1:61001,tcp://vegas-B2:61001)"/>
  <networkConnector name="groupCLink" uri="masterslave:(tcp://ny-C1:61001,tcp://ny-C2:61001)"/>
  <networkConnector name="groupDLink" uri="masterslave:(tcp://ny-D1:61001,tcp://ny-D2:61001)"/>           
</networkConnectors>

vegas-B1,B2...connected to A,C,D master/slave groups

<networkConnectors>
  <networkConnector name="groupALink" uri="masterslave:(tcp://vegas-A1:61001,tcp://vegas-A2:61001)"/>
  <networkConnector name="groupCLink" uri="masterslave:(tcp://ny-C1:61001,tcp://ny-C2:61001)"/>
  <networkConnector name="groupDLink" uri="masterslave:(tcp://ny-D1:61001,tcp://ny-D2:61001)"/>           
</networkConnectors>

Question

Is this configuration correct?

Upvotes: 4

Views: 1173

Answers (1)

raffian
raffian

Reputation: 32056

In case anyone is wondering, the above configuration was tested and confirmed to work for full graph/mesh networks in ActiveMQ.

Upvotes: 1

Related Questions