Using Tomcat Toolkit in a HP Serviceguard Cluster README Revision: B.06.00
directory that contains its own server configuration file
(server.xml). The Tomcat server default server root directory is
"/opt/hpws22/tomcat".However, if you want to have multiple instances
running in a cluster, you need to set a value for this variable.
JAVA_HOME (For example: JAVA_HOME=/opt/java1.5
This is the base directory of Java Development kit. This software is
a pre-requisite for running Tomcat
MAINTENANCE_FLAG ( For example: MAINTENANCE_FLAG="yes")
This variable will enable or disable maintenance mode for the Tomcat
package. By default this is set to "yes". In order to disable this
feature MAINTENANCE_FLAG should be set to "no". When Tomcat needs to
be maintained the file "<package directory>/tomcat.debug" needs to be
touched. During this maintenance period tomcat process monitoring is
paused. Even if the tomcat instance is brought down the package will
not be failed over to the adoptive node. To continue monitoring and
turn off maintenance mode, you should remove the
"tomcat.debug" file. It is the user's responsibility to ensure that
the tomcat instance is running properly after the maintenance phase.
NOTE: Setting MAINTENANCE_FLAG to "yes" and touching the tomcat.debug
file in the package directory will put the package in toolkit
maintenance mode. Serviceguard A.11.19 release has a new feature
which allows individual components of the package to be
maintained while the package is still up. This feature is
called Package Maintenance mode and is available only for
modular packages. For more information using Package Maintenance
mode, refer the whitepaper "Modular package support in
Serviceguard for Linux and ECM Toolkits" located at
http://docs.hp.com/en/ha.html
MONITOR_PORT (For example: MONITOR_PORT=8081
This is the tomcat server listening port. This should be same as the
port configured in the Tomcat configuration file
$CATALINA_BASE/conf/server.xml. The toolkit checks the existence of
the Tomcat process by periodically checking whether this port is
listening. If multiple instances of tomcat are configured, this port
needs be unique for each instance. The default value is 8081.
MONITOR_INTERVAL (For example: MONITOR_INTERVAL=5)
Specify a time interval in seconds for monitoring the Tomcat instance.
The monitor process checks the Tomcat daemons at this interval to
validate they are running. The default value will be 5 seconds.