[slurm-users] Slurm REST API association usage

73 views
Skip to first unread message

Pierre Gay

unread,
Mar 30, 2023, 7:04:53 AM3/30/23
to slurm...@schedmd.com
Hello,


I'm trying to get association usage info from Slurm REST server with the
endpoint: /slurmdb/v0.0.37/associations


For every association, I get: "usage": null

The OpenAPI schema tells that I should get something like:

>       "usage": {
>         "accrue_job_count": 0,
>         "group_used_wallclock": 0,
>         "fairshare_factor": 0,
>         "fairshare_shares": 0,
>         "normalized_priority": 0,
>         "normalized_shares": 0,
>         "effective_normalized_usage": 0,
>         "raw_usage": 0,
>         "job_count": 0,
>         "fairshare_level": 0
>       },

While using sshare, I have something like:

> Account                    User RawShares  NormShares    RawUsage 
> EffectvUsage  FairShare
> -------------------- ---------- ---------- ----------- -----------
> ------------- ----------
> root                                          1.000000 54374620     
> 0.000000   1.000000
>  root                      root          0    0.000000 0     
> 0.000000   0.000000
>  account1                           parent    1.000000 11296820     
> 0.207755   0.985703
>   account1                user1          1    0.111111 0     
> 0.000000   1.000000
>   account1                user2          1    0.111111 11296820     
> 0.207759   0.878441
> ...


Can you tell me what's wrong?


Thanks in advance,


Pierre


--
MCIA
bureau 232 bâtiment A33
351, cours de la Libération
33405 Talence


Pierre Gay

unread,
Mar 31, 2023, 2:54:01 PM3/31/23
to slurm...@lists.schedmd.com
After digging a bit with a debugger, it looks like slurmrestd doesn't
require the db server to include usage info for associations.


Does anybody know if I'm right?


Thanks,

Pierre
Reply all
Reply to author
Forward
0 new messages