- Read a cluster’s Slurm configuration:
GET /clusters/{clusterId}/scheduler-configuration - Replace a cluster’s Slurm configuration:
PUT /clusters/{clusterId}/scheduler-configuration - Read the organization default:
GET /organizations/{orgId}/scheduler-configuration - Replace the organization default:
PUT /organizations/{orgId}/scheduler-configuration
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
clusters.configure.
Parameters
Response
A configuration object.Example
Errors
Replace a cluster’s Slurm configuration
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 asslurm.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
clusters.configure.
Returns the configuration new clusters in the organization start with. An organization with no default returns {}.
Parameters
Example
Replace the organization default
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.