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


Le 30/03/2023 à 13:04, Pierre Gay a écrit :
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


Reply via email to