Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
WMSXBasic usageThis is a program for mass job management on the Grid. There are two program you will be using: Provider and Requestor.ProviderProvider is the background process which does the actual work. There can be only one provider running on a machine per user. Start with:wmsx-provider.sh myworkdir [-v]where:
log , debug and out is prepared under the working directory. The logging informations of the WMSX actions are written into a file under the log directory. The files jobids.all , jobids.running , jobids.failed and jobids.done under the working directory contain the unique job identifiers of the sent Grid jobs.
Note: On certain platforms, the file and directory names, given as command line arguments to wmsx-provider.sh or wmsx-requestor.sh , are only properly recognized when specified as absolute paths.
RequestorRequestor is an application to submit commands to the Provider system for execution. Start with:wmsx-requestor.sh -optionA complete list of options is available with -h . Some options are:
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
The possible job submission procedures are described in the next sections.
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:wmsx-requestor.sh -j example.jdl -r resultDir [-o StdOutFile]Where the options are:
Automated mass submission of jobs via ArgList filesBy using ArgList files, one can submit many independent jobs and handle their outputs in a simple and efficient way. The ArgList file can contain lines of the following format:COMMAND parameterswhere COMMAND refers to a job name, and parameters are the command line arguments of the executable of your job.
To submit the jobs, use:
COMMAND refers to a WMSX JDL file (not a traditional JDL file), named COMMAND.wjdl , which describes your job. If the COMMAND.wjdl is not present, default job specifications are assumed, which shall be discussed in the followings.
The outputs of the jobs are written into generated directories under the out directory of the specified working directory of the provider.
WMSX JDL filesFor eachCOMMAND in the ArgList file, there may be a WMSX JDL file COMMAND.wjdl , 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 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.wjdl file (or if not present, to the the COMMAND.tar.gz file), without the ".wjdl" extension (or without the ".tar.gz" extension).
Pre-execution and post-execution 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.
COMMAND_preexec , 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 framework), and with all the given arguments from ArgList as following arguments.
COMMAND_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 framework), and with all the given arguments from ArgList as following arguments.
The retrieved outputs of your job will always be in the tarball out.tar.gz under the generated job output directory.
If COMMAND_preexec returns with 0 nothing further happens: the Grid job is submitted. If returns with 1, the actual Grid job shall not be launched. This feature can be used for a job submission decision.
If COMMAND_postexec returns with 0 nothing further happens. If returns with 1, the script COMMAND_chain is called, if present, which can be used to launch further jobs.
Job chainingThe running time of Grid jobs is limited. This is unavoidable for efficient controling of 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 subsequent 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 is 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 | ||||||||
Added: | ||||||||
> > |
The backend conceptThe backend is the system which is actually taking care about your job submission. This section needs expansion...Graphical User InterfaceA simple graphical interface is written to help job flow monitoring. Start with:wmsx-gui.sh-- AndrasLaszlo - 10 Jul 2009 |