activemq-artemis

ActiveMQ Artemis HA 3-node configuration


I am creating an ActiveMQ Artemis HA configuration with 1 primary and 2 backups. However, only one backup is working. Two backups is not showing or activated. How I can trouble-shoot this or it is possible or not? I am using the shared storage.

I was trying to setup 2 backups and a primary server so that the 2 backups are active at a time. Is this possible or not? I am using the shared storage.


Solution

  • The details are somewhat unclear, but I believe what you're seeing is expected. A primary will only pair with one backup. Any other potential backup will remain in a kind of limbo state until the primary fails and the backup activates at which point the additional backup will pair with the now-active backup. See the documentation which states:

    Each primary server can be paired with one backup server. Other backups can be configured, but the primary will only pair with one. When the primary fails the backup will take over. At this point if there are other backups configured then the backup that took over will pair with one of those.

    Generally speaking I do not recommend using multiple backups as it doesn't provide any significant benefit over having just one backup.