Recovering page sets
Use this topic to understand the factors involved when recovering pages sets, and how to minimize restart times.
A key factor in recovery strategy concerns the time for which we can tolerate a queue manager outage. The total outage time might include the time taken to recover a page set from a backup, or to restart the queue manager after an abnormal termination. Factors affecting restart time include how frequently you back up your page sets, and how much data is written to the log between checkpoints.
To minimize the restart time after an abnormal termination, keep units of work short so that, at most, two active logs are used when the system restarts. For example, if we are designing an IBM MQ application, avoid placing an MQGET call that has a long wait interval between the first in-syncpoint MQI call and the commit point because this might result in a unit of work that has a long duration. Another common cause of long units of work is batch intervals of more than 5 minutes for the channel initiator.
We can use the DISPLAY THREAD command to display the RBA of units of work and to help resolve the old ones.
How often must you back up a page set?
Frequent page set backup is essential if a reasonably short recovery time is required. This applies even when a page set is very small or there is a small amount of activity on queues in that page set.
If we use persistent messages in a page set, the backup frequency should be in hours rather than days. This is also the case for page set zero.
To calculate an approximate backup frequency, start by determining the target total recovery time. This consists of the following:- The time taken to react to the problem.
- The time taken to restore the page set backup copy.
If we use SnapShot backup/restore, the time taken to perform this task is a few seconds. For information about SnapShot, see the DFSMSdss Storage Administration Guide.
- The time the queue manager requires to restart, including the additional time needed to recover
the page set.
This depends most significantly on the amount of log data that must be read from active and archive logs since that page set was last backed up. All such log data must be read, in addition to that directly associated with the damaged page set.
Note: When using fuzzy backup (where a snapshot is taken of the logs and page sets while a unit of work is active), it might be necessary to read up to three additional checkpoints, and this might result in the need to read one or more additional logs.
When deciding on how long to allow for the recovery of the page set, the factors that we need to consider are:
- The rate at which data is written to the active logs during normal processing depends on how
messages arrive in the system, in addition to the message rate.
Messages received or sent over a channel result in more data logging than messages generated and retrieved locally.
- The rate at which data can be read from the archive and active logs.
When reading the logs, the achievable data rate depends on the devices used and the total load on your particular DASD subsystem.
With most tape units, it is possible to achieve higher data rates for archived logs with a large block size. However, if an archive log is required for recovery, all the data on the active logs must be read also.
Parent topic: Plan for backup and recovery