Grid Services
Jobs can be submitted to grid resources using the ARC tools, which are available in
CVMFS. Our colleagues in Durham have written a good
introductory tutorial
; a summary of the steps required to submit and manage jobs, adapted for Glasgow users, is given below.
ARC tools
The tools required for grid job submission and management are available from
CVMFS:
export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh'
setupATLAS
lsetup emi
Certificates and proxies
To use grid resources, you will need a
certificate, from which you can generate a proxy certificate. The proxy certificate has a relatively short lifetime, and is used to actually submit the job. A proxy is associated with a particular Virtual Organisation (VO), for example
vo.scotgrid.ac.uk
, which is selected when it is created. You can generate a proxy using the
arcproxy
command:
arcproxy -S <VO_ALIAS> -N
For example, to generate a proxy for the
vo.scotgrid.ac.uk
VO:
arcproxy -S vo.scotgrid.ac.uk -N
Job description (xRSL)
Before submitting a job, you need to create a file which describes the features of the job for ARC (its executable, the names of input and output files, what to do with logs, etc.). This file is written in the Extended Resource Specification Language (xRSL). A simple job description which runs a script called
test.sh
could look like this:
&
(executable = "test.sh")
(arguments = "")
(jobName = "TestJob")
(stdout = "stdout")
(stderr = "stderr")
(gmlog = "test.log")
(walltime="60")
A full description of xRSL can be found in the ARC reference manual:
http://www.nordugrid.org/documents/xrsl.pdf
Submitting a job