Good evening,

Stupid question for you and need some clarification.

In Apache Artemis, is a cluster with 2 brokers that have a shared store setup 
in a primary/backup configuration considered a symmetrical cluster?  The 
documentation is a little vague:

https://activemq.apache.org/components/artemis/documentation/latest/clusters.html#symmetric-cluster

“With a symmetric cluster every node in the cluster is connected to every other 
node in the cluster. In other words every node in the cluster is no more than 
one hop away from every other node.”

Then this example: 
https://github.com/apache/activemq-artemis-examples/tree/main/examples/features/clustered/symmetric-cluster

says this: “To set up ActiveMQ Artemis to form a symmetric cluster we simply 
need to mark each broker as clustered and we need to define a 
cluster-connection in broker.xml”.

For example, on my first broker the only changes I made to broker.xml just 
below <core> and <persistence-enabled> was:

…
   <core…>
      <name>node-0</name>

      <connectors>
         <connector name="node-0">tcp://artemis-broker-1:61616</connector>
         <connector name="node-1">tcp://artemis-broker-2:61616</connector>
      </connectors>

      <cluster-connections>
         <cluster-connection name="my-cluster">
            <connector-ref>node-0</connector-ref>
            <static-connectors>
               <connector-ref>node-1</connector-ref>
            </static-connectors>
         </cluster-connection>
      </cluster-connections>

      <ha-policy>
         <shared-store>
            <primary>
               <failover-on-shutdown>true</failover-on-shutdown>
            </primary>
         </shared-store>
      </ha-policy>

      <persistence-enabled>true</persistence-enabled>
…

On my second broker I had:

…
   <core …>

      <name>node-1</name>

      <connectors>
         <connector name="node-0">tcp://artemis-broker-1:61616</connector>
         <connector name="node-1">tcp://artemis-broker-2:61616</connector>
      </connectors>

      <cluster-connections>
         <cluster-connection name="my-cluster">
            <connector-ref>node-1</connector-ref>
            <static-connectors>
               <connector-ref>node-0</connector-ref>
            </static-connectors>
         </cluster-connection>
      </cluster-connections>

      <ha-policy>
         <shared-store>
            <backup>
               <failover-on-shutdown>true</failover-on-shutdown>
               <allow-failback>true</allow-failback>
            </backup>
         </shared-store>
      </ha-policy>

      <persistence-enabled>true</persistence-enabled>
…

Would this be considered a symmetrical cluster?

Regards,

William Crowell



This e-mail may contain information that is privileged or confidential. If you 
are not the intended recipient, please delete the e-mail and any attachments 
and notify us immediately.

Reply via email to