User Tools

Site Tools


hpc:accounting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
hpc:accounting [2026/03/19 13:51] Yann Sagonhpc:accounting [2026/04/20 09:15] (current) – [Aggregate usage by all users of a given PI] Yann Sagon
Line 253: Line 253:
 </code> </code>
  
 +
 +=== Usage balance ===
 +''ug_billing_synthesis'' is a command-line tool that provides a yearly billing overview for a Principal Investigator (PI).
 +The script aggregates:
 +
 +  * the billing credit coming from private partitions (including co-owned private groups),
 +  * the free billing credit,
 +  * the total available billing,
 +  * the actual billing consumption,
 +  * and the resulting balance.
 +
 +When a PI belongs to one or more private groups, the script automatically detects them and displays a detailed breakdown of the billing credit per private group.
 +The output can be displayed either as a human‑readable console report or as a JSON structure suitable for further processing or integration into other tools.
 +This script is intended to give PIs and HPC administrators a clear and consolidated view of billing availability versus consumption for a given year.
 +
 +<code>
 +(baobab)-[root@login1 ~]$ ug_billing_synthesis --pi xxx
 +Billing synthesis for PI: xxx (2026)
 +  Private partition billing : 3'420'780.0
 +  Free billing              : 100'000
 +  Total billing available   : 3'520'780.0
 +  Billing consumed          : 939'476
 +  Balance                   : 2'581'304.0
 +
 +  Private groups billing:
 +    private_xxxx             : 309'228.0
 +    private_yyyx             : 3'111'552.0
 +</code>
  
  
hpc/accounting.txt · Last modified: by Yann Sagon