Connect a Single Tasker
You can start a tasker at any time. Try the following commands and check the effect on the tasker monitor.
vovtasker
usage: vovtasker [-A startupLogFile] [-a name] [-b capabilities] [-B]
[-c coefficient] [-C cpus] [-d] [-D integer]
[-e reserveExpr] [-E] [-f tclfile] [-F <file>]
[-g taskergroup] [-G group] [-h host]
[-H HEALTHCHECKFLAGS] [-i 0|1] [-I tclfile] [-j]
[-k d|n|v] [-l rootOfDailyLogFile] [-L <loadSensor>]
[-m <integer>] [-M max_load] [-n <integer>] [-N] [-o local
resources] [-p project] [-P <double>] [-r resources]
[-R resources] [-s] [-S resources] [-t timeout]
[-T capacity[/max_capacity]] [-U updateInterval]
[-v number] [-V ncName@ncHost[:port]] [-w WX properties]
[-z <timeSpec>] [-Z <timeSpec>]
-A: The name of startup log file
-a: Name this tasker. The name may contain only letters, numbers,
dash(-) and underscore(_), or the expressions @HOST@ and @PID@
that get expanded on the fly
-b: Comma-separated list of capabilities, case insensitive:
symbolic: FULL NC LM
normal : PROCINFO NETINFO EXEC RT
short : P N X R
-B: Show BPS tasker objects. Default to not show.
-c: Tasker coefficient (positive, default 1.0)
-C: Number of CPU's in this machine (automatic on win64). Use 0 to
specify default value.
-d: Activate debugging
-D: Min disk space in MB in /tmp and /usr/tmp (default 5)
-e: Reserve tasker from the beginning: format of reserveExpr is
either the old 'GroupName/UserName/Duration' or the new list of
'keyword value' pairs where the keywords are USER GROUP
JOBCLASS JOBPROJ BUCKET ID DUR TRANSIENT. -e "JOBCLASS c1 DUR
1d TRANSIENT 1" will reserve the tasker for JOBCLASS c1 for 1
day. When the tasker disconnects,the reservation will be
removed as well
-E: Use vovfire to execute jobs: valid for direct taskers only.
Disables cacheing of environments
-f: Source the given Tcl file
-F: ncTasker config file.
-g: Set the taskergroup for this tasker
-G: Specify Fairshare Group used by an indirect tasker. Use with -V.
-h: Host (default is env. var. VOV_HOST_NAME)
-H: Select health checks you want:
P / p Enable/Disable portmap check
D / d Enable/Disable disk space check
W / w Enable/Disable writability for /tmp and /usr/tmp
U / u Enable/Disable user script check
($VOVDIR/local/slave/health_user_script.csh)
Example: -H pDWu
-i: Make the tasker transient (-i 1) or persistent (-i 0). If a
tasker is transient (the default), it is destroyed when the
client disconnects. Persistent taskers must be 'indirect'
taskers (see -I flag).
-I: Indirect execution mode. The argument indicates the file that
describes the procedures to start and stop jobs indirectly. See
the Reference Manual for more info. If the argument is just a
dash '-' the option is ignored.
-j: Disable job statistics (useful on machines with lots of CPUS)
-k: Specify autokill mode (d=direct, n=ncstop, v=vovstop). Default
'd'
-l: Specify root of daily log file. The actual logs will be of the
form FFFF_YYYY.MM.DD.log. Also closes stdin.
-L: Specify a SGE-like Load Sensor
-m: Maximum number of jobs allowed to run on tasker.
-M: Maximum allowed load on the tasker host. The default value for
max_load is CAPACITY+0.5. Use 0 or less than 0 to specify
default value. Use N or CAPACITY[-+*/]N to make adjustments
from the default. Examples: -M 12.0, -M CAPACITY+2, -M
CAPACITY*2
-n: Run in nice mode with lower CPU priority
-N: Normal tasker. Same as -r @STD@
-o: Local resources (vovwxd internal)
-p: Project (default is env. var. VOV_PROJECT_NAME)
-P: Specify raw power of tasker, instead of computing it
automatically.
-r: Resources for this tasker. This can be either a list of
resources or a Tcl expression that calls a procedure in the
VovResources:: namespace. To simplify scripting, it is also
possible to encode the resource string with base64 and pass the
encoded string XXXX with -r base64:XXXX (i.e. no need to quote
spaces in argument to -r option)
-R: Resources appended to the jobs by the agent. Use only with -V
-s: (OBSOLETE) Silent mode. Also closes stdin.
-S: Resource filter on what NC taskers to attach to the agent. Use
only with -V
-t: Try multiple times to connect to server. Give up only after
'timeout' seconds.
-T: Specify capacity and optionally the max-capacity of the tasker.
The capacity is the maximum number of jobs that can be run by
tasker. The max_capacity is the maximum slots a tasker can be
expanded to have when jobs are suspended. The default value for
capacity is equal to the number of CORES present. The default
value for max_capacity is 2*CAPACITY. Use -1 or 'auto' to
specify the default. Use N, N/N, CORES[-+*/]N, CORES[-+*/]N/N,
N/CORES[-+*/]N, CORES[-+*/]N/CORES[-+*/]N to make adjustments
from the default. Examples: -T 4, -T 4/8, -T AUTO/1000, -T
CORES-2, -T CORES*0.8, -T CORES+0/20, -T CORES+2/CORES*2
-U: Update interval for resources, in seconds (default 60)
-v: Set verbose level (0-4): default 1.
-V: NetworkComputer indirect tasker
-w: Reserved for system use
-z: After being idle for given time, tasker exits.
-Z: After specified lifetime, tasker does not accept new jobs and
exits after completing active jobs.
Examples
% vovtasker -h -- Get the usage message.
% vovtasker -N & -- Start a normal tasker.
% vovtasker -r @STD@ & -- Same as vovtasker -N.
% vovtasker -r foo & -- Only resource "foo" is offered.
% vovtasker -r "foo @STD@" & -- Resource "foo" is offered
in addition to all the default resources.
% vovtasker -M 20 & -- Add a tasker with a huge MAX-LOAD of 20.