[slurm-users] Adding Users to Slurm's Database

Paul Edmon pedmon at cfa.harvard.edu
Tue Aug 18 15:41:52 UTC 2020

We manage this via our job_submit.lua script.  At submission time the 
script looks to see if they already have an account or not and if they 
don't it adds them.  To lower impact on the database we have it cache 
the lookups.

I think the real concern is continually beating on the database. So you 
want to cut that down by whatever means you think is reasonable.

-Paul Edmon-

On 8/18/2020 11:36 AM, Jason Simms wrote:
> Hello everyone! We have a script that queries our LDAP server for any 
> users that have an entitlement to use the cluster, and if they don't 
> already have an account on the cluster, one is created for them. In 
> addition, they need to be added to the Slurm database (in order to 
> track usage, FairShare, etc.).
> I've been doing this manually with a command like this:
> sacctmgr add user <username> Account=root DefaultAccount=root
> I would like to add that command to the user creation script, but I'm 
> warned off by the Slurm docs that say never to call sacctmgr in a 
> script/loop. I understand the reasons why doing so multiple times in 
> rapid succession can be a bad idea. In our case, however, it would be 
> rare to have more than one new user at a time (our script runs in 
> 15-min. intervals). Is there really a concern in a case like ours?
> How do you all handle adding users to Slurm's DB? Manually? Or, if not 
> by script or some automated means...??
> Warmest regards,
> Jason
> -- 
> *Jason L. Simms, Ph.D., M.P.H.*
> Manager of Research and High-Performance Computing
> XSEDE Campus Champion
> Lafayette College
> Information Technology Services
> 710 Sullivan Rd | Easton, PA 18042
> Office: 112 Skillman Library
> p: (610) 330-5632
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20200818/2d3da57a/attachment.htm>

More information about the slurm-users mailing list