Configuring applications for resiliency
Client applications that use the HBRRULE API to call the zRule Execution Server for z/OS® wait indefinitely for the server to respond. This may not be ideal in failure scenarios, so you can set the HBRTIMEOUT parameter so that the client does not wait for a server that will never respond.
About this task
The HBRTIMEOUT runtime variable specifies the number of seconds to wait for a response. If the zRule Execution Server for z/OS takes longer than the HBRTIMEOUT value to respond to the client, then the client receives a completion code of 8 and a reason code of 3034 (HBR_RC_RULE_TIMEOUT).
The client application can attempt the rule execution again on a backup zRule Execution Server for z/OS, specified on the HBRSSIDLIST, by issuing the HBRRULE API call again with the same HBRA-CONN-AREA. The zRule Execution Server for z/OS which timed out is ignored for this and all future HBRRULE calls until a HBRDISC and HBRCONN are issued.
If all of the zRule Execution Server for z/OS in the HBRSSIDLIST have either timed out or are unavailable, then the client application receives a completion code of 8 and a reason code of 3022 (HBR_RC_NO_SERVER_AVAILABLE). The client application must issue the HBRDISC and HBRCONN API calls to attempt further rule executions on the servers in the HBRSSIDLIST.
Procedure
- Locate the HBRTIMEOUT property value. For batch, see the ++HBRWORKDS++.SHBRPARM(HBRBATCH) member. For CICS, see the ++HBRWORKDS++.SHBRPARM(HBRCICSZ) member.
- Specify the number of seconds to wait for a response from the zRule Execution Server for z/OS stand alone, where 0 means no timeout and 1 to 60000 expresses the number of seconds to wait for rule execution to complete.