HP XC System Software Installation Guide Version 3.2
J Customizing the SLURM Configuration
This appendix describes customizations you can make to the
/hptc_cluster/slurm/etc/slurm.conf SLURM configuration file. It addresses the following
topics:
• “Assigning Features” (page 229)
• “Creating Additional SLURM Partitions” (page 229)
• “Required Customizations for SVA” (page 229)
J.1 Assigning Features
Assigning features to nodes is common if the compute resources of the cluster are not consistent.
For example, if compute nodes n[1-20] have significantly more memory than the rest of the
nodes, assign a bigmem feature to nodes n[1-20], and assign a lowmem feature to the rest of
the nodes. To do this, add Features to the NodeName entries to look similar to this:
NodeName=n[1-20] Procs=2 RealMemory=4096 Features=bigmem
NodeName=n[21-46] Procs=2 RealMemory=2048 Features=lowmem
Another customization you might want to make is to create two distinguishable sets of nodes,
such as a prod set of nodes for production use and a test set of nodes for testing use.
In general, when you assign features to SLURM nodes, the nodes can be used in job submissions
to request that the job run within a specific set of nodes. These features are recognized by LSF-HPC
with SLURM and can be used in LSF queue definitions as well as user job submissions.
For more information about assigning features to SLURM, see the HP XC System Software
Administration Guide and HP XC System Software User's Guide.
J.2 Creating Additional SLURM Partitions
Another common customization to the SLURM configuration is to create additional SLURM
partitions. By default, an lsf partition is created with settings that prevent non-root users from
requesting node allocations directly from SLURM. You might want to move a small set of nodes
from the lsf partition into a new, more user-accessible partition.
For more information about configuring SLURM partitions, see slurm.conf(8) and the comments
in the slurm.conf file.
J.3 Required Customizations for SVA
One of the following SLURM customizations is required for SVA. How you customize the
slurm.conf file depends on whether you installed LSF.
SVA with SLURM Only, No LSF
If you did not install LSF, make the following customizations for SVA:
1. Use the text editor of your choice to edit the /hptc_cluster/slurm/etc/slurm.conf
file.
2. Change the following line from this:
PartitionName=lsf RootOnly=YES Shared=FORCE Nodes=nodelist
To this:
PartitionName=lsf Default=yes RootOnly=NO Shared=NO Nodes=nodelist
Do not include the head node in the nodelist.
3. Add the following line to the prolog/epilog section of the slurm.conf file:
Epilog=/opt/sva/sbin/sva_epilog.clean
4. Save your changes to the file and exit the text editor.
J.1 Assigning Features 229