JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Cluster Data Service for Apache Tomcat Guide     Oracle Solaris Cluster 4.0
search filter icon
search icon

Document Information

Preface

1.  Installing and Configuring Oracle Solaris Cluster HA for Apache Tomcat

Installing and Configuring Oracle Solaris Cluster HA for Apache Tomcat

Oracle Solaris Cluster HA for Apache Tomcat

Planning the Oracle Solaris Cluster HA for Apache Tomcat Installation and Configuration

Apache Tomcat and Solaris Zones

About Horizontal Scalability

Oracle Solaris Cluster HA for Apache Tomcat as a scalable configuration

Oracle Solaris Cluster HA for Apache Tomcat as a multiple master configuration

Configuration Restrictions

Restriction to deploy Oracle Solaris Cluster HA for Apache Tomcat in a scalable configuration

Restriction for the Load_balancing_policy

Restriction for Scalable Services and Solaris Zones

Restriction for the Apache Tomcat smf Service Name in a Failover Zone

Restriction for Apache Tomcat 5.5.28, 6.0.28, 6.0.29, and 7.06

Configuration Requirements

Location of the Tomcat Home Directory for Scalable or Multiple Masters Configurations

Load Balancing for Multiple Master Configurations

Location of the Tomcat Home Directory for Failover Configurations

Location of the wget Command for Apache Tomcat 5.5.28, 6.0.28, 6.0.29, and 7.06

Apache Tomcat Component Dependencies

HA for Apache Tomcat Configuration and Registration Files

Installing and Configuring Apache Tomcat

How to Enable Apache Tomcat to run in a Global Zone Configuration

How to Install and Configure Apache Tomcat in the Global Zone

How to Enable Apache Tomcat to run in Failover Zone Configuration

How to Install and Configure Apache Tomcat in a Failover Zone

Verifying the Installation and Configuration of Apache Tomcat

How to Verify the Installation and Configuration of Apache Tomcat

How to Deploy the Apache Tomcat Application

Installing the HA for Apache Tomcat Package

How to Install the HA for Apache Tomcat Package

Registering and Configuring Oracle Solaris Cluster HA for Apache Tomcat

How to Register and Configure Oracle Solaris Cluster HA for Apache Tomcat as a Failover Data Service

How to Register and Configure Oracle Solaris Cluster HA for Apache Tomcat as a Multiple Masters Data Service

How to Register and Configure Oracle Solaris Cluster HA for Apache Tomcat as a Scalable Data Service

Configuring Oracle Solaris Cluster HA for Apache Tomcat in a Failover Zone

Configuring Oracle Solaris Cluster HA for Apache Tomcat in a Failover Zone

How to Register Oracle Solaris Cluster HA for Apache Tomcat in a Failover Zone

How to Modify Parameters in the Oracle Solaris Cluster HA for Apache Tomcat Manifest

How to Remove an Oracle Solaris Cluster HA for Apache Tomcat Resource From a Failover Zone

Verifying the Oracle Solaris Cluster HA for Apache Tomcat Installation and Configuration

How to Verify the Oracle Solaris Cluster HA for Apache Tomcat Installation and Configuration

Understanding the Oracle Solaris Cluster Apache Tomcat HA Parameter File

Structure of the Apache Tomcat HA parameter file

Strategy to Choose the TestCmd and the ReturnString Variable

Understanding Oracle Solaris Cluster HA for Apache Tomcat Fault Monitor

Resource Properties

Probing Algorithm and Functionality

Debugging HA for Apache Tomcat

How to Activate Debugging for HA for Apache Tomcat

A.  Deployment Example: Installing Apache Tomcat in the Global Zone

B.  Deployment Example: Installing Apache Tomcat in a Failover Zone

Index

Understanding the Oracle Solaris Cluster Apache Tomcat HA Parameter File

Use this information to understand the contents of the Oracle Solaris Cluster Apache Tomcat HA parameter file. This section describes the structure and the content of the Oracle Solaris Cluster Apache Tomcat HA parameter file, as well as the strategy to choose some of its variables.

Structure of the Apache Tomcat HA parameter file

Apache Tomcat HA uses a parameter file to pass parameters to the start, stop, and probe command. This parameter file needs to be a valid Korn shell script which sets several variables. The structure of this file appears in Table 1-7. For examples of the parameter file refer to Registering and Configuring Oracle Solaris Cluster HA for Apache Tomcat.

Table 1-7 Structure of the Apache Tomcat HA Parameter File

Variable
Explanation
EnvScript
This is a ksh script or a csh script, depending on the login-shell of the user name that owns Apache Tomcat. The purpose of this script is to set the Apache Tomcat specific environment variables, which are needed to start and stop the Apache Tomcat instance.
User
The owner of the Apache Tomcat instance.
Basepath
Basepath is the absolute pathname to the directory where the Tomcat bin directory resides. Typically, it is CATALINA_HOME for 5.x or 6.x.
Host
The Host variable is the Host to test the functionality of the Apache Tomcat server process. The Test is done via a connection to Host:Port.
Port
A Port where Apache Tomcat is serving. This Port is used together with the Host to test the functionality of the Apache Tomcat server process.
TestCmd
This variable represents the command that is passed to the Apache Tomcat server process to test its sanity.
ReturnString
The variable ReturnString represents the string that must be present in the answer to the TestCmd. It cannot be Connection refused because this string is in the answer when the Apache Tomcat server process is not running.
Startwait
This variable represents the number of seconds to wait after the Apache Tomcat start command is completed. It lasts until the Apache Tomcat server process is fully operational. The absolute number of seconds depends on the speed and the load of the hardware. A good strategy is to start with 10-20 seconds.
TestUrl
This variable presents a complete http or https URL, which is passed to the wget command to test the Tomcat server's sanity.
WgetPath
This variable presents the absolute path to the wget binary, if the wget binary is not located under /usr/sfw/bin/wget.

The parameters in Table 1-7 can be changed at any time. The only difference is when changes take effect.

The following parameters of the Apache Tomcat HA parameter file are used for starting and stopping Apache Tomcat. Changes to these parameters take effect at every restart or disabling and enabling of an Apache Tomcat resource.

The following parameters of the Apache Tomcat HA parameter file are used within the fault monitor. Changes to these parameters take effect at every Thorough_probe_interval.

Strategy to Choose the TestCmd and the ReturnString Variable

The following alternatives are available to choose the ReturnString variable:

You can evaluate the different pages by connecting using a browser with hostname:port and specifying the different pages.