Hitachi

JP1 Version 11 JP1/Automatic Job Management System 3 Configuration Guide


17.2.6 Registering the JP1/AJS3 service in the cluster software

This subsection describes the information to be set in the cluster software and how to operate services.

Organization of this subsection

(1) For JP1/AJS3 - Manager and JP1/AJS3 - Agent

Register the JP1/AJS3 service for the logical host in the cluster software that will be used. For details about how to register the service, see the documentation for the cluster software.

Note the following when registering the service:

The following table describes the information that needs to be registered in the cluster software.

Table 17‒4: JP1/AJS3 information that needs to be registered in the cluster software

Function to be registered

Explanation

Start

Starts JP1/AJS3.

Command used

jajs_start.cluster

Example

jajs_start.cluster logical-host-name

or

jajs_start.cluster logical-host-name -HA

Time the start command ends

The start command ends when JP1/AJS3 starts. However, if for some reason the startup processing is not completed within the timeout period (default: 60 seconds), the command ends midway. When the command ends, the startup processing is not canceled and still continues.

Determining the result of the start command

Use the operation monitoring function described below to determine the result of JP1/AJS3 startup.

For details about the jajs_start.cluster command, see jajs_start.cluster (UNIX only) in 3. Commands Used for Normal Operations in the manual JP1/Automatic Job Management System 3 Command Reference.

For details about the -HA option, see jajs_spmd in 3. Commands Used for Normal Operations in the manual JP1/Automatic Job Management System 3 Command Reference.

Stop

Stops JP1/AJS3.

Command used

jajs_stop.cluster

Example

jajs_stop.cluster logical-host-name

Time the stop command ends

The stop command ends when JP1/AJS3 stops. However, if for some reason the stop processing is not completed within the timeout period (default: 60 seconds), the command ends midway. When the command ends, the stop processing is not canceled and still continues.

Determining the result of the stop command

Use the operation monitoring function described below to determine the result of stopping JP1/AJS3.

For details about the jajs_stop.cluster command, see jajs_stop.cluster (UNIX only) in 3. Commands Used for Normal Operations in the manual JP1/Automatic Job Management System 3 Command Reference.

Operation monitoring

Monitors whether JP1/AJS3 is operating normally.

Do not register this function if a failover is not required when a failure occurs in JP1/AJS3.

Command used

jajs_spmd_status

Example

jajs_spmd_status -h logical-host-name

Determining the operation monitoring result

The following describes the return values:

Return value = 0 (normal)

JP1/AJS3 is operating normally.

Return value = 1 (error)

An irrecoverable error has occurred. Assume that an error has occurred.

Return value = 4 (partial stop)

Some JP1/AJS3 processes have stopped for some reason. Assume that an error has occurred.

Return value = 8 (all stop)

All JP1/AJS3 processes have stopped for some reason. Assume that an error has occurred.

Return value = 12 (status confirmation error)

An error has occurred in the status confirmation processing of the jajs_spmd_status command. Retry checking of the operating status for the predefined number of times.

For details about the jajs_spmd_status command, see jajs_spmd_status in 3. Commands Used for Normal Operations in the manual JP1/Automatic Job Management System 3 Command Reference.

Forcible stop

Forcibly stops JP1/AJS3 and releases the resource being used.

Command used

jajs_killall.cluster

Example

jajs_killall.cluster logical-host-name

Executing the jajs_killall.cluster command forcibly stops processes without performing any termination processing for JP1/AJS3. Execute this command only when a problem occurs (for example, processing does not stop when the stop command is executed).

For details about the jajs_killall.cluster command, see jajs_killall.cluster (UNIX only) in 3. Commands Used for Normal Operations in the manual JP1/Automatic Job Management System 3 Command Reference and 10.4.1 Script for forcibly stopping JP1/AJS3 (jajs_killall.cluster) in the JP1/Automatic Job Management System 3 Administration Guide.

Setting the environment setting parameters

When the following environment setting parameter is set, the JP1/AJS3 services are stopped so that the cluster software can detect the error whenever the embedded database service is stopped due to an irrecoverable error.

Environment setting parameter

Explanation

"RDBCHECKINTERVAL"=

Checks the connection with the embedded database service, and automatically stops the scheduler service whenever disconnection is detected.

For details about these environment parameters, see 20.4 Setting up the scheduler service environment.

For details about how to set up a scheduler service environment, see 14.2 Environment setting parameter settings and 17.2.5 Changing the common definition information.

(2) For JP1/AJS3 - Web Console

Register JP1/AJS3 - Web Console services in the cluster software to be used. For details about the procedure for registration, see the documentation for the cluster software to be used. Note the following when registering the services:

The following table describes the information on JP1/AJS3 - Web Console required to register the JP1/AJS3 - Web Console service in the cluster software.

Table 17‒5: Information on JP1/AJS3 - Web Console required to register the JP1/AJS3 - Web Console service in the cluster software

Function to be registered

Explanation

Start

Starts JP1/AJS3 - Web Console.

Command used

/etc/opt/jp1ajs3web/jajs_web

ojajsweb

JP1/AJS3 - Web Console starts after the shared disk and logical IP address become available.

For details about the jajs_web command, see jajs_web (Linux only) in 3. Commands Used for Normal Operations in the manual JP1/Automatic Job Management System 3 Command Reference.

Stop

Stops JP1/AJS3 - Web Console.

Command used

/etc/opt/jp1ajs3web/jajs_web_stop

JP1/AJS3 - Web Console stops after the shared disk and logical IP address become unavailable.

For details about the jajs_web_stop command, see jajs_web_stop (Linux only) in 3. Commands Used for Normal Operations in the manual JP1/Automatic Job Management System 3 Command Reference.

Operation monitoring

Uses the ps command to check whether processes exist and to determine whether JP1/AJS3 - Web Console has terminated abnormally.

Example of using the ps command:

ps -ef | grep "monitoring-target-process" | grep -v "grep"

Monitoring-target processes are as follows:

  • JP1/AJS3 HTTP Server service

    /opt/jp1ajs3web/uCPSB/httpsd/sbin/httpsd

  • JP1/AJS3 Web Application Server service

    /opt/jp1ajs3web/uCPSB/CC/server/bin/cjstartsv ajs3web

Forcible stop

Same as the stop function