HP Serviceguard Contributed Toolkit Suite Version A.04.02.02 on Linux User Guide (December, 2012)

Local configuration
Tomcat data and configuration files are present on the local disk on all the nodes is enabled for
the Tomcat toolkit package. The data and configuration files must be identical across all the nodes
configured for the Tomcat toolkit package in the cluster and it must be available on the same
location. If you make any change to the database, you must replicate the same change to all the
nodes.
Shared configuration
In a shared configuration, the configuration and data files are placed all on the shared storage.
The same Tomcat data and configuration file are shared between the cluster nodes, so you need
not maintain identical copies on each node. In a cluster environment, each Tomcat database server
instance must have unique IP addresses. When the package is created, one or more relocatable
IP addresses are created for each Tomcat database server. When the Tomcat database server
package switches over from one node to another, this instance is stopped, IP addresses are removed
from the primary node, IP addresses are reallocated to a standby node, and the instance is started
on that node. Clients are automatically connected or manually reconnected through these IP
addresses to the identical Tomcat database server on the standby node.
Multiple Tomcat Instances Configuration
Tomcat servlet engine is a multi-instance application, so, more than one instance of the Tomcat
can run on a single node at the same time. For example, if two nodes each are running an instance
of Tomcat and one of the nodes fail, then Tomcat instance on the failed node is failed over to the
other node. In addition, the healthy node continues to run its own instance as well. You can
configure multiple Tomcat instances either as a local configuration or shared configuration, or a
combination of both.
Using Tomcat toolkit
After installing the Tomcat toolkit, you can use this toolkit to:
Configure packages in an SG/LX environment
Manage packages
Configuring Tomcat toolkit packages
You can configure Tomcat toolkit packages using either legacy or modular style of packaging.
Configuring legacy Tomcat toolkit packages
To configure legacy Tomcat toolkit packages:
1. Create a directory for the package on all the cluster nodes using the following command:
# mkdir $SGCONF/pkg/Tomcat
2. Copy the toolkit files from $SGROOT/tomcattoolkit to the package directory, $SGCONF/
pkg/Tomcat.
3. cd to the package directory.
4. Create the package configuration and control templates using the cmmakepkg command:
Configuration template: # cmmakepkg -p tomcat_pkg.conf
Control template: # cmmakepkg -s tomcat_pkg.cntl
5. Edit the following attributes manually in the package configuration file. Table 25 (page 56)
lists all the attributes that you can edit manually in the package configuration file.
Using Tomcat toolkit 55