Topology 1: zRule Execution Server for z/OS group with a shared console

This topology consists of a server group that contains multiple instances. The topology also contains a shared Rule Execution Server console. Each component runs in a separate address space. A DB2® database is used as a persistence layer that stores rule applications and data.

Reasons to choose this topology

  • To call rules from batch, IMS™, or CICS® applications in a zRule Execution Server for z/OS® that runs in the same LPAR.
  • If a server error occurs, for rules execution failover to another zRule Execution Server for z/OS in the group.
  • To support batch jobs and IMS jobs that call rule applications (CICS applications can run against the zRule Execution Server for z/OS instead of using a CICS JVM server).

Architecture

The following example shows a group of three servers with a single console. A group can contain a maximum of 32 servers. The servers connect to the same database and console.

Configuration with multiple servers that share a console.

If a server in the group becomes inactive, rule execution transfers to the next available server in the group. The inactive server remains a member of the server group. When the inactive server restarts, rule execution transfers back to it. These transfers of rule execution processing do not require any action by z/OS or z/OS applications.

A zRule Execution Server for z/OS instance on a CICS JVM server consists of a server group that contains a single server. In this situation, if the server becomes inactive, rule execution transfer to another server is not possible.

The preceding example contains all instances on one LPAR. It is also possible to have zRule Execution Server for z/OS instances on multiple LPARs, sharing the DB2 database and the Rule Execution Server console on a separate LPAR. See the following example.

Configuration with multiple LPARs that shares the DB2 database.
The DB2 database runs on a separate LPAR to handle zRule Execution Server for z/OS instances that are spread across multiple LPARs.
Restriction: The Rule Execution Server console must have TCP/IP access to the zRule Execution Server for z/OS instances.

Process

The following processes occur when z/OS applications run rules in a server group:
  1. Batch jobs and IMS applications use the HBRCONN API to connect to the servers specified in the list. CICS applications use the HBRC transaction to connect to the servers specified in the list. All servers in the group must be capable of executing rules, all servers in the server list must be running, and the connection method must return a completion code of HBR_CC_OK (0).
  2. z/OS applications use a single HBRRULE API call to run each ruleset.
  3. When the rulesets are completed, each z/OS application uses an HBRDISC API call to disconnect from its Rule Execution Server. The HBRA-CONN-SSID field in the HBR-CONN-AREA data area returns the subsystem ID of the server that completed the execution of the ruleset. If the rulesets do not run to completion, the field is set to blanks.