Sysplex optimized workload routing overview
In CICS® TS for z/OS®, Version 4.1 and later, workload throughput is improved through a more efficient workload management optimization function. This function is most effective for distributed workloads, for which the routing and target regions are managed by different CMASs. With new CPSM WUI views, you can monitor the distribution of dynamic workloads through your CICSplex.
Sysplex optimized workload routing is enabled at the z/OS coupling facility level by a region status (RS) server.
When a target region is running in optimized mode, the target region maintains the task count using the CICS transaction manager. The count includes all tasks in the CICS region, not just those that are dynamically routed. The load value for the CICS region, with its basic health status, is periodically broadcast to the coupling facility, where it is available for interrogation by other CICS regions and CMASs and by other CICS address spaces. If region status data is available, CICSPlex SM uses the data when it makes its dynamic routing decision.
For sysplex optimized workloads, routing regions review the same status data in the coupling facility for a potential target region regardless of which CMAS manages it. As a result, the routing region is using status data that might be updated many times a second to evaluate a target region, rather than status data that might be up to 15 seconds old. The refresh interval can vary from 2 seconds down to 1 millisecond. As the scale of this value is reduced, the usage effect on the coupling facility increases. Choose a value that provides a balance between workload throughput and the effect on the coupling facility. The default refresh value is 200 milliseconds. In an environment in which all routing targets are in a similar health and connectivity state, the spread of work across the workload target scope is more evenly balanced than in nonoptimized mode.
If the coupling facility is not available, workload routing is managed by CICSPlex SM Workload Manager using z/OS data spaces owned by a CMAS to share cross-region load and status data.
Benefits of sysplex optimized workload routing
A sysplex optimized workload is a workload that is best suited to workloads contained in a single sysplex. For a workload that runs in a CICSplex that spans more than one sysplex, the benefits of optimized routing are reduced because region status data stored in the z/OS coupling facility is not shared across sysplexes.
Sysplex optimized workload routing is beneficial in the following scenarios:
- When a workload consists of routers and targets managed by different CMASs and the bulk of the dynamic traffic flows through the DSRTPGM exit. For example, if you use MQ triggers to feed transactional data into CICSplexes, where the trigger regions tend to be managed by different CMASs to the processing regions. In these instances, the benefit of running workloads in optimized state is that no workload batching occurs, and the overall workload runs through faster. Fewer, if any, routed transactions are waiting in the queue of a CICS region already at its MAXTASKS limit.
- When the topology of a CICSplex is such that regions in a workload can be managed by the same CMAS, and nondynamic throughput is a high proportion of the workload.
Impact of sysplex optimized workload routing on the coupling facility
Caching mechanisms are built into the coupling facility (CF) to reduce the number of I/O operations. CICS region status data is broadcast to the CF by target regions, and the data is subsequently read back by the routing regions when a route decision is being made. If CICS status data is broadcast at every change instance, and read back on every occasion that a route decision is made, the impact to the coupling facility might be considerable.
- READRS controls how long region status data is cached by a routing region before requesting a refresh.
- UPDATERS controls how often the CF is updated with task throughput data.