2.3. Preparation

Before you can write the action scripts, you must do the following:

2.3.1. Is Monitoring Necessary?

In the following situations, you may not need to perform application monitoring:

2.3.2. Types of Monitoring

There are two types of monitoring that may be accomplished in a monitor script:

You can define multiple levels of monitoring within the monitor script, and the administrator can choose the desired level by configuring the resource definition in the cluster configuration database. Ensure that the monitoring level chosen does not affect system performance. For more information, see the Linux FailSafe Administrator's Guide.

2.3.3. What are the Symptoms of Monitoring Failure?

Possible symptoms of failure include the following:

2.3.4. How Often Should Monitoring Occur?

You must determine the monitoring interval and time-out values for the monitor script. The time-out must be long enough to guarantee that occasional anomalies do not cause false failovers. It will be useful for you to determine the peak load that resource may need to sustain.

You must also determine if the monitor test should execute multiple times so that an application is not declared dead after a single failure. In general, testing more than once before declaring failure is a good idea.

2.3.5. Examples of Testing for Monitoring Failure

The test should be simple and should complete quickly, whether it succeeds or fails. Some examples of tests are as follows: