Ticket 4089

Summary: Reservations recorded in accounting system
Product: Slurm Reporter: S Senator <sts>
Component: AccountingAssignee: Dominik Bartkiewicz <bart>
Status: RESOLVED INFOGIVEN QA Contact:
Severity: 4 - Minor Issue    
Priority: --- CC: bart
Version: 17.02.6   
Hardware: Linux   
OS: Linux   
Site: LANL Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

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.