| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr" lang="en-US">
|
|---|
| 3 | <head profile="http://purl.org/net/uriprofile/">
|
|---|
| 4 |
|
|---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|---|
| 6 | <meta http-equiv="Content-Language" content="ja" />
|
|---|
| 7 | <meta http-equiv="Content-Style-Type" content="text/css" />
|
|---|
| 8 | <meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|---|
| 9 | <title>Xgrid</title>
|
|---|
| 10 |
|
|---|
| 11 | <meta name="author" content="Florence Jacq" />
|
|---|
| 12 | <meta name="description" content="Xgrid Tutorial" />
|
|---|
| 13 | <meta name="keywords" content="Xgrid" />
|
|---|
| 14 | <link rev="made" href="mailto:" />
|
|---|
| 15 | <link rel="Shortcut Icon" type="image jpeg" href="./XGRID_fichiers/Xgrid-icone.jpeg" />
|
|---|
| 16 | <link rel="stylesheet" href="../../tags/Tools/v3/css/screen.css" type="text/css" media="screen, projection, tv, print" />
|
|---|
| 17 | <link rel="stylesheet" href="../../tags/Tools/v3/Slidy/slidy-toc.css" type="text/css" media="screen, projection, print" />
|
|---|
| 18 | <script src="../../tags/Tools/v3/Slidy/slidy.js" type="text/javascript"></script>
|
|---|
| 19 | <script src="../../tags/Tools/v3/Slidy/slidy-toc.js" type="text/javascript"></script>
|
|---|
| 20 | </head>
|
|---|
| 21 |
|
|---|
| 22 | <body style="font-size: 18pt;" background="XGRID_fichiers/orange030.gif">
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 | <!-- Introduction [Start] -->
|
|---|
| 26 |
|
|---|
| 27 | <div class="slide" id="cover">
|
|---|
| 28 | <p><br /> <br /><br /> <br /></p>
|
|---|
| 29 | <center><h2>XGRID</h2></center>
|
|---|
| 30 | <center><h3><font color="#FF8C00"> Tutorial</font></h3></center><br />
|
|---|
| 31 | <table class="noborder">
|
|---|
| 32 | <tr><td align="right" class="noborder">
|
|---|
| 33 | <i><font color = "#291B66"><b>F.Jacq - Juin 2007</b></font></i>
|
|---|
| 34 | </td></tr>
|
|---|
| 35 | </table>
|
|---|
| 36 | <p> </p>
|
|---|
| 37 | </div>
|
|---|
| 38 |
|
|---|
| 39 | <!-- Diapo -->
|
|---|
| 40 | <div class="slide">
|
|---|
| 41 |
|
|---|
| 42 | <h1>Sommaire</h1>
|
|---|
| 43 | <ol class="incremental">
|
|---|
| 44 | <li><b><a href="XGrid.html#(3)">Présentation générale</a></b><br /> <br />
|
|---|
| 45 | <li><b><a href="XGrid.html#(4)">Architecture fonctionnelle</a></b><br /> <br />
|
|---|
| 46 | <li><b><a href="XGrid.html#(5)">Modèle fonctionnel</a></b><br /> <br />
|
|---|
| 47 | <li><b><a href="XGrid.html#(6)">Caractéristiques</a></b><br /> <br />
|
|---|
| 48 | <li><b><a href="XGrid.html#(7)">Installation des composants</a></b><br /> <br />
|
|---|
| 49 | <li><b><a href="XGrid.html#(11)">Monitoring de la grille</a></b><br /> <br />
|
|---|
| 50 | <li><b><a href="XGrid.html#(14)">Lignes de commande : La grille</a></b><br /> <br />
|
|---|
| 51 | <li><b><a href="XGrid.html#(15)">Lignes de commande : Les jobs</a></b><br /> <br />
|
|---|
| 52 | <li><b><a href="XGrid.html#(20)">Sources</a></b><br /> <br />
|
|---|
| 53 |
|
|---|
| 54 | </ol>
|
|---|
| 55 | </div>
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 | <!-- Diapo -->
|
|---|
| 60 | <div class="slide">
|
|---|
| 61 |
|
|---|
| 62 | <h1>Présentation générale</h1>
|
|---|
| 63 | <ul class="incremental">
|
|---|
| 64 | <li><b>Technologie Mac OS X Server et Mac OS X</b><br /> <br /></li>
|
|---|
| 65 | <li><b>Soft : Clusters Xgrid/Grilles locales/Grilles distribuées</b><br /> <br />
|
|---|
| 66 | <ul>
|
|---|
| 67 | <li>Déploiement et gestion de grilles informatiques</li>
|
|---|
| 68 | <li>Administration des ressources</li>
|
|---|
| 69 | <li>Utilisation des ressources<br /> <br />
|
|---|
| 70 | <font color = red> => Simplification de la procédure à suivre </font><br /> <br />
|
|---|
| 71 | </li>
|
|---|
| 72 | </ul>
|
|---|
| 73 | </li>
|
|---|
| 74 | <li><b>Terminologie Xgrid</b><br /> <br />
|
|---|
| 75 | <ul>
|
|---|
| 76 | <li><font color="#FF8C00">Contrôleur </font>: Gère la grille et répartit la charge de travail.<br /> <br /></li>
|
|---|
| 77 | <li><font color="#FF8C00">Agent </font>: Réside dans la grille et effectue les sous tâches.<br /> <br /></li>
|
|---|
| 78 | <li><font color="#FF8C00">Client </font>: Ordinateur qui envoie une tâche au contrôleur.<br /> <br /></li>
|
|---|
| 79 | <li><font color="#FF8C00">Tâche </font>: Ensemble d'opérations soumis au contrôleur par le client. Elle peut inclure des données et des éxécutables<br /> <br /></li>
|
|---|
| 80 | <li><font color="#FF8C00">Sous-tâche </font>: Partie d'une tâche. Le contrôleur scinde une tâche en plusieurs sous-tâches et les distribue aux agents.</li>
|
|---|
| 81 | </ul>
|
|---|
| 82 | </li>
|
|---|
| 83 |
|
|---|
| 84 | </ul>
|
|---|
| 85 | </div>
|
|---|
| 86 |
|
|---|
| 87 |
|
|---|
| 88 | <!-- Diapo -->
|
|---|
| 89 | <div class="slide">
|
|---|
| 90 |
|
|---|
| 91 | <h1>Architecture du fonctionnement</h1>
|
|---|
| 92 | <div class="incremental"><br />
|
|---|
| 93 |
|
|---|
| 94 | <center><img src="XGRID_fichiers/ArchitectureLG.gif" width="70%" height="70%" alt="Schema1"/></center>
|
|---|
| 95 |
|
|---|
| 96 | </div>
|
|---|
| 97 | </div>
|
|---|
| 98 |
|
|---|
| 99 | <!-- Diapo -->
|
|---|
| 100 | <div class="slide">
|
|---|
| 101 |
|
|---|
| 102 | <h1>Modèle fonctionnel</h1>
|
|---|
| 103 | <div class="incremental"><br />
|
|---|
| 104 | <center><img src="XGRID_fichiers/SchemaLG.gif" width="80%" height="80%" alt="Schema1"/></center>
|
|---|
| 105 |
|
|---|
| 106 | </div>
|
|---|
| 107 | </div>
|
|---|
| 108 |
|
|---|
| 109 |
|
|---|
| 110 | <!-- Diapo -->
|
|---|
| 111 | <div class="slide">
|
|---|
| 112 | <h1>Caractéristiques</h1>
|
|---|
| 113 | <ul class="incremental">
|
|---|
| 114 | <li><p align ="justify"><b>Communication</b> agent-contrôleur et contôleur-client</p>
|
|---|
| 115 | <ul>
|
|---|
| 116 | <li>
|
|---|
| 117 | mDNS, DNS ou nom-adresse<br /> <br />
|
|---|
| 118 | </li>
|
|---|
| 119 | </ul>
|
|---|
| 120 | </li>
|
|---|
| 121 | <li><p align ="justify"><b>Authentification</b> agent-contrôleur et contôleur-client
|
|---|
| 122 |
|
|---|
| 123 | </p>
|
|---|
| 124 | <ul>
|
|---|
| 125 | <li><font color="#FF8C00">Signature unique (SSO Single Sign On) : </font>
|
|---|
| 126 | <p align ="justify">Basée sur l'infrastructure Open Directory et Kerberos.</p></li>
|
|---|
| 127 | <li><font color="#FF8C00">Mot de passe</font>
|
|---|
| 128 | </li>
|
|---|
| 129 | <li><font color="#FF8C00">Pas d'authentification : </font>
|
|---|
| 130 | <p align="justify">Uniquement pour des tests sans risque.</p><br /></li>
|
|---|
| 131 | </ul>
|
|---|
| 132 | </li>
|
|---|
| 133 |
|
|---|
| 134 | <li><b>Cas d'un agent déconnecté</b><br />
|
|---|
| 135 | <p align ="justify"><font color = "#291B66" >La sous-tâche echoue et est réaffectée par le contrôleur sur un autre agent.</font></p><br /></li>
|
|---|
| 136 | <li><b>Exécution de la sous tâche</b><br />
|
|---|
| 137 | <p align ="justify"><font color = "#291B66" >Par agent et par CPU. Un ordinateur bi-processeur peut éxécuter deux sous-tâches simultanément.</font></p>
|
|---|
| 138 | <br /></li>
|
|---|
| 139 | <li><b>Ordonnancement des jobs :</b> <font color = "#291B66" >FIFO (First In First Out) </font><br /> <br /></li>
|
|---|
| 140 |
|
|---|
| 141 |
|
|---|
| 142 | <li><b>Limite</b> de la
|
|---|
| 143 | <font color="#FF8C00">taille d'un fichier soumis </font><font color = "#291B66" >: 1 Go.</font></li>
|
|---|
| 144 |
|
|---|
| 145 |
|
|---|
| 146 |
|
|---|
| 147 | </ul>
|
|---|
| 148 | </div>
|
|---|
| 149 |
|
|---|
| 150 | <!-- Diapo -->
|
|---|
| 151 |
|
|---|
| 152 | <div class="slide" id="cover">
|
|---|
| 153 | <p><br /> <br /><br /> <br /></p>
|
|---|
| 154 | <center><h2>Installation des composants</h2></center>
|
|---|
| 155 |
|
|---|
| 156 | <p> </p>
|
|---|
| 157 | </div>
|
|---|
| 158 |
|
|---|
| 159 |
|
|---|
| 160 |
|
|---|
| 161 | <!-- Diapo -->
|
|---|
| 162 | <div class="slide">
|
|---|
| 163 |
|
|---|
| 164 | <h1>Le serveur</h1>
|
|---|
| 165 | <ul class="incremental">
|
|---|
| 166 | <li><b>Admin Serveur</b><br /> <font color="#FF8C00">Contrôleur : </font><font color = "#291B66" >Mac OS X Server 10.4 et >= 256 Mo de RAM.</font><br /><font color="#FF8C00">Agent : </font><font color = "#291B66" >Mac OS X Server 10.3 et >= 128 Mo de RAM.<br />Le serveur peut-être contrôleur et/ou agent.</font><br />
|
|---|
| 167 | Cliquer sur "Démarrer" le service Xgrid.<br /> <br />
|
|---|
| 168 | <table class="noborder" width="100%">
|
|---|
| 169 | <tr class="incremental">
|
|---|
| 170 | <td valign="top" class="noborder" width="50%">
|
|---|
| 171 | <ul>
|
|---|
| 172 | <li>Démarrage de l'agent sur le serveur Xgrid</li>
|
|---|
| 173 | </ul>
|
|---|
| 174 |
|
|---|
| 175 | </td>
|
|---|
| 176 | <td valign ="top" class="noborder" width="50%">
|
|---|
| 177 | <ul>
|
|---|
| 178 | <li>Démarrage de Xgrid sur le serveur : Le contrôleur</li>
|
|---|
| 179 | </ul>
|
|---|
| 180 | </td>
|
|---|
| 181 | </tr>
|
|---|
| 182 | </table>
|
|---|
| 183 | </li>
|
|---|
| 184 | </ul>
|
|---|
| 185 | <table class="noborder" width="100%">
|
|---|
| 186 | <tr class="incremental">
|
|---|
| 187 | <td valign="top" class="noborder" width="50%" >
|
|---|
| 188 | <img src="XGRID_fichiers/AdminAgent.jpg" width="100%" height="300" alt="AdminAgent"/>
|
|---|
| 189 | </td>
|
|---|
| 190 | <td valign ="top" class="noborder" width="50%">
|
|---|
| 191 | <img src="XGRID_fichiers/AdminCont.jpg" width="100%" height="300" alt="AdminCont"/>
|
|---|
| 192 | </td>
|
|---|
| 193 | </tr>
|
|---|
| 194 | </table>
|
|---|
| 195 |
|
|---|
| 196 | </div>
|
|---|
| 197 |
|
|---|
| 198 |
|
|---|
| 199 |
|
|---|
| 200 |
|
|---|
| 201 |
|
|---|
| 202 | <!-- Diapo -->
|
|---|
| 203 | <div class="slide">
|
|---|
| 204 |
|
|---|
| 205 | <h1>Poste de travail : L'agent</h1>
|
|---|
| 206 | <ul class="incremental">
|
|---|
| 207 | <li><b>Pré-requis de l'agent</b> : Mac OS X 10.3 ou 10.4<br /> </li>
|
|---|
| 208 | <li><b>Mac OS X : Préférences Système</b><br /> <br />
|
|---|
| 209 |
|
|---|
| 210 | <table class="noborder" width="100%"> <!--height="70%"-->
|
|---|
| 211 | <tr class="incremental">
|
|---|
| 212 | <td valign="top" class="noborder" width="33%">
|
|---|
| 213 | <ul>
|
|---|
| 214 | <li>Cliquer sur<i> Partage</i><br /> <br />
|
|---|
| 215 | </li>
|
|---|
| 216 | </ul>
|
|---|
| 217 | </td>
|
|---|
| 218 | <td valign ="top" class="noborder" width="33%">
|
|---|
| 219 | <ul>
|
|---|
| 220 | <li>Cocher la case <i>Xgrid</i></li>
|
|---|
| 221 | </ul>
|
|---|
| 222 |
|
|---|
| 223 | </td>
|
|---|
| 224 | <td valign="top" class="noborder" width="33%">
|
|---|
| 225 | <ul>
|
|---|
| 226 | <li>Cliquer sur <i>Configurer</i></li>
|
|---|
| 227 | </ul>
|
|---|
| 228 |
|
|---|
| 229 | </td>
|
|---|
| 230 | </tr>
|
|---|
| 231 | </table>
|
|---|
| 232 | </li>
|
|---|
| 233 | </ul>
|
|---|
| 234 |
|
|---|
| 235 | <table class="noborder" width="100%"> <!--height="70%"-->
|
|---|
| 236 | <tr class="incremental">
|
|---|
| 237 | <td valign="top" class="noborder" width="33%">
|
|---|
| 238 |
|
|---|
| 239 | <img src="XGRID_fichiers/XGRID-PS.jpg" width="240" height="212" alt="Schema1"/>
|
|---|
| 240 |
|
|---|
| 241 | </td>
|
|---|
| 242 | <td valign ="top" class="noborder" width="33%">
|
|---|
| 243 | <img src="XGRID_fichiers/XGRID-PS2.jpg" width="240" height="265" alt="Schema2"/>
|
|---|
| 244 | </td>
|
|---|
| 245 | <td valign="top" class="noborder" width="33%">
|
|---|
| 246 | <img src="XGRID_fichiers/XGRID-PS3.jpg" width="270" height="183" alt="Schema2"/>
|
|---|
| 247 | </td>
|
|---|
| 248 | </tr>
|
|---|
| 249 | </table>
|
|---|
| 250 |
|
|---|
| 251 | </div>
|
|---|
| 252 |
|
|---|
| 253 |
|
|---|
| 254 | <!-- Diapo -->
|
|---|
| 255 | <div class="slide">
|
|---|
| 256 |
|
|---|
| 257 | <h1>Poste de travail : Le contrÃŽleur</h1>
|
|---|
| 258 | <ul class="incremental">
|
|---|
| 259 | <li><b>Pré-requis du contrôleur</b> : ?<br /> </li>
|
|---|
| 260 | <li><b>Développement d'une interface graphique XgridLite</b><br /><a href="http://edbaskerville.com/software/xgridlite">http://edbaskerville.com/software/xgridlite<br /> <br /></a>
|
|---|
| 261 |
|
|---|
| 262 | <table class="noborder" width="100%">
|
|---|
| 263 | <tr class="incremental">
|
|---|
| 264 | <td valign="top" class="noborder" width="50%">
|
|---|
| 265 | <ul>
|
|---|
| 266 | <li>Préférences système<br /> <br /></li>
|
|---|
| 267 | </ul>
|
|---|
| 268 | <img src="XGRID_fichiers/PT-CONT-PF.jpg" width="360" height="300" alt="PT-CONF-PF"/>
|
|---|
| 269 | </td>
|
|---|
| 270 | <td class="noborder" width ="50%">
|
|---|
| 271 | <ul>
|
|---|
| 272 | <li>Démarrage du contrôleur<br /> <br /></li>
|
|---|
| 273 | </ul>
|
|---|
| 274 | <img src="XGRID_fichiers/PT-CONT.jpg" width="360" height="300" alt="PT-CONF"/>
|
|---|
| 275 | </td>
|
|---|
| 276 | </tr>
|
|---|
| 277 | </table>
|
|---|
| 278 | </li>
|
|---|
| 279 | </ul>
|
|---|
| 280 | </div>
|
|---|
| 281 |
|
|---|
| 282 |
|
|---|
| 283 | <!-- Diapo -->
|
|---|
| 284 | <div class="slide">
|
|---|
| 285 | <h1>Installation des composants : Lignes de commande</h1>
|
|---|
| 286 |
|
|---|
| 287 | <ul class="incremental">
|
|---|
| 288 | <li>Les commandes xgridctl doivent être lancées en root ou sudo (Super User Do)<br /> <br />
|
|---|
| 289 | <div class="callout">
|
|---|
| 290 |
|
|---|
| 291 | <ul>
|
|---|
| 292 |
|
|---|
| 293 | <li><p style="line-height:1.6"><font color="red">Syntaxe générale<br />
|
|---|
| 294 |
|
|---|
| 295 | <font color="black"><b>xgridctl status target on|off|start|stop|restart</b></font><br /><font color = "white">Le paramètre target désigne le contrôleur 'c' ou l'agent 'a'.</font>
|
|---|
| 296 | </font></p></li>
|
|---|
| 297 |
|
|---|
| 298 | <li><font color="red">Exemple : Démarrer l'agent</font><br />
|
|---|
| 299 | <font color="black"><b>$ sudo xgridctl a start<br /></b></font><br />
|
|---|
| 300 | </li>
|
|---|
| 301 |
|
|---|
| 302 | <li><font color="red">Aide</font><br />
|
|---|
| 303 | <font color="black"><b>man xgridctl</b></font>
|
|---|
| 304 |
|
|---|
| 305 | </li>
|
|---|
| 306 |
|
|---|
| 307 | </ul>
|
|---|
| 308 |
|
|---|
| 309 | </div>
|
|---|
| 310 | </li>
|
|---|
| 311 |
|
|---|
| 312 | </ul>
|
|---|
| 313 | </div>
|
|---|
| 314 |
|
|---|
| 315 |
|
|---|
| 316 | <!-- Diapo -->
|
|---|
| 317 |
|
|---|
| 318 | <div class="slide" id="cover">
|
|---|
| 319 | <p><br /> <br /><br /> <br /></p>
|
|---|
| 320 | <center><h2>Monitoring de la grille</h2></center>
|
|---|
| 321 |
|
|---|
| 322 | <p> </p>
|
|---|
| 323 | </div>
|
|---|
| 324 |
|
|---|
| 325 |
|
|---|
| 326 |
|
|---|
| 327 |
|
|---|
| 328 | <!-- Diapo -->
|
|---|
| 329 | <div class="slide">
|
|---|
| 330 |
|
|---|
| 331 | <h1>Monitoring des contrôleurs</h1>
|
|---|
| 332 | <ul class="incremental">
|
|---|
| 333 | <li><b>Interface graphique open source</b><br />
|
|---|
| 334 | <p align="justify"><i><font size ="4"><a href="http://www.apple.com/downloads/macosx/apple/macosx_updates/serveradmintools1047.html">http://www.apple.com/downloads/macosx/apple/macosx_updates/serveradmintools1047.html</a></font></i></p><br /><font color="#FF8C00" >XgridAdmin se connecte au contrôleur.</font><br /> <br /></li>
|
|---|
| 335 |
|
|---|
| 336 | <li><b>Gestion des contrôleurs</b> : Ajout, suppression et connexion. Plusieurs grilles peuvent être surveillées.<br /> <br />
|
|---|
| 337 | <table class="noborder"><!-- width="100%" height="100%"-->
|
|---|
| 338 | <tr class="incremental">
|
|---|
| 339 | <td valign="top" class="noborder">
|
|---|
| 340 | <center><img src="XGRID_fichiers/XGRID-ADM1.jpg" width="450" height="240" alt="Schema1"/></center>
|
|---|
| 341 | </td>
|
|---|
| 342 | </tr>
|
|---|
| 343 | <tr class="incremental">
|
|---|
| 344 | <td valign="top" class="noborder">
|
|---|
| 345 | <font color = black><b>Code Couleurs</b></font><br />
|
|---|
| 346 | <font color = black>-Vide : Le contrôleur est déconnecté</font> <br />
|
|---|
| 347 | <font color = green>-Vert : Le contrôleur est connecté</font>
|
|---|
| 348 | </td>
|
|---|
| 349 | </tr>
|
|---|
| 350 | </table>
|
|---|
| 351 | </li>
|
|---|
| 352 | </ul>
|
|---|
| 353 | </div>
|
|---|
| 354 |
|
|---|
| 355 |
|
|---|
| 356 | <!-- Diapo -->
|
|---|
| 357 | <div class="slide">
|
|---|
| 358 |
|
|---|
| 359 | <h1>Monitoring des agents</h1>
|
|---|
| 360 | <ul>
|
|---|
| 361 | <li><b>Gestion des agents</b> : Nombre et statuts, puissance disponible, ajout et suppression.<br /> <br />
|
|---|
| 362 | <table class="noborder">
|
|---|
| 363 | <tr class="incremental">
|
|---|
| 364 | <td valign="top" class="noborder">
|
|---|
| 365 | <center><img src="XGRID_fichiers/XGRID-ADM2.jpg" width="550" height="300" alt="Schema1"/></center><br />
|
|---|
| 366 | </td>
|
|---|
| 367 | </tr>
|
|---|
| 368 | <tr class="incremental">
|
|---|
| 369 | <td valign="top" class="noborder">
|
|---|
| 370 | <font color = "black"><b>Code Couleurs</b></font><br />
|
|---|
| 371 | <font color = "black">-Vide : L'agent est déconnecté</font> <br />
|
|---|
| 372 | <font color = "green">-Vert : L'agent est en cours d'éxécution</font><br />
|
|---|
| 373 | <font color = "#FFCC00">-Jaune : L'agent est disponible mais pas en cours d'éxécution</font><br />
|
|---|
| 374 | <font color = "red">-Rouge : L'agent est indisponible</font>
|
|---|
| 375 |
|
|---|
| 376 | </td>
|
|---|
| 377 | </tr>
|
|---|
| 378 | </table>
|
|---|
| 379 | </li>
|
|---|
| 380 | </ul>
|
|---|
| 381 | </div>
|
|---|
| 382 |
|
|---|
| 383 | <!-- Diapo -->
|
|---|
| 384 | <div class="slide">
|
|---|
| 385 | <h1>Monitoring des jobs et des tâches</h1>
|
|---|
| 386 | <ul>
|
|---|
| 387 | <li><b>Gestion des jobs et tâches</b> : Statuts des jobs et nombre de tâches. Suppression, arrêt et redémarrage des tâches.<br /> <br />
|
|---|
| 388 | <table class="noborder">
|
|---|
| 389 | <tr class="incremental">
|
|---|
| 390 | <td valign="top" class="noborder">
|
|---|
| 391 | <img src="XGRID_fichiers/XGRID-ADM3.jpg" width="550" height="300" alt="Schema1"/><br /> <br />
|
|---|
| 392 | </td>
|
|---|
| 393 | </tr>
|
|---|
| 394 | <tr class="incremental">
|
|---|
| 395 | <td class="noborder">
|
|---|
| 396 | <font color = "black"><b>Code Couleurs</b></font><br />
|
|---|
| 397 | <font color = "black">-Vide : La tâche est en attente</font><br />
|
|---|
| 398 | <font color = "gray">-Gris : L'envoi de la tâche est en cours</font><br />
|
|---|
| 399 | <font color = "green">-Vert : La tâche est en cours </font><br />
|
|---|
| 400 | <font color = "red">-Rouge : La tâche a échoué ou a été annulée</font>
|
|---|
| 401 |
|
|---|
| 402 | <!--td valign="top" class="noborder"></td-->
|
|---|
| 403 |
|
|---|
| 404 | </td>
|
|---|
| 405 | </tr>
|
|---|
| 406 | </table>
|
|---|
| 407 | </li>
|
|---|
| 408 | </ul>
|
|---|
| 409 | </div>
|
|---|
| 410 |
|
|---|
| 411 |
|
|---|
| 412 | <!-- Diapo -->
|
|---|
| 413 |
|
|---|
| 414 | <div class="slide" id="cover">
|
|---|
| 415 | <p><br /> <br /><br /> <br /></p>
|
|---|
| 416 | <center><h2>Lignes de commande</h2></center>
|
|---|
| 417 |
|
|---|
| 418 | <p> </p>
|
|---|
| 419 | </div>
|
|---|
| 420 |
|
|---|
| 421 |
|
|---|
| 422 |
|
|---|
| 423 | <!-- Diapo -->
|
|---|
| 424 | <div class="slide">
|
|---|
| 425 |
|
|---|
| 426 | <h1>Lignes de commandes : La grille</h1>
|
|---|
| 427 | <ul class="incremental">
|
|---|
| 428 | <li>Pré-requis du client : Mac OS X 10.4 ou Mac OS X Server 10.4<br /> <br /></li>
|
|---|
| 429 | <li><b>Syntaxe générale </b><font color="#FF8C00"><b>xgrid options action parameters</b></font><br /> <br />
|
|---|
| 430 | <ul>
|
|---|
| 431 |
|
|---|
| 432 | <li>Options : -h (Hostname ou adresse IP) -auth (SSO) -p (Mot de passe)<br /> <br />
|
|---|
| 433 | <div class="callout">
|
|---|
| 434 | <ul>
|
|---|
| 435 | <li>Exemple : Afficher la liste des grilles<br />
|
|---|
| 436 | <font color="black"><b>$ xgrid -h xgridsrv </b><b><font color ="red">-grid </font></b><b>list</b><br />
|
|---|
| 437 | <b>{gridList = (0); }</b></font><br /> <br />
|
|---|
| 438 | <font color = "white">Il existe une grille Xgrid avec un ID=0.</font><br /> <br /></li>
|
|---|
| 439 | <li>Aide<br />
|
|---|
| 440 | <font color="black"><b>man xgrid</b></font></li>
|
|---|
| 441 | </ul>
|
|---|
| 442 | </div>
|
|---|
| 443 | </li>
|
|---|
| 444 | </ul>
|
|---|
| 445 |
|
|---|
| 446 | <table class="noborder">
|
|---|
| 447 | <tr class="incremental">
|
|---|
| 448 | <td valign="top" class="noborder"><br />
|
|---|
| 449 | <ul>
|
|---|
| 450 | <li><b>Actions disponibles </b>
|
|---|
| 451 | <ul>
|
|---|
| 452 | <li>Afficher les ID des grilles<br /></li>
|
|---|
| 453 | <li>Renommer les grilles<br /></li>
|
|---|
| 454 | <li>Ajouter une grille<br /></li>
|
|---|
| 455 | <li>Supprimer une grille</li>
|
|---|
| 456 | <li>Afficher les attributes de la grille</li>
|
|---|
| 457 | </ul>
|
|---|
| 458 | </li>
|
|---|
| 459 | </ul>
|
|---|
| 460 | </td>
|
|---|
| 461 |
|
|---|
| 462 | <td valign="top" class="noborder">
|
|---|
| 463 |
|
|---|
| 464 | <div class="callout" align ="left">
|
|---|
| 465 | <ul>
|
|---|
| 466 | <li><b>Commandes disponibles</b>
|
|---|
| 467 | <ul>
|
|---|
| 468 | <li>-grid list<br /></li>
|
|---|
| 469 | <li>-grid rename<br /></li>
|
|---|
| 470 | <li>-grid add<br /></li>
|
|---|
| 471 | <li>-grid delete<br /></li>
|
|---|
| 472 | <li>-grid attributes<br /></li>
|
|---|
| 473 | </ul>
|
|---|
| 474 | </li>
|
|---|
| 475 | </ul>
|
|---|
| 476 | </div>
|
|---|
| 477 | </td>
|
|---|
| 478 | </tr>
|
|---|
| 479 | </table>
|
|---|
| 480 |
|
|---|
| 481 | </li>
|
|---|
| 482 | </ul>
|
|---|
| 483 | </div>
|
|---|
| 484 |
|
|---|
| 485 |
|
|---|
| 486 | <!-- Diapo -->
|
|---|
| 487 | <div class="slide">
|
|---|
| 488 | <h1>Lignes de commandes : Exécution de binaires (1/4)</h1>
|
|---|
| 489 | <ul class="incremental">
|
|---|
| 490 |
|
|---|
| 491 |
|
|---|
| 492 | <li>Trois possibilités<br /> <br />
|
|---|
| 493 | <ul>
|
|---|
| 494 | <li>1) Envoi du binaire de manière synchrone
|
|---|
| 495 | <ul>
|
|---|
| 496 | <li><b>Syntaxe générale </b><font color="#FF8C00"><b>xgrid options -job</b> <font color = "red"><b>run</b></font><b> options commande paramètres</b></font><br /> <br /></li>
|
|---|
| 497 |
|
|---|
| 498 | </ul>
|
|---|
| 499 | </li>
|
|---|
| 500 |
|
|---|
| 501 |
|
|---|
| 502 | <li>2) Envoi du binaire de manière asynchrone
|
|---|
| 503 | <ul>
|
|---|
| 504 | <li><b>Syntaxe générale </b><font color="#FF8C00"><b>xgrid options -job <font color = "red">submit</font> options commande paramètres</b></font><br /> <br /></li>
|
|---|
| 505 | </ul>
|
|---|
| 506 |
|
|---|
| 507 |
|
|---|
| 508 | <div class="callout : weight-font :bold;">
|
|---|
| 509 | <ul>
|
|---|
| 510 | <li>Exemple : <font color ="black">$ xgrid -h xgridsrv -job run /bin/echo "Hello"</font><br /> <br /></li>
|
|---|
| 511 | <li>Résultat obtenu : <font color ="white">Hello</font><br /> <br /></li>
|
|---|
| 512 | <li>Exemple : <font color ="black">$ xgrid -h xgridsrv -job submit /bin/echo "Hello"</font><br /> <br /></li>
|
|---|
| 513 | <li>Résultat obtenu : <font color ="white">{jobIdentifier = 261; }</font><br /> <br /></li>
|
|---|
| 514 | </ul>
|
|---|
| 515 | </div>
|
|---|
| 516 | </li>
|
|---|
| 517 | </ul>
|
|---|
| 518 | </li>
|
|---|
| 519 |
|
|---|
| 520 |
|
|---|
| 521 | </ul>
|
|---|
| 522 | </div>
|
|---|
| 523 |
|
|---|
| 524 |
|
|---|
| 525 | <!-- Diapo -->
|
|---|
| 526 | <div class="slide">
|
|---|
| 527 | <h1>Lignes de commandes : Exécution de binaires (2/4)</h1>
|
|---|
| 528 | <ul class="incremental">
|
|---|
| 529 | <li>3) Envoi d'un fichier
|
|---|
| 530 | <ul>
|
|---|
| 531 | <li>Les binaires et/ou les fichiers fournis en entrée et/ou dans la ligne de commande sont copiés sur le contrôleur et les agents.
|
|---|
| 532 | <ul>
|
|---|
| 533 | <li>-job submit/run <b>-si</b>(stdin Fichier en entrée) ou <b>-in</b>(indir Répertoire en entrée)</li>
|
|---|
| 534 | </ul>
|
|---|
| 535 |
|
|---|
| 536 | </li>
|
|---|
| 537 |
|
|---|
| 538 | <li>Script shell, PERL etc...</li>
|
|---|
| 539 |
|
|---|
| 540 |
|
|---|
| 541 | <li> Fichier plist<br />
|
|---|
| 542 | <ul>
|
|---|
| 543 | <li>Création d'un fichier Plist à partir de <b>-job specification</b><br /> <br />
|
|---|
| 544 | <div class="callout"><b>
|
|---|
| 545 | <font color="black">$ xgrid -h xgridsrv -job submit /bin/echo "hello"</font><br/>
|
|---|
| 546 | <font color ="white">{jobIdentifier = 351; }</font><br />
|
|---|
| 547 | <font color="black">$ xgrid -h xgridsrv -job specification -id 351</font><br /> <font color = "white">
|
|---|
| 548 | {<br />
|
|---|
| 549 | jobSpecification = {<br />
|
|---|
| 550 | applicationIdentifier = "com.apple.xgrid.cli"; <br />
|
|---|
| 551 | inputFiles = {}; <br />
|
|---|
| 552 | name = "/bin/echo"; <br />
|
|---|
| 553 | submissionIdentifier = abc; <br />
|
|---|
| 554 | taskSpecifications = {0 = {arguments = (hello); command = "/bin/echo"; }; }; <br />
|
|---|
| 555 | }; <br />
|
|---|
| 556 | }</font><br />
|
|---|
| 557 | <font color="black">$ xgrid -h xgridsrv -job specification -id 351 > batch-hello.plist</font><br />
|
|---|
| 558 | <font color="black">$ xgrid -h xgridsrv -job batch batch-hello.plist </font></b>
|
|---|
| 559 | </div>
|
|---|
| 560 | </li>
|
|---|
| 561 | </ul>
|
|---|
| 562 | </li>
|
|---|
| 563 | </ul>
|
|---|
| 564 | </li>
|
|---|
| 565 | </ul>
|
|---|
| 566 | </div>
|
|---|
| 567 |
|
|---|
| 568 |
|
|---|
| 569 | <!-- Diapo -->
|
|---|
| 570 | <div class="slide">
|
|---|
| 571 | <h1>Lignes de commandes : Exécution de binaires (3/4)</h1>
|
|---|
| 572 |
|
|---|
| 573 |
|
|---|
| 574 | <ul class="incremental">
|
|---|
| 575 | <li>Envoir d'un fichier (suite)
|
|---|
| 576 | <ul>
|
|---|
| 577 | <li>Fichier Plist (suite)
|
|---|
| 578 | <ul>
|
|---|
| 579 | <li>Envoi d'un binaire avec n paramètres => n tâches.<br /> <br />
|
|---|
| 580 | <div class="callout">
|
|---|
| 581 | <font color="black">$ more batch-hello.plist</font><br /><font color = "white">
|
|---|
| 582 | {<br />
|
|---|
| 583 | jobSpecification = {<br />
|
|---|
| 584 | applicationIdentifier = "com.apple.xgrid.cli"; <br />
|
|---|
| 585 | inputFiles = {}; <br />
|
|---|
| 586 | name = "/bin/echo"; <br />
|
|---|
| 587 | submissionIdentifier = abc; <br />
|
|---|
| 588 | <font color = "red">taskSpecifications = {<br />
|
|---|
| 589 | 0 = {arguments = (hello); command = "/bin/echo"; };<br />
|
|---|
| 590 | 1 = {arguments = (Bonjour); command = "/bin/echo"; };<br />
|
|---|
| 591 | 2 = {arguments = (Help); command = "/bin/echo"; };<br />
|
|---|
| 592 | }; <br />
|
|---|
| 593 | }; <br />
|
|---|
| 594 | }</font></font><br /> <br />
|
|---|
| 595 | <font color="black">$ xgrid -h xgridsrv -job batch batch-hello.plist </font><br />
|
|---|
| 596 |
|
|---|
| 597 | <font color = "white"> {jobIdentifier = 443; }</font><br /> <br />
|
|---|
| 598 | <font color="black">$ xgrid -h xgridsrv -job results -id 443</font><br />
|
|---|
| 599 | <font color = "white">Hello<br />
|
|---|
| 600 | Bonjour<br />
|
|---|
| 601 | Help<br />
|
|---|
| 602 | </font>
|
|---|
| 603 | </div>
|
|---|
| 604 | </li>
|
|---|
| 605 | </ul>
|
|---|
| 606 | </li>
|
|---|
| 607 | </ul>
|
|---|
| 608 | </li>
|
|---|
| 609 | </ul>
|
|---|
| 610 | </div>
|
|---|
| 611 |
|
|---|
| 612 | <!-- Diapo -->
|
|---|
| 613 | <div class="slide">
|
|---|
| 614 | <h1>Lignes de commandes : Exécution de binaires (4/4)</h1>
|
|---|
| 615 | <ul class="incremental">
|
|---|
| 616 | <li>
|
|---|
| 617 | <ul>
|
|---|
| 618 |
|
|---|
| 619 |
|
|---|
| 620 |
|
|---|
| 621 | <li>Fichier xml<br />
|
|---|
| 622 | <ul>
|
|---|
| 623 | <li>Envoi d'un binaire avec n paramètres => n tâches.</li>
|
|---|
| 624 | <li>Conversion d'un fichier plist en fichier xml.<br /> <br />
|
|---|
| 625 | <div class="callout">
|
|---|
| 626 |
|
|---|
| 627 | <font color="black">$ plutil -convert xml1 batch-hello.plist </font>
|
|---|
| 628 | <font color ="red">=> Le fichier est converti (réécriture du fichier) en xml.</font><br />
|
|---|
| 629 | <font color ="black">$ more batch-hello.plist</font><br />
|
|---|
| 630 | <font color = "white" size = "2">
|
|---|
| 631 |
|
|---|
| 632 | ...<br /><!--<?xml version="1.0" encoding="UTF-8"?><br />
|
|---|
| 633 | <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><br />
|
|---|
| 634 | <plist version="1.0"><br />
|
|---|
| 635 | <dict><br />
|
|---|
| 636 | <key>jobSpecification</key><br />
|
|---|
| 637 | <dict><br />
|
|---|
| 638 | <key>applicationIdentifier</key><br />
|
|---|
| 639 | <string>com.apple.xgrid.cli</string><br />
|
|---|
| 640 | <key>inputFiles</key><br />
|
|---|
| 641 | <dict/><br />
|
|---|
| 642 | <key>name</key><br />
|
|---|
| 643 | <string>/bin/echo</string><br />
|
|---|
| 644 | <key>submissionIdentifier</key><br />
|
|---|
| 645 | <string>abc</string><br /> <br /-->
|
|---|
| 646 | <font color="red"><key>taskSpecifications</key></font><br />
|
|---|
| 647 | <dict><br />
|
|---|
| 648 |
|
|---|
| 649 | <font color="red"><key>0</key></font><br />
|
|---|
| 650 | <dict><br />
|
|---|
| 651 | <key>arguments</key><br />
|
|---|
| 652 | <array><br />
|
|---|
| 653 | <font color="red"><string>Hello</string></font><br />
|
|---|
| 654 | </array><br />
|
|---|
| 655 | <key>command</key><br />
|
|---|
| 656 | <font color="red"><string>/bin/echo</string></font><br />
|
|---|
| 657 | </dict><br />
|
|---|
| 658 |
|
|---|
| 659 | <font color="red"><key>1</key></font><br />
|
|---|
| 660 | <dict><br />
|
|---|
| 661 | <key>arguments</key><br />
|
|---|
| 662 | <array><br />
|
|---|
| 663 | <font color="red"><string>Bonjour</string></font><br />
|
|---|
| 664 | </array><br />
|
|---|
| 665 | <key>command</key><br />
|
|---|
| 666 | <font color="red"><string>/bin/echo</string></font><br />
|
|---|
| 667 | </dict><br /> <br />
|
|---|
| 668 |
|
|---|
| 669 | <!--<key>2</key><br />
|
|---|
| 670 | <dict><br />
|
|---|
| 671 | <key>arguments</key><br />
|
|---|
| 672 | <array><br />
|
|---|
| 673 | <string>Help</string><br />
|
|---|
| 674 | yep
|
|---|
| 675 | </array><br />
|
|---|
| 676 | <key>command</key><br />
|
|---|
| 677 | <string>/bin/echo</string><br />
|
|---|
| 678 | </dict><br /> <br /-->
|
|---|
| 679 |
|
|---|
| 680 | <font color="red">Etc... En fonction du nombre de tâches.</font><br /> <br />
|
|---|
| 681 | ...
|
|---|
| 682 | <!--</dict><br />
|
|---|
| 683 | </dict><br />
|
|---|
| 684 | </dict><br />
|
|---|
| 685 | </plist><br /-->
|
|---|
| 686 | </font>
|
|---|
| 687 |
|
|---|
| 688 | </div>
|
|---|
| 689 |
|
|---|
| 690 | </li>
|
|---|
| 691 | </ul>
|
|---|
| 692 |
|
|---|
| 693 | </li>
|
|---|
| 694 |
|
|---|
| 695 | </ul>
|
|---|
| 696 | </li>
|
|---|
| 697 |
|
|---|
| 698 |
|
|---|
| 699 | </ul>
|
|---|
| 700 | </div>
|
|---|
| 701 |
|
|---|
| 702 |
|
|---|
| 703 |
|
|---|
| 704 |
|
|---|
| 705 |
|
|---|
| 706 |
|
|---|
| 707 |
|
|---|
| 708 |
|
|---|
| 709 |
|
|---|
| 710 |
|
|---|
| 711 | <!-- Diapo -->
|
|---|
| 712 |
|
|---|
| 713 | <div class="slide">
|
|---|
| 714 | <h1>Lignes de commandes : Les jobs</h1>
|
|---|
| 715 | <ul class="incremental">
|
|---|
| 716 |
|
|---|
| 717 |
|
|---|
| 718 | <li>Résultat du job
|
|---|
| 719 | <ul>
|
|---|
| 720 | <li><b>Syntaxe générale </b><font color="#FF8C00"><b>xgrid options -job results -id (JobId) paramètres</b></font><br />
|
|---|
| 721 | <div class="callout">
|
|---|
| 722 | <ul>
|
|---|
| 723 | <li>Exemple : <font color ="black">$ xgrid -h xgridsrv -job results -id 261</font><br /></li>
|
|---|
| 724 | <li>Résultat obtenu : <font color ="white">Hello</font><br /></li>
|
|---|
| 725 |
|
|---|
| 726 | </ul>
|
|---|
| 727 | </div>
|
|---|
| 728 | </li>
|
|---|
| 729 | </ul>
|
|---|
| 730 | </li>
|
|---|
| 731 | <li>Statut du job
|
|---|
| 732 | <ul>
|
|---|
| 733 | <li><b>Syntaxe générale </b><font color="#FF8C00"><b>xgrid options -job attributes -id (JobId) paramètres</b></font><br />
|
|---|
| 734 |
|
|---|
| 735 | <div class="callout">
|
|---|
| 736 | <ul>
|
|---|
| 737 | <li>Exemple : <font color ="black">$ xgrid -h xgridsrv -job attributes -id 261</font><br /></li>
|
|---|
| 738 | <li>Résultat obtenu : <font color ="white"><br />{<br />
|
|---|
| 739 | jobAttributes = {<br />
|
|---|
| 740 | activeCPUPower = 0;<br />
|
|---|
| 741 | applicationIdentifier = "com.apple.xgrid.cli";<br />
|
|---|
| 742 | dateNow = 1970-01-12 05:12:33 +0100;<br />
|
|---|
| 743 | dateStarted = 1970-01-12 05:07:33 +0100;<br />
|
|---|
| 744 | dateStopped = 1970-01-12 05:07:34 +0100;<br />
|
|---|
| 745 | dateSubmitted = 1970-01-12 05:07:32 +0100;<br />
|
|---|
| 746 | jobStatus = <font color = "red"><b>Finished;</b></font><br />
|
|---|
| 747 | name = "/bin/echo";<br />
|
|---|
| 748 | percentDone = 100;<br />
|
|---|
| 749 | taskCount = 1;<br />
|
|---|
| 750 | undoneTaskCount = 0;<br />
|
|---|
| 751 | };<br />
|
|---|
| 752 | }</font><br /></li>
|
|---|
| 753 |
|
|---|
| 754 | </ul>
|
|---|
| 755 | </div>
|
|---|
| 756 |
|
|---|
| 757 |
|
|---|
| 758 |
|
|---|
| 759 | </ul>
|
|---|
| 760 | </li>
|
|---|
| 761 | </ul>
|
|---|
| 762 | </div>
|
|---|
| 763 |
|
|---|
| 764 |
|
|---|
| 765 |
|
|---|
| 766 |
|
|---|
| 767 | <!-- Diapo -->
|
|---|
| 768 | <div class="slide">
|
|---|
| 769 |
|
|---|
| 770 | <h1>Sources</h1>
|
|---|
| 771 | <ul>
|
|---|
| 772 | <li><a href="http://www.wooster.edu/physics/cowcpp/Xgrid/XgridIntroduction.htm">http://www.wooster.edu/physics/cowcpp/Xgrid/XgridIntroduction.htm</a><br /> <br /></li>
|
|---|
| 773 | <li><a href="http://mind.qbi.uq.edu.au/xgrid/index.html">http://mind.qbi.uq.edu.au/xgrid/index.html</a><br /> <br /></li>
|
|---|
| 774 | <li><a href="http://images.apple.com/server/pdfs/Xgrid_Admin_v10.4.pdf">http://images.apple.com/server/pdfs/Xgrid_Admin_v10.4.pdf</a><br /> <br /></li>
|
|---|
| 775 | </ul>
|
|---|
| 776 | </div>
|
|---|
| 777 |
|
|---|
| 778 | </body>
|
|---|
| 779 | </html>
|
|---|