<div dir="ltr">That's exactly what I needed! <div><br></div><div>Thank you,</div><div>David</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 4, 2022 at 1:17 PM Brian Andrus <<a href="mailto:toomuchit@gmail.com">toomuchit@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>I think you are looking at nodesets:</p>
<p><br>
</p>
<p>From the slurm.conf man:</p>
<p>NODESET CONFIGURATION<br>
The nodeset configuration allows you to define a name for a
specific set of nodes which can be used to simplify the partition
configuration section, especially for heterogenous or condo-style
systems. Each nodeset may be defined by an explicit list of nodes,
and/or by filtering the nodes by a particular configured feature.
If both Feature= and Nodes= are used the nodeset shall be the
union of the two subsets. Note that the nodesets are only used to
simplify the partition definitions at present, and are not usable
outside of the partition configuration.<br>
Feature<br>
All nodes with this single feature will be included as part of
this nodeset.<br>
Nodes<br>
List of nodes in this set.<br>
NodeSet<br>
Unique name for a set of nodes. Must not overlap with any
NodeName definitions.<br>
</p>
<p>Brian Andrus <br>
</p>
<p><br>
</p>
<div>On 4/4/2022 1:08 PM, David Henkemeyer
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">If I have a large number of heterogeneously named
nodes in my cluster, and several partitions that include the
same large subset of those nodes, I would love to be able to
define an env var, and reference that in each partition
specification. For instance, say we have the following:<br>
<br>
<font face="monospace">PartitionName=hipri
Nodes=node1,node2,node3,foo1,foo2,bar1,bar3,linux1,linux2,ganymede1,jupiter1,mars1 Default=YES
MaxTime=INFINITE State=UP PriorityJobFactor=10000<br>
</font>
<div><font face="monospace">PartitionName=lopri
Nodes=node1,node2,node3,foo1,foo2,bar1,bar3,linux1,linux2,ganymede1,jupiter1,mars1
MaxTime=INFINITE State=UP <br>
PartitionName=interactive
Nodes=node1,node2,node3,foo1,foo2,bar1,bar3,linux1,linux2,ganymede1,jupiter1,mars1
MaxTime=INFINITE State=UP PriorityJobFactor=20000</font></div>
<div>
<div><font face="monospace">PartitionName=perf
Nodes=perf_node1,perf_node2,snoopy,linus,sally
MaxTime=INFINITE State=UP PriorityJobFactor=20000</font></div>
<etc><br>
<br>
I would love to be able to say something like:</div>
<div><br>
NODEPOOL1=node1,node2,node3,foo1,foo2,bar1,bar3,linux1,linux2,ganymede1,jupiter1,mars1</div>
<div>PERFNODES=perf_node1,perf_node2,snoopy,linus,sally</div>
<div><br>
<font face="monospace">PartitionName=hipri
Nodes=$NODEPOOL1 MaxTime=INFINITE </font><span style="font-family:monospace">Default=YES</span><span style="font-family:monospace"> </span><span style="font-family:monospace">State=UP PriorityJobFactor=10000</span></div>
<div>
<div><font face="monospace">PartitionName=lopri
Nodes=$NODEPOOL1 MaxTime=INFINITE State=UP <br>
PartitionName=interactive Nodes=$NODEPOOL1
MaxTime=INFINITE State=UP PriorityJobFactor=20000<br>
</font></div>
</div>
<div><font face="monospace">PartitionName=perf
Nodes=$PERFNODES MaxTime=INFINITE
State=UP PriorityJobFactor=20000</font><br>
</div>
<div><br>
</div>
<div>Is this possible? </div>
<div><br>
</div>
<div>Thanks,</div>
<div>David</div>
</div>
</blockquote>
</div>
</blockquote></div>