Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2165

Not having backup available after restart in colocated configuration

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: Broker
    • Labels:
      None

      Description

      We use colocated HA-policy and trying to achieve the following:

      1. We have 2 servers and want each one of them will hold a) 1 master b) 1 slave for the master of each other
      2. When we start the servers we have the above as we wanted
      3. When one of the server is going down, the slave on the second becomes a live master - till now everything is ok
      4. When the second server (which was down in step 3) is up, the slave from server 1 remains a live master and a slave for master 1 is not created in server 2.

      All we want is : how the system should be configured, so after the step 4 we will have the exact topology as after the step 1.

      1. Start server 1 and server 2: server 1 has 1 master and 1 slave, server 2 has one master and one slave
      2. Restart server 2: server 1 has one master and one slave, server 2 has one master and one slave

       

       

       

      This issue was asked multiple times in stackoverflow, but was never answered.

      When using a co-located HA policy, the backups, maintained by some node are not restored after this node is restarted (not on this node and not on any other).

      https://stackoverflow.com/questions/52839706/artemis-2-6-0-colocated-ha-issues

      https://stackoverflow.com/questions/52000662/artemis-colocated-ha-policy

      Our configuration was as the following:

         <ha-policy>
              <replication>
                    <colocated>
                          <backup-port-offset>100</backup-port-offset>
                          <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>

      Thanks

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dmitrysm2000 Dmitry Smeliansky
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: