Reputation: 32056
In ActiveMQ /A-MQ 5.11, I want to build a broker topology of:
complete graph (each master connected to all other masters)
Documentation says each broker should connect to other master/slave groups using masterSlave
URI:
<networkConnectors> <networkConnector uri="masterslave:(tcp://masterHost:61002,tcp://slaveHost:61002)"/> </networkConnectors>
..so for this topology,
..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>
Is this configuration correct?
Upvotes: 4
Views: 1173
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