Cluster Resource Services consists of a set of multi-threaded jobs. When clustering is active on an iSeries,(TM) the jobs will be run in the QSYSWRK subsystem. The jobs run using the QDFTSVR job description. All Cluster Resource Services jobs automatically provide a joblog to aid in problem determination. For these jobs, the LOG parameter of the job description is overridden. An exit program job may or may not produce a joblog. To provide a joblog, change the LOG parameter of the job description to a level that will produce a joblog.
When using clustering, the multithreaded job action (QMLTTHDACN) system value must be set to either 1 or 2. See Display System Value (DSPSYSVAL) command for more information.
Most cluster resource group APIs result in a separate job being submitted using the user profile specified when the cluster resource group was created. The exit program defined in the cluster resource group is executed in the submitted job. The job is submitted to the job queue defined in the job description specified in the user profile for the cluster resource group. By default, the jobs are submitted to the QBATCH JOBQ. In general, this job queue is used for production batch jobs and will delay or prevent completion of the exit programs. In order to allow the APIs to run effectively, create a separate user profile, job description, and job queue for use by cluster resource groups. Specify the new user profile for all cluster resource groups created. The same program is executed on all nodes within the recovery domain defined for the cluster resource group using the distributed activity group support provided by Cluster Resource Services.
One or more batch jobs are also submitted for a device cluster resource group if devices must be varied off or on. Varying a device off or on can occur as a result of a failover event or because the Initiate Switchover API was called. In the case of the Initiate Switchover (QcstInitiateSwitchOver) API, the batch job runs under the same user profile as the one that called the API. During a failover event this job runs under the QSYS user profile. To determine the subsystem this job runs under look at the job description associated with the QSYS user profile.
To reactivate a cluster resource group job with a cluster version of 4 or less required clustering to be ended and restarted on the node. Cluster version 5 allows a cluster user to activate the cluster resource group job through the Change Cluster Recovery (CHGCLURCY) command with ACTION(*STRCRGJOB) provided clustering is still active on the node. A CRG job can now be reactivated without ending and starting the cluster on the node.
Most Cluster Resource Services APIs have an asynchronous behavior. In general, whenever a user program calls a Cluster Resource Services API, the API will:
If the node originating a request fails, the request will not be handled on any nodes in the cluster.
Top | Cluster APIs | APIs by category |