git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to build a 3 nodes symmetric colocated cluster


I'm trying to build a 3 nodes symmetric colocated cluster (with 2 backups per
node)
in addition, I'm using static connectors

when using the UI i can see that:

node1 has 2 backups (node2+3)

node2 has 1 backup (node1)

node3 has no backups

I'm using 2.6.0, broker.xml:

   <ha-policy>
        <replication>
              <colocated>
                    <backup-port-offset>100</backup-port-offset>
                    <excludes>
                        <connector-ref>node60</connector-ref>
                        <connector-ref>node61</connector-ref>
                    </excludes>
                    <request-backup>true</request-backup>
                    <max-backups>2</max-backups>
                    <backup-request-retries>-1</backup-request-retries>
                   
<backup-request-retry-interval>5000</backup-request-retry-interval>
                    <master/>
                    <slave/>
              </colocated>
        </replication>
  </ha-policy>


what am i doing wrong?

in addition, when i shutting down node1 the outcome is:
node2 holds (node2 + node1-which became active)
node3 holds itself - no backups

so now we don't have a backup for node3 !

when starting up node1 again the outcome is:
node1 holds itself - no backups
node2 has 1 backup (node1)
node3 holds itself - no backups

so now we don't have a backup for both node1 and node3 !

10x



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html