Discussion:
User accounting (--account in sbatch)
Anna Kostikova
2014-08-10 11:24:32 UTC
Permalink
Dear slurm users/developers

I have installed Slurm in combination with Saga library and have hard time getting user statistics out. What I need is to know which user submitted which task. How can I determine this? More specifically, how can I set up slurm so that tasks from different users are run on different nodes of my cluster via sbatch utility by keeping information about who run what? For example, I created "user1" in my slurm database and then run sbatch with an option --account=user1 from a console on a server , but squeue shows that task is submitted from user "root" (same without --account option) . Is it possible to know which user submitted what or set it all with slurm/saga?


Thanks a lot
Anna=
Trey Dockendorf
2014-08-10 20:09:35 UTC
Permalink
Does 'sacctmgr show user user1' return output or does 'sacctmgr show account user1'? Accounts in the database are more like groups than users. To run as another user requires a different flag at command line. At least that's my understanding. Users in the database belong to accounts, so if a user belongs to multiple accounts the --account flag allows the submitter to specify their account association to use.

- Trey

Anna Kostikova <anna.kostikova-***@public.gmane.org> wrote:



Dear slurm users/developers

I have installed Slurm in combination with Saga library and have hard time getting user statistics out. What I need is to know which user submitted which task. How can I determine this? More specifically, how can I set up slurm so that tasks from different users are run on different nodes of my cluster via sbatch utility by keeping information about who run what? For example, I created "user1" in my slurm database and then run sbatch with an option --account=user1 from a console on a server , but squeue shows that task is submitted from user "root" (same without --account option) . Is it possible to know which user submitted what or set it all with slurm/saga?


Thanks a lot
Anna=
Anna Kostikova
2014-08-20 12:18:35 UTC
Permalink
Thanks a lot Trey.

In fact, I had to simply create a linux user with the same name as slurm
user and then everything worked just fine - all jobs had an accounted
associated with it.

Thanks again
Anna
Post by Trey Dockendorf
Does 'sacctmgr show user user1' return output or does 'sacctmgr show
account user1'? Accounts in the database are more like groups than users.
To run as another user requires a different flag at command line. At least
that's my understanding. Users in the database belong to accounts, so if a
user belongs to multiple accounts the --account flag allows the submitter
to specify their account association to use.
- Trey
Dear slurm users/developers I have installed Slurm in combination with
Saga library and have hard time getting user statistics out. What I need is
to know which user submitted which task. How can I determine this? More
specifically, how can I set up slurm so that tasks from different users are
run on different nodes of my cluster via sbatch utility by keeping
information about who run what? For example, I created "user1" in my slurm
database and then run sbatch with an option --account=user1 from a console
on a server , but squeue shows that task is submitted from user "root"
(same without --account option) . Is it possible to know which user
submitted what or set it all with slurm/saga? Thanks a lot Anna=
Loading...