Hi,

I'm trying to build a 2 cluster with colocated backups and replication (not
shared store). In my particular case I need to use static definitions
rather than UDP or JGroups. These are vagrant instances not real. We are
dealing with persistent messages and are attempting to minimise the risk of
message loss.

I have two questions:
1) Do I need to explicitly add the connectors for the co-located JVMs to
the list of connectors? if so, should they also be added to the
cluster-connections/static_connectors section as well?
2) ha-policy/replication/colocated/excludes - am I excluding the right
things here? I've followed the 'scale-down' example but I'm not sure this
is right in this case and the documentation around excludes is somewhat
confusing.

If there's any other advice / recommendations people have regarding a setup
like this, please feel free.

Thanks in advance,

Brett

Node-1:
      <acceptors>
         <acceptor name="invm-acceptor">vm://0</acceptor>
         <acceptor name="netty-acceptor">tcp://
0.0.0.0:61616?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576
</acceptor>
      </acceptors>

      <connectors>
         <connector name="invm-connector">vm://0</connector>
         <connector name="node-1-connector">tcp://172.28.128.3:61616
</connector>
         <connector name="node-2-connector">tcp://172.28.128.4:61616
</connector>
      </connectors>
      <cluster-connections>
         <cluster-connection name="vagrant">
            <address>jms</address>
            <connector-ref>node-1-connector</connector-ref>
            <static-connectors>
               <connector-ref>node-1-connector</connector-ref>
               <connector-ref>node-2-connector</connector-ref>
            </static-connectors>
         </cluster-connection>
      </cluster-connections>
      <ha-policy>
         <replication>
            <colocated>
               <max-backups>1</max-backups>
               <request-backup>true</request-backup>

 <backup-request-retry-interval>1000</backup-request-retry-interval>
               <excludes>
                  <connector-ref>invm-connector</connector-ref>
                  <connector-ref>node-1-connector</connector-ref>
                  <!-- <connector-ref>node-2-connector</connector-ref> -->
               </excludes>
               <master>
                 <check-for-live-server>true</check-for-live-server>
               </master>
               <slave>
                 <allow-failback>true</allow-failback>
               </slave>
            </colocated>
         </replication>
      </ha-policy>

Node 2:
      <acceptors>
         <acceptor name="invm-acceptor">vm://0</acceptor>
         <acceptor name="netty-acceptor">tcp://
0.0.0.0:61616?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576
</acceptor>
      </acceptors>

      <cluster-user>cluster</cluster-user>
      <cluster-password>cluster</cluster-password>

      <connectors>
         <connector name="invm-connector">vm://0</connector>
         <connector name="node-1-connector">tcp://172.28.128.3:61616
</connector>
         <connector name="node-2-connector">tcp://172.28.128.4:61616
</connector>
      </connectors>
      <cluster-connections>
         <cluster-connection name="vagrant">
            <address>jms</address>
            <connector-ref>node-2-connector</connector-ref>
            <static-connectors>
               <connector-ref>node-1-connector</connector-ref>
               <connector-ref>node-2-connector</connector-ref>
            </static-connectors>
         </cluster-connection>
      </cluster-connections>
      <ha-policy>
         <replication>
            <colocated>
               <max-backups>1</max-backups>
               <request-backup>true</request-backup>

 <backup-request-retry-interval>1000</backup-request-retry-interval>
               <excludes>
                  <connector-ref>invm-connector</connector-ref>
                  <!-- <connector-ref>node-1-connector</connector-ref> -->
                  <connector-ref>node-2-connector</connector-ref>
               </excludes>
               <master>
                 <check-for-live-server>true</check-for-live-server>
               </master>
               <slave>
                 <allow-failback>true</allow-failback>
               </slave>
            </colocated>
         </replication>
      </ha-policy>



-- 
Kind regards,

Brett Delle Grazie

Reply via email to