HP XC System Software Installation Guide Version 4.0

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 239)
“Creating Additional SLURM Partitions” (page 239)
“Customizing SLURM for SVA” (page 239)
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
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 the 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 Customizing SLURM 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. Make sure the head node is not in the node list in the following line:
PartitionName=xc Default=YES Nodes=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.
SVA with LSF with SLURM
If you installed LSF, you must create two LSF partitions: one partition for visualization jobs and
one partition for LSF jobs. A node can be present in one partition only.
J.1 Assigning Features 239