Slurm User Management

Slurm Accounting

On your cluster, you are able to use Slurm Accounting to create Slurm accounts that group users together to restrict access to specific compute partitions and enforce resource budgets (QOS) within the cluster. The cluster-services CLI provides an easy-to-use interface to quickly create slurm accounts, align users with these slurm accounts, and control which partitions users can submit jobs to. For controlling QOS settings, you are encouraged to familiarize yourself with Slurm resource limits.

Use Cluster-Services to configure basic accounting


  • To run cluster-services, you need to be a root user on your cluster

  • When updating slurm_accounts with cluster-services, you can use your controller or login node.


  1. Log in to your cluster's login node (or controller)

  2. Go root

sudo su

  1. Create a cluster-config file that defines your current cluster configuration settings.

cluster-services list all > config.yaml

  1. Add a sample slurm_accounts block to the end of the cluster-config.

cluster-services sample slurm_accounts >> config.yaml

  1. Edit the cluster-config file, specifying the name of the slurm account, the partitions that users will be allowed to submit to, and the list of users. You will need to remove the existing slurm_accounts:[] definition if this is the first time defining your slurm accounts. When you're finished editing, your slurm_accounts block should look similar to the example below

- allowed_partitions:
- demo-1
- demo-2
name: demo-account
- e
- joe
- guy

  1. Preview the changes with cluster-services

cluster-services update slurm_accounts --config=config.yaml --preview

  1. Apply the changes

cluster-services update slurm_accounts --config=config.yaml