Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
WMSX | ||||||||
Line: 8 to 8 | ||||||||
Provider | ||||||||
Changed: | ||||||||
< < | is the background process which does the actual work. There can be only one provider runnung on a machine per user. Start with | |||||||
> > | Provider is the background process which does the actual work. There can be only one provider running on a machine per user. Start with: | |||||||
Changed: | ||||||||
< < | ./wmsx-provider -v /tmp/myworkdir | |||||||
> > | wmsx-provider.sh -v /tmp/myworkdir | |||||||
where: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Requestor | ||||||||
Changed: | ||||||||
< < | is an application to submit commands to the system for execution. Start with: | |||||||
> > | Requestor is an application to submit commands to the Provider system for execution. Start with: | |||||||
Changed: | ||||||||
< < | ./wmsx-requestor -option | |||||||
> > | wmsx-requestor.sh -option | |||||||
A complete list of options is available with -h. Some options are: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Changed: | ||||||||
< < | JDL Files | |||||||
> > | The possible job submission procedures ars described in the next sections. | |||||||
Changed: | ||||||||
< < | Can be sumbitted and managed through the framework. A sample usage is: | |||||||
> > | Traditional Submission of Single Jobs with Traditional JDL FilesSingle jobs may be submitted and managed via the framework, by using traditional JDL files. A sample usage is: | |||||||
Changed: | ||||||||
< < | ./wmsx-requestor -j example.jdl -o /tmp/StdOut -r /tmp/resultDir | |||||||
> > | wmsx-requestor.sh -j example.jdl -o /tmp/StdOut -r /tmp/resultDir | |||||||
Where the options are: | ||||||||
Changed: | ||||||||
< < | ||||||||
> > |
| |||||||
Changed: | ||||||||
< < | ArgList Files | |||||||
> > | Automated Mass Submission of Jobs via ArgList Files | |||||||
Changed: | ||||||||
< < | Can specify multiple jobs to create one "larger" jpb. | |||||||
> > | By using ArgList files, one can submit many independent jobs and handle their outputs in a simple and efficient way. | |||||||
Changed: | ||||||||
< < | ArgList Format: | |||||||
> > | The ArgList file can contain lines of the following format: | |||||||
Added: | ||||||||
> > | ||||||||
COMMAND parameters | ||||||||
Added: | ||||||||
> > | ||||||||
Changed: | ||||||||
< < | ./wmsx-requestor options:
Custom JDL files.for Each command, there may be a file command.jdl, with custom JDL contents. sup ported are:
Pre/PostExecmust be calles COMMAND_preexec and COMMAND_postexec. MUST be executable. Will be run directly before submission and after job output is retrieved. Preexec is called with the name of the command and its full directory as first argument, and with all the given args as following arguments. Postexec is called with the name of the command and its full directory as first argument, , the name of the output directory as second argument, and with all the given args as following arguments. The output of your job will always be in a file "out.tar.gz" in the output directory. If postexec return with 0 nothing further happens. If postexec returns with 1, COMMAND_chain is called. | |||||||
> > | where COMMAND refers to a job name, and parameters are the command
line arguments of the executable of your job. | |||||||
Changed: | ||||||||
< < | Chaining | |||||||
> > | To submit the jobs, use: | |||||||
Changed: | ||||||||
< < | The _chain command's output is interpreted just as a line from the args file. It can therefore be used to start further jobs. | |||||||
> > |
nmaxjobs (optional).
The word COMMAND refers to a WMSX JDL file (not a traditional JDL file),
named COMMAND.jdl , which describes your job. If the COMMAND.jdl
is not present, default job specifications are assumed.
WMSX JDL files.For eachCOMMAND in the ArgList file, there may be a JDL file
COMMAND.jdl , to customize the properties of your job.
The structure of a WMSX JDL file is similar to traditional JDL files,
however the supported variables are only:
"COMMAND.tar.gz" . (Must be of tar-gz format!)
"." means that they are not wrapped
in a directory. If not specified, defaults to "COMMAND" .
"COMMAND" .
"out" .
"AFS" checks for AFS presence. E.g.:
Software = {"AFS", "g++"}; . If not set, defaults to empty.
COMMAND.tar.gz etc.).
In the followings, things are more easily explained if the notion of
AbsCOMMAND is introduced:
this is simply the full path to the file COMMAND.jdl file (or if not
present, to the the COMMAND.tar.gz file), without the ".jdl" extension
(or without the ".tar.gz" extension, if JDL file is not present).
PreExec and PostExec ScriptsIn most times it is useful to have pre-execution and post-execution scripts. These may be used for e.g. preparing the input data files, or archiving output data files etc. If present, these have to be calledCOMMAND_preexec and COMMAND_postexec . They must be executable.
They will be run directly before submission and after job output is retrieved,
respectively.
PreExec , if present, is automatically called by the framework
with the AbsCOMMAND as first argument,
and with all the given arguments from ArgList as following arguments.
PostExec , if present, is automatically called by the framework
with the AbsCOMMAND as first argument, the name of the job output
directory as second argument (automatically generated by the framwork),
and with all the given arguments from ArgList as following arguments.
The retrieved outputs of your job will always be in the tarball
OutputDirectory.tar.gz under the job output directory, where
OutputDirectory is what you specified in the JDL file (out by default).
If PostExec returns with 0 nothing further happens.
If PostExec returns with 1, the user script COMMAND_chain is called,
which can be used to launch further jobs.
Job ChainingThe running time of Grid jobs is limited. This is unavoidable for efficient control on resources. The time limit depends on the given queue, but a typical value is three days. However, one often faces such computing problems, when the total running time of the jobs cannot be estimated a priori, or it is estimated to be very long. For such cases, the job chaining is the solution: the program has to be split up into shorter pieces with limited running time. The program has to be written in such a way, that its running time is limited internally (e.g. to one day), and when this time limit is exceeded, its last state should be dumped as output. The next copy of the program has to be started with this last state as input, thus, by such chain of limited lifetime jobs, one can imitate arbitrary long lifetime jobs. The scriptCOMMAND_chain is the tool to lauch further
jobs, when needed.
If the COMMAND_postexec script returns 1, the script COMMAND_chain
is invoked (must be executable). In this case,
if present, it is automatically called by the framework
with the AbsCOMMAND as first argument, the name
of the job output directory as second argument, and with all the given
arguments from ArgList as following arguments.
The output of COMMAND_chain is interpreted by the framework as ArgList
lines, just as if they were lines from the initial ArgList file.
Therefore, it can be used to lauch
further jobs by a finished job, depending on the decision of the
COMMAND_postexec script. This is called the job chaining.
(The COMMAND_chain may have multiple lines as output. Each line is
interpreted like a line from the ArgList file, so multiple jobs may
also be lauched: the job chain may also fork.) | |||||||
\ No newline at end of file |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
WMSXBasic usageThere are two program you will be using: Provider and Requestor.Provideris the background process which does the actual work. There can be only one provider runnung on a machine per user. Start with./wmsx-provider -v /tmp/myworkdirwhere:
Requestoris an application to submit commands to the system for execution. Start with:./wmsx-requestor -optionA complete list of options is available with -h. Some options are:
JDL FilesCan be sumbitted and managed through the framework. A sample usage is:./wmsx-requestor -j example.jdl -o /tmp/StdOut -r /tmp/resultDirWhere the options are:
ArgList FilesCan specify multiple jobs to create one "larger" jpb. ArgList Format: COMMAND parameters ./wmsx-requestor options:
Custom JDL files.for Each command, there may be a file command.jdl, with custom JDL contents. sup ported are:
Pre/PostExecmust be calles COMMAND_preexec and COMMAND_postexec. MUST be executable. Will be run directly before submission and after job output is retrieved. Preexec is called with the name of the command and its full directory as first argument, and with all the given args as following arguments. Postexec is called with the name of the command and its full directory as first argument, , the name of the output directory as second argument, and with all the given args as following arguments. The output of your job will always be in a file "out.tar.gz" in the output directory. If postexec return with 0 nothing further happens. If postexec returns with 1, COMMAND_chain is called.ChainingThe _chain command's output is interpreted just as a line from the args file. It can therefore be used to start further jobs. |