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

Renfro, Michael Renfro at tntech.edu
Tue Aug 18 15:43:52 UTC 2020


The PowerShell script I use to provision new users adds them to an Active Directory group for HPC, ssh-es to the management node to do the sacctmgr changes, and emails the user. Never had it fail, and I've looped over entire class sections in PowerShell. Granted, there are some inherent delays due to the non-sacctmgr tasks, but it's on the order of seconds per user rather than minutes.

________________________________
From: slurm-users <slurm-users-bounces at lists.schedmd.com> on behalf of Jason Simms <simmsj at lafayette.edu>
Sent: Tuesday, August 18, 2020 10:36 AM
To: Slurm User Community List <slurm-users at lists.schedmd.com>
Subject: [slurm-users] Adding Users to Slurm's Database

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/a4574a96/attachment.htm>


More information about the slurm-users mailing list