ShaoLin Microsystems  
The Enterprise Linux Solutions Expert
Corporate Products Services Support Partners
Download  Contact Us
 

A.4. AAC configuration information

AAC (Application Availability Control) provides application or specific service monitoring by the Cluster Manager. Administrators can write customer scripts to monitor a custom application. The configuration file of an AAC rule is located in /etc/shaolin-ha/AAC/X. Where X is the AAC identification number (e.g. 0,1,2...). The configuration file format is as the following.

*NAME

The description of the service to be appeared under Cluster Manager (e.g. "My Apache").

*START=[command]

The command to start the application (e.g. /etc/init.d/httpd start)

*STOP=[command]

The command to stop the application (e.g. /etc/init.d/httpd stop)

*STATUS=[command]

The command to check the status of the application (e.g. /etc/init.d/httpd status) If a report of failure (return non zero value) by the status command, AAC will attempt to restart the application. If the application is failed to restart, it will cause the system to failover.

RESTART=[command]

The command to restart the application (e.g. /etc/init.d/httpd restart). If this command is not given, the STOP and START command will be used instead.

KEEP_ALIVE=N

The keep alive cycle to call the STATUS command in N milli seconds.

DIE_TIMEOUT

The timeout value to use to determine whether this application is unrecoverable. Notice, this value is important for recover large applications which may take a long time to restart.

SMAMODULE=[sma mdoule name]

The SMA module to load for this application.

DISABLE=[yes|no]

To disable this channel. It is useful for temporary disable a channel, but the configuration will still be keep, and can be re-enabled afterward.