EGEE is a project funded by the European Union under contract IST-2003-508833 EGEE Tutorial Turin, 18-19 January 2005 www.eu-egee.org Hands on Job Services.

Slides:



Advertisements
Similar presentations
FP62004Infrastructures6-SSA E-infrastructure shared between Europe and Latin America Special Jobs Claudio Cherubino INFN Catania.
Advertisements

Workload Management David Colling Imperial College London.
EGEE is a project funded by the European Union under contract IST EGEE Tutorial Turin - ITALY 18 – 19 January Job Services.
12th EELA Tutorial, Lima, FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America.
EU 2nd Year Review – Jan – Title – n° 1 WP1 Speaker name (Speaker function and WP ) Presentation address e.g.
Workload management Owen Maroney, Imperial College London (with a little help from David Colling)
INFSO-RI Enabling Grids for E-sciencE Workload Management System and Job Description Language.
FESR Consorzio COMETA - Progetto PI2S2 The gLite Workload Management System Annamaria Muoio INFN Catania Italy
The Grid Constantinos Kourouyiannis Ξ Architecture Group.
Job Submission The European DataGrid Project Team
SEE-GRID-SCI User Interface (UI) Installation and Configuration Branimir Ackovic Institute of Physics Serbia The SEE-GRID-SCI.
Riccardo Bruno, INFN.CT Sevilla, 10-14/09/2007 GENIUS Exercises.
INFSO-RI Enabling Grids for E-sciencE Architecture of the gLite Workload Management System Giuseppe Andronico INFN EGEE Tutorial.
INFSO-RI Enabling Grids for E-sciencE EGEE Middleware The Resource Broker EGEE project members.
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks Job Submission Fokke Dijkstra RuG/SARA Grid.
Special Jobs Claudio Cherubino INFN - Catania. 2 MPI jobs on gLite DAG Job Collection Parametric jobs Outline.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Special Jobs Matias Zabaljauregui UNLP.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Luciano Díaz ICN-UNAM Based on Domenico.
The gLite API – PART I Giuseppe LA ROCCA INFN Catania ACGRID-II School 2-14 November 2009 Kuala Lumpur - Malaysia.
INFSO-RI Enabling Grids for E-sciencE GILDA Praticals GILDA Tutors INFN Catania ICTP/INFM-Democritos Workshop on Porting Scientific.
Enabling Grids for E-sciencE Workload Management System on gLite middleware Matthieu Reichstadt CNRS/IN2P3 ACGRID School, Hanoi (Vietnam)
Nadia LAJILI User Interface User Interface 4 Février 2002.
INFSO-RI Enabling Grids for E-sciencE Workload Management System Mike Mineter
1 Esther Montes Prado CIEMAT 10th EELA Tutorial Madrid, Hands-on on WMS (Review and Summary)
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) GISELA Additional Services Diego Scardaci
Group 1 : Grid Computing Laboratory of Information Technology Supervisors: Alexander Ujhinsky Nikolay Kutovskiy.
EGEE-III INFSO-RI Enabling Grids for E-sciencE Feb. 06, Introduction to High Performance and Grid Computing Faculty of Sciences,
EGEE is a project funded by the European Union under contract IST Job Description Language - more control over your Job Assaf Gottlieb University.
EGEE is a project funded by the European Union under contract IST EGEE Tutorial Turin, January Job Services Emidio.
Job Management DIRAC Project. Overview  DIRAC JDL  DIRAC Commands  Tutorial Exercises  What do you have learned? KEK 10/2012DIRAC Tutorial.
E-infrastructure shared between Europe and Latin America 1 Workload Management System-WMS Luciano Diaz Universidad Nacional Autónoma de México - UNAM Mexico.
FP7-INFRA Enabling Grids for E-sciencE EGEE Induction Grid training for users, Institute of Physics Belgrade, Serbia Sep. 19, 2008.
INFSO-RI Enabling Grids for E-sciencE Claudio Cherubino, INFN Catania Grid Tutorial for users Merida, April 2006 Special jobs.
INFSO-RI Enabling Grids for E-sciencE Αthanasia Asiki Computing Systems Laboratory, National Technical.
Enabling Grids for E-sciencE Workload Management System on gLite middleware - commands Matthieu Reichstadt CNRS/IN2P3 ACGRID School, Hanoi.
High-Performance Computing Lab Overview: Job Submission in EDG & Globus November 2002 Wei Xing.
INFSO-RI Enabling Grids for E-sciencE Job Workflows with gLite Emidio Giorgio INFN NA4 Generic Applications Meeting 10 January 2006.
EGEE-II INFSO-RI Enabling Grids for E-sciencE Workload management in gLite 3.x - MPI P. Nenkova, IPP-BAS, Sofia, Bulgaria Some of.
INFSO-RI Enabling Grids for E-sciencE Job Submission Tutorial (material from INFN Catania)
Workload Management System Jason Shih WLCG T2 Asia Workshop Dec 2, 2006: TIFR.
1 DIRAC Job submission A.Tsaregorodtsev, CPPM, Marseille LHCb-ATLAS GANGA Workshop, 21 April 2004.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Moisés Hernández Duarte UNAM FES Cuautitlán.
INFSO-RI Enabling Grids for E-sciencE Job Description Language (JDL) Giuseppe La Rocca INFN First gLite tutorial on GILDA Catania,
INFSO-RI Enabling Grids for E-sciencE GILDA Praticals Giuseppe La Rocca INFN – Catania gLite Tutorial at the EGEE User Forum CERN.
EGEE is a project funded by the European Union under contract IST Job Description Language – How to control your Job Nadav Grossaug IsraGrid.
E-infrastructure shared between Europe and Latin America FP6−2004−Infrastructures−6-SSA Special Jobs Valeria Ardizzone INFN - Catania.
EGEE 3 rd conference - Athens – 20/04/2005 CREAM JDL vs JSDL Massimo Sgaravatto INFN - Padova.
Biomed tutorial 1 Enabling Grids for E-sciencE INFSO-RI EGEE is a project funded by the European Union under contract IST JDL Flavia.
LCG2 Tutorial Viet Tran Institute of Informatics Slovakia.
Istituto Nazionale di Astrofisica Information Technology Unit INAF-SI Job with data management Giuliano Taffoni.
Job Management Beijing, 13-15/11/2013. Overview Beijing, /11/2013 DIRAC Tutorial2  DIRAC JDL  DIRAC Commands  Tutorial Exercises  What do you.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Advanced Job Riccardo Rotondo
Introduction to Computing Element HsiKai Wang Academia Sinica Grid Computing Center, Taiwan.
FESR Consorzio COMETA - Progetto PI2S2 Jobs with Input/Output data Fabio Scibilia, INFN - Catania, Italy Tutorial per utenti e.
Introduction to Job Description Language (JDL) Alessandro Costa INAF Catania Corso di Calcolo Parallelo Grid Computing Catania - ITALY September.
Enabling Grids for E-sciencE Work Load Management & Simple Job Submission Practical Shu-Ting Liao APROC, ASGC EGEE Tutorial.
Architecture of the gLite WMS
Workload Management System on gLite middleware
Special jobs with the gLite WMS
EGEE tutorial, Job Description Language - more control over your Job Assaf Gottlieb Tel-Aviv University EGEE is a project.
Alexandre Duarte CERN Fifth EELA Tutorial Santiago, 06/09-07/09,2006
Workload Management System
5. Job Submission Grid Computing.
Job Management with DATA
gLite Advanced Job Management
gLite Job Management Christos Theodosiou
GENIUS Grid portal Hands on
Job Description Language (JDL)
Hands on Session: DAG Job Submission
Job Submission M. Jouvin (LAL-Orsay)
Presentation transcript:

EGEE is a project funded by the European Union under contract IST EGEE Tutorial Turin, January Hands on Job Services Emidio Giorgio INFN

EGEE Tutorial Turin – Job Services – January 18, Contents Examples of job submission, job execution monitoring and output retrieving

EGEE Tutorial Turin – Job Services – January 18, JDL: Relevant attributes JobType Normal (simple, sequential job), Interactive, MPICH, Checkpointable Or combination of them Executable (mandatory) The command name Arguments (optional) Job command line arguments StdInput, StdOutput, StdError (optional) Standard input/output/error of the job Environment (optional) List of environment settings InputSandbox (optional) List of files on the UI local disk needed by the job for running The listed files will automatically staged to the remote resource OutputSandbox (optional) List of files, generated by the job, which have to be retrieved VirtualOrganisation (optional) A different way to specify the VO of the user

EGEE Tutorial Turin – Job Services – January 18, JDL: Relevant attributes Requirements Job requirements on the resources Specified using GLUE attributes of resources published in the Information Service Its value is a boolean expression Only one requirements can be specified if there are more than one, only the last one is taken into account If not specified, default value defined in UI configuration file is considered Default: other.GlueCEStateStatus == "Production" (the resource has to be able to accept jobs and dispatch them on WNs)

EGEE Tutorial Turin – Job Services – January 18, JDL: Relevant attributes Rank Expresses preference (how to rank resources that have already met the Requirements expression) It is expressed as a floating-point number The CE with the highest rank is the one selected Specified using GLUE attributes of resources published in the Information Service If not specified, default value defined in the UI configuration file is considered Default: - other.GlueCEStateEstimatedResponseTime (the lowest estimated traversal time) Default: other.GlueCEStateFreeCPUs (the highest number of free CPUs) Other possible rank value is below reported: (other.GlueCEStateWaitingJobs == 0 ? other.GlueCEStateFreeCPUs : - other.GlueCEStateWaitingJobs) (the number of waiting jobs is used if this number is not null and the rank decreases as the number of waiting jobs gets higher; if there are not waiting jobs, the number of free CPUs is used)

EGEE Tutorial Turin – Job Services – January 18, Job Submission edg-job-submit [–r ] [-c ] [-vo ] [-o ] -r the job is submitted directly to the computing element identified by -c the configuration file is pointed by the UI instead of the standard configuration file -vo the Virtual Organisation (if user is not happy with the one specified in the UI configuration file) -o the generated edg_jobId is written in the Useful for other commands, e.g.: edg-job-status –i (or edg_jobId) -i the status information about edg_jobId contained in the are displayed

EGEE Tutorial Turin – Job Services – January 18, Other (most relevant) UI commands edg-job-list-match Lists resources matching a job description Performs the matchmaking without submitting the job edg-job-cancel Cancels a given job edg-job-status Displays the status of the job edg-job-get-output Returns the job-output (the OutputSandbox files) to the user edg-job-get-logging-info Displays logging information about submitted jobs (all the events pushed by the various components of the WMS) Very useful for debug purposes

EGEE Tutorial Turin – Job Services – January 18, Essential JDL At least one has to specify the following attributes: the name of the executable the files where to write the standard output and standard error of the job the arguments to the executable, if needed the files that must be transferred from UI to WN and viceversa [ Executable = date; StdError = stderr.log; StdOutput = stdout.log; OutputSandbox = {stderr.log, stdout.log}; ]

EGEE Tutorial Turin – Job Services – January 18, Example 1 : hostname.jdl [ Type="Job"; JobType="Normal"; Executable = "/bin/sh"; Arguments = "start_hostname.sh"; StdError = "stderr.log"; StdOutput = "stdout.log"; InputSandbox = "start_hostname.sh"; OutputSandbox = {"stderr.log", "stdout.log"}; RetryCount = 7; ]

EGEE Tutorial Turin – Job Services – January 18, Example 1: hostname.jdl The file start_hostname.sh is the file that is executed on the Worker Node, and with it the commands that contains. #!/bin/sh sleep 5 hostname –f The command hostname prints the name of the executing worker node on the std. output, which is redirected on the file stdout.log that is carried out on the UI when the job has finished

EGEE Tutorial Turin – Job Services – January 18, Example 2 : Submitting your own scripts scriptExample2.jdl Type = "Job"; JobType = "Normal"; Executable = "/bin/sh"; StdOutput = "std.out"; StdError = "std.err"; OutputSandbox = {"std.err","std.out"}; InputSandbox = {"startScriptExample2.sh"}; Arguments = "startScriptExample2.sh"; RetryCount = 7;

EGEE Tutorial Turin – Job Services – January 18, Example 2 : Submitting your own scripts Content of startScriptExample2.sh #!/bin/sh MY_NAME="ReplaceWithYourName" WORKER_NODE_NAME=`hostname` echo "Hello $MY_NAME, from $WORKER_NODE_NAME " Substitute ReplaceWithYourName with your real name and launch the job with edg-job-submit

EGEE Tutorial Turin – Job Services – January 18, Example 3: Submitting your own programs source.c #include int main(int argc, char **argv) { char *name = argv[1]; printf("\n\n\n"); printf("Hello %s!\n",name); printf("Welcome to EGEE tutorial, Torino 18\ Jan,2005 \n\n\n"); exit(0); }

EGEE Tutorial Turin – Job Services – January 18, Example 3: Submitting your own programs c_exe.jdl Type = "Job"; JobType = "Normal"; Executable = "/bin/sh"; StdOutput = "std.out"; StdError = "std.err"; OutputSandbox = {"std.err","std.out"}; InputSandbox = {"startExe.sh","c_exe"}; Arguments = "startExe.sh"; RetryCount = 7;

EGEE Tutorial Turin – Job Services – January 18, Example 3: Submitting your own programs Content of startExe.sh #!/bin/sh MY_NAME="ReplaceWithYourName" chmod 755 c_exe./c_exe ${MY_NAME} startExe.sh execute c_exe passing it as argument the value of the environment variable MY_NAME Compile source.c obtaining c_exe and submit the job

EGEE Tutorial Turin – Job Services – January 18, DAG Job The DAG job is a Directed Acyclic Graph The sub-jobs are scheduled only when the corresponding DAG node is ready The user has to set the JDL JobType attribute to dag, nodes attributes that contains the description of the nodes, and dependencies attributes

EGEE Tutorial Turin – Job Services – January 18, DAG Job nodes = { cmkin1 = [ file = bckg_01.jdl" ; ], cmkin2 = [ file = bckg_02.jdl" ; ], …… cmkinN = [ file = bckg_0N.jdl" ; ] }; dependencies = { {cmkin1, cmkin2}, {cmkin2, cmkin3}, {cmkin2, cmkin5}, {{cmkin4, cmkin5}, cmkinN} } cmk in1 cmk in4 cmk in2 cmk in5 cmk inN cmk in3

EGEE Tutorial Turin – Job Services – January 18, DAG Job nodes = { nodeA = [ file = nodeA.jdl" ; ], nodeB = [ file = nodeB.jdl" ; ], …… nodeI = [ file = nodeI.jdl" ; ] }; dependencies = { {nodeA, nodeB}, {nodeB, nodeC}, {nodeD, nodeE}, {nodeG, nodeH} } ADBFECIGH

EGEE Tutorial Turin – Job Services – January 18, Dag Example [ type = "dag"; max_nodes_running = 10; nodes = [ nodeA = [ node_type = "edg-jdl"; file ="nodes/nodeA.jdl" ; ]; nodeB = [ node_type = "edg-jdl";….. nodeI = [ node_type = "edg-jdl"; file ="nodes/nodeI.jdl" ; ]; dependencies = { { nodeA, nodeB }, { nodeB, nodeC }, { nodeD, nodeE }, { nodeG, nodeH } } ]; ]

EGEE Tutorial Turin – Job Services – January 18, Summary We explained the main functionality of the Workload Management System The JDL file describes a user job A set of commands allow the user to get status information and retrieve relevant data Questions ?