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:
  • -r Resource to specify a resource of the tasker; it may be repeated
  • -fs NAME Directory to specify the name of a filesystem resource and a directory in that filesystem; it may be repeated
Example:
VovResources::FsCheck -fs SCRATCH /export/scratch -r @STD@ 
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:
  • -resources "list" -- Specify the list of resources.
  • -minidle time -- Specify minimum time the tasker has to be idle (no keyboard or mouse activity) for the tasker to become active.
  • -maxtime time -- Specify max expected duration of jobs sent to tasker.
  • -suspend -- By default, when the tasker becomes inactive, the current jobs are completed and no new jobs are accepted. With this option the current jobs are suspended.
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:
-owner user
To specify a user that has overriding control on this tasker (the user would use vovtaskerowner). You also need to specify the -host option.
-host host
Required if you use -owner. Specify the name of the host to suspend the jobs when the tasker is suspended.
-susp
To suspend the jobs when the tasker is suspended.
-evening hour
The hour (0-23) at which the tasker starts accepting jobs. The default is 19.
-morning hour
The hour (0-23) at which the tasker stops accepting jobs. The default is 6.