| 1 | == Analyse d'un job perroquet au LPSC == |
| 2 | |
| 3 | Ce tutoriel décrit comment ''forcer'' un job à tourner à un endroit donné. Il décrit également comment trouver les ressources où le job est susceptible de s'exécuter. |
| 4 | |
| 5 | Pour lancer un job, vous avez besoin de deux fichiers |
| 6 | |
| 7 | * Le fichier JDL (Job Description Langage) |
| 8 | Le fichier job.jdl est le fichier qui décrit votre job. Dans ce fichier vous trouverez une ligne de commentaire (#...) qui décrit chaque nouvelle instruction du fichier JDL. |
| 9 | * L'executable |
| 10 | Le fichier job.sh est le script qui va être exécuter sur la machine distante (le WN) |
| 11 | |
| 12 | * __Le match making__ [[BR]] '''edg-job-list-match''' vous permet d'obtenir une liste de CE sur lesquels votre job peut tourner au regard des ''Requirements'' de votre fichier JDL. [[BR]] Ces CE sont classés selon une note attribuée en fonction de ce que vous avez défini dans l'element ''Rank'' de votre fichier JDL. |
| 13 | {{{ |
| 14 | [lambert@lpsc-ui edg3]$ edg-job-list-match --rank job.jdl |
| 15 | |
| 16 | Selected Virtual Organisation name (from JDL): atlas |
| 17 | Connecting to host node04.datagrid.cea.fr, port 7772 |
| 18 | |
| 19 | *************************************************************************** |
| 20 | COMPUTING ELEMENT IDs LIST |
| 21 | The following CE(s) matching your job requirements have been found: |
| 22 | |
| 23 | *CEId* *Rank* |
| 24 | |
| 25 | cclcgceli06.in2p3.fr:2119/jobmanager-bqs-medium 1882 |
| 26 | cclcgceli05.in2p3.fr:2119/jobmanager-bqs-long 1800 |
| 27 | cclcgceli02.in2p3.fr:2119/jobmanager-bqs-medium 1798 |
| 28 | cclcgceli01.in2p3.fr:2119/jobmanager-bqs-medium 1796 |
| 29 | cclcgceli01.in2p3.fr:2119/jobmanager-bqs-long 1775 |
| 30 | grid10.lal.in2p3.fr:2119/jobmanager-pbs-atlas 1051 |
| 31 | grid10.lal.in2p3.fr:2119/jobmanager-pbs-atlasana 1051 |
| 32 | cclcgceli05.in2p3.fr:2119/jobmanager-bqs-short 254 |
| 33 | cclcgceli06.in2p3.fr:2119/jobmanager-bqs-short 254 |
| 34 | cclcgceli01.in2p3.fr:2119/jobmanager-bqs-short 247 |
| 35 | cclcgceli02.in2p3.fr:2119/jobmanager-bqs-short 247 |
| 36 | lpsc-ce.in2p3.fr:2119/jobmanager-pbs-atlas 17 |
| 37 | polgrid1.in2p3.fr:2119/jobmanager-pbs-atlas 0 |
| 38 | ipnls2001.in2p3.fr:2119/jobmanager-pbs-atlasana -1 |
| 39 | clrlcgce01.in2p3.fr:2119/jobmanager-lcgpbs-atlas -2 |
| 40 | marce01.in2p3.fr:2119/jobmanager-pbs-atlas -2 |
| 41 | ipnls2001.in2p3.fr:2119/jobmanager-pbs-atlas -3 |
| 42 | cclcgceli02.in2p3.fr:2119/jobmanager-bqs-atlas_verylong-17 |
| 43 | cclcgceli05.in2p3.fr:2119/jobmanager-bqs-medium -20 |
| 44 | lapp-ce01.in2p3.fr:2119/jobmanager-pbs-atlas -23 |
| 45 | lpnce.in2p3.fr:2119/jobmanager-pbs-atlas -62 |
| 46 | cclcgceli02.in2p3.fr:2119/jobmanager-bqs-long -64 |
| 47 | clrlcgce02.in2p3.fr:2119/jobmanager-lcgpbs-atlas -91 |
| 48 | clrlcgce03.in2p3.fr:2119/jobmanager-lcgpbs-atlas -92 |
| 49 | cclcgceli06.in2p3.fr:2119/jobmanager-bqs-long -202 |
| 50 | *************************************************************************** |
| 51 | }}} |
| 52 | |
| 53 | * __Soumission du job sur un CE spécifique__ [[BR]] Vous pouvez soumettre un job sur un CE donné en utilisant l'option -r de edg-job-submit |
| 54 | {{{ |
| 55 | [lambert@lpsc-ui edg3]$ edg-job-submit -r lpsc-ce.in2p3.fr:2119/jobmanager-pbs-atlas job.jdl |
| 56 | |
| 57 | Selected Virtual Organisation name (from JDL): atlas |
| 58 | Connecting to host node04.datagrid.cea.fr, port 7772 |
| 59 | Logging to host node04.datagrid.cea.fr, port 9002 |
| 60 | |
| 61 | |
| 62 | ********************************************************************************************* |
| 63 | JOB SUBMIT OUTCOME |
| 64 | The job has been successfully submitted to the Network Server. |
| 65 | Use edg-job-status command to check job current status. Your job identifier (edg_jobId) is: |
| 66 | |
| 67 | - https://node04.datagrid.cea.fr:9000/3B3xpcR7tgKuVEm9V_UKWA |
| 68 | |
| 69 | |
| 70 | ********************************************************************************************* |
| 71 | }}} |
| 72 | |
| 73 | ''-->Exercice : Lisez le fichier JDL, modifiez le pour faire tourner le job sur le CE du LPSC sans utiliser l'option -r. ''[[BR]] |
| 74 | |
| 75 | * __Récupération du statut__ [[BR]] Le job s'est bien éxecuté sur le CE du LPSC |
| 76 | {{{ |
| 77 | [lambert@lpsc-ui edg3]$ edg-job-status https://node04.datagrid.cea.fr:9000/3B3xpcR7tgKuVEm9V_UKWA |
| 78 | |
| 79 | |
| 80 | ************************************************************* |
| 81 | BOOKKEEPING INFORMATION: |
| 82 | |
| 83 | Status info for the Job : https://node04.datagrid.cea.fr:9000/3B3xpcR7tgKuVEm9V_UKWA |
| 84 | Current Status: Done (Success) |
| 85 | Exit code: 0 |
| 86 | Status Reason: Job terminated successfully |
| 87 | Destination: lpsc-ce.in2p3.fr:2119/jobmanager-pbs-atlas |
| 88 | reached on: Thu Jun 5 12:32:48 2008 |
| 89 | ************************************************************* |
| 90 | }}} |
| 91 | |
| 92 | |
| 93 | ''-->Exercice : Récupérez une liste de CE pour votre VO'' avec lcg-info-sites puis faites le s'exécuter sur un autre CE de votre choix.[[BR]] |
| 94 | ''-->Exercice : Soumettez ce job sur la grille, vérifier qu'il à tourné sur le CE choisi et récupérez le résultat.'' [[BR]] |
| 95 | |
| 96 | [wiki:tutoedg up] ; [wiki:edg2 previous] ; [wiki:edg4 next] |