Skip to main content

slurm-sbalance

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

Prerequisites

  • Slurm with Accounting enabled

Currently sbalance has been tested with:

  • Python 2.7.5 and Python 3.6.6
  • Slurm 18.08.5

Usage

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
tutorial:
	Allocation:               1000000.00 SU
	Remaining Balance:         991896.00 SU ( 99.19%)
	Used:                        8104.00 SU

Release files for slurm-sbalance 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slurm-sbalance 0.2.4
File Size Uploaded
slurm-sbalance-0.2.4.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for slurm-sbalance 0.2.4
File Interpreter ABI Platform
slurm_sbalance-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 19.9 kB

Release files / slurm-sbalance-0.2.4.tar.gz

Download URL slurm-sbalance-0.2.4.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
aa861f77173aaca0cd2573408c30e7c48d001ac7ee599dd897d369b81f2b62b1
BLAKE2b-256 checksum
How to use checksums
89edbb0fea430eb0e44bd0f85d556031cf1bfc32090339c48310449a6ae40ed6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15

Release files / slurm_sbalance-0.2.4-py3-none-any.whl

Download URL slurm_sbalance-0.2.4-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
047aa868117c5678a7056505f58bdcfa6f2a140ec4b2a5328b3b3b41493b8623
BLAKE2b-256 checksum
How to use checksums
5706f78bd3aedfecd5096770e0324b748eef4f60f1fdab7cdf0c315cb315e375
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.19

2 release files

0.1.18

2 release files

0.1.17

2 release files

0.1.16

1 release file

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page