Slurm Graphical Configurator


Big Fat Note: Below behavior applies to TrinityX 15.2 and higher


The Slurm Graphical Configurator behaved differently for 15.1 and below where it would always take full ownership of the configuration of nodes and partitions. This has drastically changed since 15.2, hence the below document.

Philosphy

The files /etc/slurm/slurm-nodes.conf and /etc/slurm/slurm-partitions.conf contain parts that are by default autmatically generated. These config files are typically prepared to allow for that automation through two separate blocks "Defaults" and "TrinityX". Outside these blocks, no changes are made through automation whatsoever. Removing the blocks mentioned will permanently stop any automation. Manual changes will then be required to achieve the desired configuration.

The automation entails meta and running configuration which allows for automatic node and partition generation/configuration as well utilizing the Slurm Graphical Configurator as a utility that manages detailed properties through direct settings or hardware presets. This approach allows luna by default, but also other future utilities to generate and/or automate the actual running configuration. In short: You can have e.g. luna generate the node and partition configuration based on meta information set through the Slurm Graphical Configurator. The best of both worlds.

Defaults block

The defaults block contains meta or templating information to assist in generating purposeful/running configuration inside the TrinityX block. The Slurm Graphical Configurator works only with the defaults block, building the meta information.

The meta configuration contains HWPresetName lines as well as PartitionName and NodeName lines. Generated lines may be be altered manually to comply to the needs. Properties that are not supported by the configurator will be kept as is but honored for the automation. It is possible to extent the meta configuration lines to each liking. The meta configuration lines typically starts with a # as these lines are not the real configuration, though the syntax is compliant to Slurm's way of configuring resources.

TrinityX block

By default the TrinityX block contains the automation. This means that luna will generate hosts and partitions (based on groups) inside this block, taking the meta configuration in account (Default block). Manual changes inside this block will be overwritten during regeneration, triggered by adding, removing or changing nodes in luna. No changes will be made in the Defaults block.

TrinityX-OOD block

When selecting 'OOD Slurm Configurator manages Nodes and Partitions', as in enabled, the TrinityX block will be changed to TrinityX-OOD. This stops luna automation and nodes and partitions will from here on be managed through the Slurm Graphical Configurator.

This feature can be stopped or disabled which after that point, other, luna by default, will then generate the nodes and partitions when needed.

Examples

The below examples show how a configuration set in the Slurm Graphical Configurator translates to a running, generated configuration, though luna will render the nodes and partitions.

Hardware Presets

Nodes

Partitions

Utility

trix-config-slurm is a utility that can be used to trigger regeneration of the TrinityX block