Predefined VovResources:: Procedures
This section describes the predefined procedures that can be used to characterize the taskers in your farm in a time-variant fashion. To use these procedures, you have to use them as resources for a tasker.
An example of using VovResources:: in taskers.tcl:
vtk_tasker_define linux102 -resources "VovResources::Offhours -evening 20 -morning 7"
The standard procedures are defined in $VOVDIR/etc/tasker_scripts/taskerRes.tcl. You are encouraged to study these procedures and to implement your own procedures in $VOVDIR/local/taskerRes.tcl.
Procedure | Arguments | Description |
---|---|---|
Custom | args
|
Just returns $args |
Standard | args
|
Just returns @STD@ $args |
FsCheck | args
|
This procedure checks the disk space on some filesystems. It is
based on the procedure vtk_fs_stat . It supports two
options:
Example:
|
Workstation | minIdle maxTime args
|
This is the old and now obsolete syntax for this policy. Please
see below for the updated syntax. This procedure checks the time
from the last interaction with the mouse or the keyboard. If it is
less than minIdle , we assume that the workstation
is not idle and we suspend the tasker. If the
workstation is idle, we allow jobs with expected duration less than
maxTime . Arguments minIdle and
maxTime are
time
specifications. |
Workstation | [options] |
Options are:
|
Night | args |
Return the standard resources during the night and suspend the tasker during the day. During the night, the tasker progressively reduces the maximum length of the jobs it accepts. |
Offhours | args |
Return the standard resources during off hours (night and
weekends) and suspend the tasker during the rest
of the time. During off-hours, the tasker
progressively reduces the maximum length of the jobs it accepts.
Supports the following options:
|