<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>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.</p>
    <p>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.</p>
    <p>-Paul Edmon-<br>
    </p>
    <div class="moz-cite-prefix">On 8/18/2020 11:36 AM, Jason Simms
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAP7JYwciBWNQbJFn9twe6F6SYfKYtB35yyjOXxRZjOM8Xww56w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">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.).
        <div><br>
        </div>
        <div>I've been doing this manually with a command like this:</div>
        <div><br>
        </div>
        <div>sacctmgr add user <username> Account=root
          DefaultAccount=root</div>
        <div><br>
        </div>
        <div>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?</div>
        <div><br>
        </div>
        <div>How do you all handle adding users to Slurm's DB? Manually?
          Or, if not by script or some automated means...??</div>
        <div><br>
        </div>
        <div>Warmest regards,</div>
        <div>Jason<br clear="all">
          <div><br>
          </div>
          -- <br>
          <div dir="ltr" class="gmail_signature"
            data-smartmail="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div
                            style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;margin:0px"><span
                              style="color:rgb(130,36,51)"><font
                                face="Century Gothic"><b>Jason L. Simms,
                                  Ph.D., M.P.H.</b></font></span></div>
                          <div
                            style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;margin:0px"><font
                              face="Century Gothic"><span>Manager of
                                Research and High-Performance Computing</span></font></div>
                          <div
                            style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;margin:0px"><font
                              face="Century Gothic"><span>XSEDE Campus
                                Champion<br>
                              </span><span style="color:gray">Lafayette
                                College<br>
                                Information Technology Services<br>
                                710 Sullivan Rd | Easton, PA 18042<br>
                                Office: 112 Skillman Library<br>
                                p: (610) 330-5632</span></font></div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
  </body>
</html>