IBM MQ 9.3 Multi-Instance Queue Manager Switchover Test with amqsphac Support Article

This document describes how to use the IBM MQ high availability sample amqsphac to test the switchover of a multi-instance queue manager.


IBM MQ 9.3 Multi-Instance Queue Manager Switchover Test with amqsphac Support Article - cover page
Brand
IBM
Category
Other software
Document type
Application Note
Language
English
Pages
9
File format
PDF
File size
153 KB
Published
03 December, 2023
Updated
03 December, 2023
MD5 checksum
B53685DA578284365CA21FAE01AA00A8

About this manual

This IBM MQ support article describes how to verify that an MQ client application reconnects automatically when a multi-instance queue manager is switched over from an active instance to a standby instance. The setup uses the MQSERVER environment variable with a connectionNameList that lists the active host first and the standby host second, plus the high availability sample amqsphac, which puts messages into a queue and uses Automatic Client Reconnection.

The scenario uses four Linux hosts: Host1 runs the active instance, Host2 runs the standby, Host3 holds the queue manager data and recovery logs, and Host4 runs the MQ client sample. The article shows the commands used to start the instances, check their status with dspmq, run amqsphac, end the queue manager with a switchover, and observe the reconnection events until the sample continues putting messages on the new active instance.

What's inside

  • Objective
  • Related article
  • Overall approach
  • Configuration
  • Starting the Active instance on Host1
  • Starting the Standby instance on Host2
  • Setting MQSERVER and running amqsphac on Host4
  • Ending the queue manager with switchover
  • Automatic client reconnection events
  • Standby becoming the new Active

Frequently asked questions

What is the amqsphac sample used for?

It is a high availability sample supplied with IBM MQ that uses Automatic Client Reconnection to put a message into a queue.

Does the amqsputc sample use Automatic Client Reconnection?

No. The article notes that amqsputc does not use Automatic Client Reconnection.

Why does the order of hosts in MQSERVER matter?

The MQ client library code attempts the reconnection or new connection strictly in the order of the list, starting with the first host and moving to the next if it is unavailable.

Which command ends the active queue manager and allows a switchover?

Running endmqm -is QMMI1 on Host1 ends the queue manager and permits switchover to the standby instance.

Download PDF (153 KB)

More IBM Manuals


View all IBM manuals →