Skip to main content
For what each setting does and how to change it safely, see Configure Slurm. These endpoints apply to clusters that run Slurm. They accept only people, not service accounts.

The configuration object

Every field is optional. A field that has never been set is omitted. For the organization default, slurmPartitions and gresConf are not accepted.

Read a cluster’s Slurm configuration

API: Platform. Permission: clusters.configure.

Parameters

Response

A configuration object.

Example

Errors

Replace a cluster’s Slurm configuration

API: Platform. Permission: clusters.configure. Replaces the whole configuration with the body. A field you omit is cleared, so read the configuration first and send it back with your changes. Sending a configuration identical to the stored one changes nothing. Otherwise the cluster’s spec.schedulerGeneration increases and the cluster applies the new configuration. Applying it closes open SSH sessions on the cluster.

Parameters

Request body

A configuration object.

Response

200 with the configuration as stored.

Example

Raise the job limit, and keep the rest of the configuration from the read example, saved as slurm.json:

Errors

Validation

slurmPartitions, slurmExtraConfig, cgroupExtraConfig, gresConf, and the package scripts are not validated. An error in them surfaces on the cluster, not in this response, and can stop slurmctld.

Read the organization default

API: Platform. Permission: clusters.configure. Returns the configuration new clusters in the organization start with. An organization with no default returns {}.

Parameters

Example

Replace the organization default

API: Platform. Permission: clusters.configure. Replaces the whole default. Clusters created afterwards start with it. Existing clusters are not changed. The body is a configuration object without slurmPartitions or gresConf. The response is 200 with the default as stored. Validation is the same as for a cluster.

Example

Errors