Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-12

Shared-store master-slave does not work as documented

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • A-MQ 7.0.0.ER4
    • None
    • None

      I'm trying to work out how to set up a simple shared-store master-slave set-up, of the kind that is very widely used in A-MQ 6. According to the documentation here:

      https://access.redhat.com/documentation/en/red-hat-jboss-a-mq/7.0/using-a-mq-broker/using-a-mq-broker#a_shared_store_journal

      it seems that we need to add the following configurations to the master and slave respectively:

      <ha-policy>
        <shared-store>
           <master/>
        </shared-store>
      </ha-policy>
      
      <ha-policy>
        <shared-store>
           <slave/>
        </shared-store>
      </ha-policy>
      

      but this really does not work at all. The "slave" broker comes up as a slave, but it never becomes master even if the master starts and stops. It just waits forever and does nothing.

      On the other hand, the following configuration does work (on both master and slave)

          <ha-policy>
               <shared-store>
                  <colocated>
                     <backup-request-retries>-1</backup-request-retries>
                     <backup-request-retry-interval>2000</backup-request-retry-interval>
                     <max-backups>1</max-backups>
                     <request-backup>true</request-backup>
                     <master>
                        <failover-on-shutdown>true</failover-on-shutdown>
                     </master>
                     <slave>
                        <failover-on-shutdown>true</failover-on-shutdown>
                     </slave>
                  </colocated>
               </shared-store>
            </ha-policy>
      

      But "colocated" seems to be the wrong kind of configuration for a master-slave set-up where the brokers are on different hosts and communicate via a shared store. Nothing is actually located with anything else, so far as I can see.

      I don't know if the problem here is in Artemis or in the documentation.

              rh-ee-ataylor Andy Taylor
              rhn-support-kboone Kevin Boone
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: