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:

PartitionName=hipri
 
Nodes=node1,node2,node3,foo1,foo2,bar1,bar3,linux1,linux2,ganymede1,jupiter1,mars1
Default=YES
MaxTime=INFINITE State=UP PriorityJobFactor=10000
PartitionName=lopri
 
Nodes=node1,node2,node3,foo1,foo2,bar1,bar3,linux1,linux2,ganymede1,jupiter1,mars1
MaxTime=INFINITE State=UP
PartitionName=interactive
Nodes=node1,node2,node3,foo1,foo2,bar1,bar3,linux1,linux2,ganymede1,jupiter1,mars1
MaxTime=INFINITE State=UP PriorityJobFactor=20000
PartitionName=perf        Nodes=perf_node1,perf_node2,snoopy,linus,sally
MaxTime=INFINITE State=UP PriorityJobFactor=20000
<etc>

I would love to be able to say something like:

NODEPOOL1=node1,node2,node3,foo1,foo2,bar1,bar3,linux1,linux2,ganymede1,jupiter1,mars1
PERFNODES=perf_node1,perf_node2,snoopy,linus,sally

PartitionName=hipri       Nodes=$NODEPOOL1 MaxTime=INFINITE Default=YES
State=UP PriorityJobFactor=10000
PartitionName=lopri       Nodes=$NODEPOOL1 MaxTime=INFINITE State=UP
PartitionName=interactive Nodes=$NODEPOOL1 MaxTime=INFINITE
State=UP PriorityJobFactor=20000
PartitionName=perf        Nodes=$PERFNODES MaxTime=INFINITE
State=UP PriorityJobFactor=20000

Is this possible?

Thanks,
David

Reply via email to