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

backup server in live mode doesn't switch to backup mode after master turn on

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • A-MQ 7.0.0.ER18
    • A-MQ 7.0.0.ER17
    • None
    • None
    • Hide
      1. downalod amq7 broker
      2. create master and slave instance of brokers on two different machines
      3. configure cluster and ha policy on brokers (broker.xml of both is in attachment you only need replace with your ip addresses)
      4. run master (live) and slave (backup) brokers
      5. create durable queue on master broker
      6. send messages to this queue
      7. turn of master broker
      8. slave (backup) broker is now live and has replicated queue with messages
      9. turn on master broker
      10. check if master broker is live and slave is backup
      Show
      downalod amq7 broker create master and slave instance of brokers on two different machines configure cluster and ha policy on brokers (broker.xml of both is in attachment you only need replace with your ip addresses) run master (live) and slave (backup) brokers create durable queue on master broker send messages to this queue turn of master broker slave (backup) broker is now live and has replicated queue with messages turn on master broker check if master broker is live and slave is backup

      Brokers are in replication mode, master as live, slave as backup. On master is created durable queue with some messages, after master broker kill, slave broker is now live and queue with messages is replicated on slave. After master broker turn on, master brokers is live without backup and slave brokers is still live.

      In attachment is reproducer in ansible.
      Ansible doc: http://docs.ansible.com/ansible/intro_getting_started.html

      To run this reproducer
      install ansible on your machine (management machine)
      install maven on your machine
      make two virtual rhel machines and ssh-copy-id of this machines
      unzip live-backup-reproducer.zip
      modify hosts file in live-bakcup-reproducer, replace <ip-aadr-

      {master,slave}

      > with ip of your virtual machines
      run: ansible-playbook live-backup-reproducer/jamq7-ha-redundancy.yml
      to clean brokers from virtual machines fun ansible-playbook live-backup-reproducer/jamq7-clean.yml

        1. broker-master.xml
          6 kB
        2. broker-slave.xml
          6 kB
        3. live-backup-reproducer.zip
          148 kB

            rhn-support-jbertram Justin Bertram
            dkornel@redhat.com David Kornel
            David Kornel David Kornel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: