Ticket 4089 - Reservations recorded in accounting system
Summary: Reservations recorded in accounting system
Status: RESOLVED INFOGIVEN
Alias: None
Product: Slurm
Classification: Unclassified
Component: Accounting (show other tickets)
Version: 17.02.6
Hardware: Linux Linux
: 4 - Minor Issue
Assignee: Dominik Bartkiewicz
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2017-08-17 12:44 MDT by S Senator
Modified: 2017-08-22 23:58 MDT (History)
1 user (show)

See Also:
Site: LANL
Slinky Site: ---
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
Google sites: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita Sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed:
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
Description S Senator 2017-08-17 12:44:51 MDT
Like many HPC sites, we are requested to generate utilization reports for oversight and accounting. However, our utilization can be strongly influenced by use, and overuse, of human intervention into the scheduling system - especially in the form of reservations. Unfortunately, reservations only appear to be a feature of the transient state or an attribute of a specific job which ran in the reservation.

Is it possible to cause a reservation to be recorded directly into the accounting system, so that it could be included in the utilization as a discrete time-bound event, similar to a job?

Alternatively, is there a reservation plugin API where we could implement whatever, possibly changing, requirements for reporting of reservations match our current oversight?
Comment 1 Dominik Bartkiewicz 2017-08-18 03:31:00 MDT
Hi

You can take this data using sacctmgr
eg.:
sacctmgr show resv where start=2017-08-01

We don't have dedicated plug-in for it, but you can use ResvProlog,ResvEpilog.

From slurm.conf man:
       ResvEpilog
              Fully qualified pathname of a program for the slurmctld to  exe‐
              cute  when a reservation ends. The program can be used to cancel
              jobs, modify  partition  configuration,  etc.   The  reservation
              named  will be passed as an argument to the program.  By default
              there is no epilog.

       ResvProlog
              Fully qualified pathname of a program for the slurmctld to  exe‐
              cute  when a reservation begins. The program can be used to can‐
              cel jobs, modify partition configuration, etc.  The  reservation
              named  will be passed as an argument to the program.  By default
              there is no prolog.

Dominik
Comment 4 Dominik Bartkiewicz 2017-08-18 08:53:24 MDT
Hi

Also sreport can be used to show reservation accounting data,
eg.: sreport -a  reservation Utilization
sreport generating reports includes unused reservation time to Accounts.
also maintenance reservations are properly ascribed to planned down time.
If you describe exactly what you need maybe I can give you more precise solutions.

Dominik
Comment 5 S Senator 2017-08-21 15:50:43 MDT
(In reply to Dominik Bartkiewicz from comment #4)
> Hi
> 
> Also sreport can be used to show reservation accounting data,
> eg.: sreport -a  reservation Utilization
> sreport generating reports includes unused reservation time to Accounts.
> also maintenance reservations are properly ascribed to planned down time.
> If you describe exactly what you need maybe I can give you more precise
> solutions.
> 
> Dominik

This addresses our immediate needs. Our general goal is to be able to generate reports that distinguish between planned and unplanned down time.

Please feel free to close this. If we need additional functionality we will check back in with you.