Skip to content
Snippets Groups Projects
Commit c2a26d79 authored by Teun Docter's avatar Teun Docter Committed by Danny Auble
Browse files

Documentation about PrologFlags

parent 1f3baa5f
No related branches found
No related tags found
No related merge requests found
...@@ -163,6 +163,7 @@ function displayfile() ...@@ -163,6 +163,7 @@ function displayfile()
"#PrivateData=jobs <br>" + "#PrivateData=jobs <br>" +
"ProctrackType=proctrack/" + get_radio_value(document.config.proctrack_type) + "<br>" + "ProctrackType=proctrack/" + get_radio_value(document.config.proctrack_type) + "<br>" +
get_field("Prolog",document.config.prolog) + "<br>" + get_field("Prolog",document.config.prolog) + "<br>" +
"#PrologFlags= <br>" +
"#PrologSlurmctld= <br>" + "#PrologSlurmctld= <br>" +
"#PropagatePrioProcess=0 <br>" + "#PropagatePrioProcess=0 <br>" +
"#PropagateResourceLimits= <br>" + "#PropagateResourceLimits= <br>" +
......
...@@ -666,6 +666,28 @@ sdb: # /etc/init.d/slurm start ...@@ -666,6 +666,28 @@ sdb: # /etc/init.d/slurm start
login: # /etc/init.d/slurm start login: # /etc/init.d/slurm start
</pre> </pre>
<h3>Cluster Compatibility Mode</h3>
<p>It is possible to use SLURM to allocate resources for jobs
that run in Cray's Cluster Compatibility Mode (CCM). In order
to set this up, first install the CCM packages according to Cray
documentation. As part of the CCM packages, a prologue and epilogue
script will be installed. Add/change the following flags in slurm.conf
to enable the scripts:</p>
<pre>
PrologFlags=Alloc
Prolog=/opt/cray/ccm/default/etc/slurm.prolog.frontend
Epilog=/opt/cray/ccm/default/etc/slurm.epilog.frontend
</pre>
<p>To run jobs in CCM, a SLURM partition should be created in slurm.conf.
The name of that partition should be put into the CCM_QUEUES variable in
this file: /etc/opt/cray/ccm/ccm.conf</p>
<p>Any job that requests resources from said partition will then run in
Cluster Compatibility Mode.</p>
<h3>launch/aprun plugin configuration</h3> <h3>launch/aprun plugin configuration</h3>
<p>By default the launch plugin on a Cray is on set <p>By default the launch plugin on a Cray is on set
......
...@@ -212,8 +212,12 @@ for use.</p> ...@@ -212,8 +212,12 @@ for use.</p>
<p>The <i>salloc</i> and <i>srun</i> commands which create a resource <p>The <i>salloc</i> and <i>srun</i> commands which create a resource
allocation automatically wait for the nodes to power up in SLURM version 2.2. allocation automatically wait for the nodes to power up in SLURM version 2.2.
When using earlier versions of SLURM, <i>salloc</i> will return immediately When using earlier versions of SLURM, <i>salloc</i> will return immediately
after a resource allocation is made and one can execute "<i>srun /bin/true</i>" after a resource allocation is made, and one can execute "<i>srun /bin/true</i>"
to insure that all nodes are booted and ready for use.</p> to ensure that all nodes are booted and ready for use.</p>
<p>Execution of the <i>salloc</i> command also triggers execution of the <i>Prolog</i>
script if the <i>Alloc</i> flag is set in <i>PrologFlags</i>. In this case <i>salloc</i>
waits for script termination before returning control to the user.</p>
<h2>Fault Tolerance</h2> <h2>Fault Tolerance</h2>
......
...@@ -54,7 +54,9 @@ allocations, when and where they run.</p> ...@@ -54,7 +54,9 @@ allocations, when and where they run.</p>
</td> </td>
<td width="40%"> <td width="40%">
<p align="LEFT"><font style="font-size: 8pt" size="1"> <p align="LEFT"><font style="font-size: 8pt" size="1">
First job or job step initiation on that node</font></p> First job or job step initiation on that node (by default);
PrologFlags=Alloc will force the script to be executed at
job allocation</font></p>
</td> </td>
</tr> </tr>
<tr> <tr>
......
...@@ -1519,6 +1519,22 @@ If the prolog fails (returns a non\-zero exit code), this will result in the ...@@ -1519,6 +1519,22 @@ If the prolog fails (returns a non\-zero exit code), this will result in the
node being set to a DOWN state and the job requeued to executed on another node. node being set to a DOWN state and the job requeued to executed on another node.
See \fBProlog and Epilog Scripts\fR for more information. See \fBProlog and Epilog Scripts\fR for more information.
.TP
\fBPrologFlags\fR
Flags to control the Prolog behavior. By default no flags are set.
Currently the only option defined is:
.RS
.TP 6
\fBAlloc\fR
If set, the Prolog script will be executed at job allocation. By default,
Prolog is executed just before the task is launched. Therefore, when salloc
is started, no Prolog is executed. \fBAlloc\fR is useful for preparing things
before a user starts to use any allocated resources.
In particular, this flag is needed on a Cray system when cluster compatibility
mode is enabled.
.TP
.RE
.TP .TP
\fBPrologSlurmctld\fR \fBPrologSlurmctld\fR
Fully qualified pathname of a program for the slurmctld daemon to execute Fully qualified pathname of a program for the slurmctld daemon to execute
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment