How can I set, that a resource (started task) starts only 5 times after a task failure and then stays down (state current and desired = down).
I don't want a restart (after 5 retries) because it then fills the job queue elements of JES2.
We supply the following example rule in OPS.STATEMAN.RULES(SSMRETRY) SSMRETRY is defined as follows:
This request rule would normally be invoked by SSM in the UP_DOWN or DOWN_UP action processing as an EVRULE to limit retry attempts within a time period
The SSMRETRY rule only needs to be enabled, you need not to change it.
You just need to set some parameters as detailed below.
The DATE2SEC subroutine must be in either the same rule set as this rule.
It is parametrised and "operated" by a line, that needs to be inserted in your "down" and "UP" actions of your individual ressources.
EVRULE("SSMRETRY &SSMTABLE &NAME,5,120,START UP");...
To make it work, you will need to insert three more columns in your ressource table:
RESACT_COUNT INTEGER DEFAULT 0 RESACT_TIME TIMESTAMP(20) RESACT_DESC CHAR(18) UPPER CASE address SQL ALTER TABLE tbl ADD COLUMN col...
is the command, that inserts the required columns.
These instructions are part of the comment block in the SSMRETRY routine.