Account coordinatorsο
PIs have control over who can charge to their account and how much they can charge
Slurm uses account coordinators as users who can directly control accounts. We highly encourage PIs to assign additional coordinators (typically postdocs or grad students) to manage their Slurm lab accounts access.
Attention
Access Controlο
To add a user to your labβs Slurm account do:
[user@login-x:~]$ sacctmgr add user panteater account=panteater_lab
To remove a user from your labβs Slurm charge account do:
[user@login-x:~]$ sacctmgr remove user where user=panteater account=panteater_lab
Set User Limitsο
Check current limits by account or by user
[user@login-x:~]$ sacctmgr list assoc account=panteater_lab [user@login-x:~]$ sacctmgr list assoc user=panteater
Limit userβs CPU time on running jobs
[user@login-x:~]$ sacctmgr modify user panteater set GrpCPURunMins=10000
Limit a specific user to have no more than 20 jobs in the system:
[user@login-x:~]$ sacctmgr modify user where \ name=panteater account=panteater_lab set maxjobs=20
Set number of cores per user to 40 CPUs at a time:
[user@login-x:~]$ sacctmgr modify user panteater set GrpCPUs=40
Clear User limitsο
To clear a previously set limit, reset its value to -1.
Remove userβs job limit
[user@login-x:~]$ sacctmgr -i modify user where name=panteater set MaxJobs=-1
Manage User Jobsο
List jobs by account or by user
[user@login-x:~]$ squeue -A panteater_lab [user@login-x:~]$ squeue -u panteater
Cancel jobs by job id:
[user@login-x:~]$ scancel 1234567
Cancel all jobs for a specific user:
[user@login-x:~]$ scancel -u panteater
Cancel all running jobs for a specific user:
[user@login-x:~]$ scancel -u panteater --state=running
Cancel all pending jobs for a specific user:
[user@login-x:~]$ scancel -u panteater --state=pending
Cancel all jobs in the account:
[user@login-x:~]$ scancel -A panteater_la
Hold jobs by jobid:
[user@login-x:~]$ scontrol hold 1234567
Hold the job but allow its owner to release it:
[user@login-x:~]$ scontrol uhold 1234567
Remove the job hold:
[user@login-x:~]$ scontrol release 1234567