Skip to main content

Slurm utility for checking account balance

Project description


sbalance is a Slurm utility for checking account balance. The utility calculates the remaining service units or SU left in the account.


  • Slurm with Accounting enabled

Currently sbalance has been tested with:

  • Python 2.7.5 and Python 3.6.6
  • Slurm 18.08.5


usage: sbalance [-h] [-V] [-k] [-m] [-v]

Query slurm account balance.

optional arguments:
  -h, --help     show this help message and exit
  -V, --version  show program's version number and exit
  -k             show output in kSU (1,000 SU)
  -m             show output in MSU (1,000,000 SU)
  -v, --verbose  verbose mode (multiple -v's increase verbosity)

Setting up Slurm

sbalance currently support following setup.

  • Balance is limited per account
  • Account limit is set through QoS with GrpTRESMins and NoDecay flag.

Following is an example setup

Creating account tutorial and QoS test with billing balance of 1000000

sacctmgr add qos test set GrpTRESMins=billing=1000000 Flags=NoDecay 
sacctmgr add account tutorial set QoS=test DefaultQoS=test

Add test user to account tutorial

sacctmgr add user test set Account=tutorial

Checking balance for test user

[test@localhost ~]$ sbalance 
Account balances for user: test
	Allocation:               1000000.00 SU
	Remaining Balance:         991896.00 SU ( 99.19%)
	Used:                        8104.00 SU

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for slurm-sbalance, version 0.1.17
Filename, size File type Python version Upload date Hashes
Filename, size slurm_sbalance-0.1.17-py3-none-any.whl (6.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size slurm-sbalance-0.1.17.tar.gz (5.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page