|
||||||||||||||||||
19.4 Trigger Types19.4.1 Mail TriggersWhen the mail option is used for the AType parameter, Moab will send mail (configurable using the MAILPROGRAM) to the primary administrator. When AType=mail, the Action parameter contains the message body of the email. This can be configured to include certain variables. The following example sends an email to the primary administrator containing the name of the trigger's object, and the time: When this trigger launches, it will send an email with the variables (that begin with a $) filled in. Possible variables that can be inserted into the Action parameter include the following:
These mail triggers can be configured to launch for node failures, reservation creation or release, scheduler failures, and even job events. In this way, site administrators can keep track of scheduler events through email. 19.4.2 Internal TriggersTriggers can be used to modify object internals using the following format: action="<OBJECT_TYPE>:<OBJECT_ID>:<ACTION>:<CONTEXT_DATA> Several different actions are valid depending on what type of object the internal trigger is acting upon. The following table shows some of the different available actions:
Examples — Modifying scheduler internals 19.4.3 Threshold TriggersThreshold triggers allow sites to configure triggers to launch based on internal scheduler statistics, such as the percentage of available nodes, the backlog of a particular QoS, or the xfactor of a particular group. For example, a site may need to guarantee a particular account a certain level of service on the cluster. Should the specified account have a backlog of over one hour, the administrators would like to receive an email, or create a reservation, or perhaps contact a hosting utility to allocate more nodes. All of this can be done using threshold triggers. The following sample configuration file contains a few examples: 19.4.4 Exec TriggersExec triggers will launch an external program or script when their dependencies are fulfilled. The following example will submit job.cmd and then execute monitor.pl three minutes after the job is started. See Also
|
||||||||||||||||||
| © 2001-2008 Cluster Resources, Incorporated | ||||||||||||||||||