SURVIVOR: Scheduler | |||||||
The Survivor Scheduler is a multi-threaded process that schedules and executes Checks and Alerts. All state is maintained on the file system, not in memory, to permit other processes to easily access it and to prevent data loss if the scheduler unexpectedly exits. The scheduler is designed to be started at system boot time. The scheduler runs one Instance. Under ordinary circumstances, this should be all that is required. However, if multiple Instances are required, multiple schedulers can be run on the same host, provided they are configured correctly. The Check scheduler runs once per minute and determines which Checks on which hosts have not been run in accordance with the configuration files. Any Check to be run is queued until it can be processed by one of the Check worker threads. The Check worker threads execute the Checks and record the results in the state directory. The Alert scheduler runs once per minute and determines which Checks have generated errors that have not been transmitted in accordance with the configuration files. Any Alert to be transmitted is queued until it can be processed by one of the Alert worker threads. The Alert worker threads execute the Alerts and record the results in the state directory. The Alert scheduler waits for a period of time before commencing operation in order to give the Check scheduler a chance to update the state. State information is maintained for current hosts and services only, and is automatically pruned by the scheduler. History information is maintained for all hosts and services, even those removed from the configuration, and is never pruned by the scheduler. (History can be pruned by the Command Interface). Sending the scheduler a SIGHUP will tell it to reread its configuration files at the next appropriate moment. Note that this appropriate moment requires the completion of all outstanding Checks (among other things). SIGINT, SIGQUIT, or SIGTERM will tell the scheduler to exit. Dependencies
The scheduler is installed in $INSTDIR/sbin/ss. The modules it expects to run are installed under $INSTDIR/mod. An Instance configuration must be created. It is recommended that the default location of /etc/survivor/instance.cf be used to prevent complications with other utilities, such as the Web Interface. See the instructions for building and installing for details on how to set up the configuration, state, and history files required by the scheduler.
$Date: 2006/11/19 16:53:14 $ $Revision: 0.12 $ |
keywords |