Skip to main content

Slurm utility for checking account balance

Project description

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

Project details


Download files

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

Source Distribution

slurm-sbalance-0.2.3.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

slurm_sbalance-0.2.3-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file slurm-sbalance-0.2.3.tar.gz.

File metadata

  • Download URL: slurm-sbalance-0.2.3.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for slurm-sbalance-0.2.3.tar.gz
Algorithm Hash digest
SHA256 5b5f9e999ad657fcba4f19a7ababe447ffdfea47e88dda3e545e49b3e69e45dd
MD5 14aa82df6995a5baf55f4d657f5a20d4
BLAKE2b-256 00948d3ffaee7c7c8c2a6c5d5070ee88316b5481ea90ce525b73da6fe1d521c2

See more details on using hashes here.

File details

Details for the file slurm_sbalance-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: slurm_sbalance-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for slurm_sbalance-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f1e2c2b5da83c0e5e679b0d7ae8f287d2a8959589f27d891786906a78fa19d6b
MD5 2fb5198380ed88175c697f28f8c62e6b
BLAKE2b-256 3d0bbdd2c1e33db03c2381657b37ee3d472b8ce587dda3762539237164bcd3c6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page