Hitachi

uCosminexus Application Server Operation, Monitoring, and Linkage Guide


18.5.1 Procedure for setting up the mutual node switching system

This subsection describes the example system configuration and the procedure for specifying the system settings.

Organization of this subsection

(1) System configuration example

The following figure shows the configuration example for the mutual node switching system. Note that the subsequent points describe the system configuration example using this configuration example.

Figure 18‒7: Configuration example of mutual node switching system (In UNIX)

[Figure]

In this example, two types of Application Servers (assumed to be Application Server 1 and Application Server 2) are used. The executing node (active node 1) and standby node (spare node 2) of Application Server 1 and the executing node (active node 2) and standby node (spare node 1) of Application Server 2 are deployed in the 1-to-1 ratio. Each Application Server deploys a Management Server having a separate management domain, and the Management Server is started on both the machines.

In the mutual node switching system, two virtual hosts are defined in one management domain, and are configured as the host of the active node Application Server and the host of the spare node Application Server respectively. In this example, the combination is as follows:

The virtual host controls the starting and stopping of Application Server using one Administration Agent, but the IP addresses allocated for operations are different, and therefore, the virtual hosts are defined as apparently different hosts.

Note that in order to deploy Application Server in a cluster configuration, specify the alias IP address and specify settings in such a way so that the running node inherits the alias IP address, and the client does not realize the nodes in the cluster. For the mutual node switching system, the alias IP address is the address that is dynamically allocated by the HA monitor. For the IP address to be used for Application Server operations, you use the alias IP address, and for sending requests from the Management Server to the Administration Agent, you use the IP address that does not move to other nodes due to node switching (stationary IP address).

(2) Procedure of system setup

For linking the system with the HA monitor, you must specify the settings of the Management Server and HA monitor files. The following figure shows the procedure for setting up a mutual node switching system:

Figure 18‒8: Procedure for setting up the mutual node switching system (in UNIX)

[Figure]

Stages 1. to 9. of the figure are explained below:

  1. When using the global transaction, create a partition in the shared disk, and build the file system.

    To use the global transaction, create the location to store the transaction information.

  2. When using the global transaction, allocate a shared disk to the system.

    For allocating a shared disk to the system, specify the same directory to mount the shared disk in the active node 1 and spare node 1, active node 2 and spare node 2.

  3. Set up the cluster server environment in the Management Server.

    In the Easy Setup definition file of the Smart Composer functionality for the Management Server, specify the settings for using the HA monitor. For details, see 18.5.2 Environment settings in the cluster server.

  4. Edit the setup file.

    Specify the settings for various definition files of Administration Agent, Management Server, and Cosminexus HTTP Server that you cannot set up in the Easy Setup definition file. For details, see 18.5.3 Editing the setup file.

  5. Set up the HA monitor environment.

    Define the HA monitor environment in the sysdef file of the HA monitor. For details, see 18.5.4 HA monitor environment settings.

  6. Create the shell script file.

    Create the shell script file to monitor the Administration Agent and to start and stop the logical servers. For details, see 18.5.5 Creating the shell script file.

  7. Set up a server-compliant environment.

    Define the environment for the active node server and spare node server to be run with the node using the servers file of the HA monitor. For details, see 18.5.6 Server-compliant environment settings.

  8. Set up the LAN status.

    In the LAN status setup file of the HA monitor, specify settings such as the IP address of the LAN adapter to define the switching of LAN in the HA monitor. For details, see 18.5.7 LAN status setup.

  9. Set up Application Server using Management Server and HA monitor commands.

    Use Management Server and HA monitor commands to deploy Application Server in the cluster configuration, and to set up the J2EE applications and resource adapters. For details, see 18.5.8 Setting Application Server.