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.1.13.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

slurm_sbalance-0.1.13-py2-none-any.whl (7.0 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: slurm-sbalance-0.1.13.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.5

File hashes

Hashes for slurm-sbalance-0.1.13.tar.gz
Algorithm Hash digest
SHA256 bb8bb148779b2133b38332bf3ff454fd1f8e2cf027f79b65c71c07273a8bb4ce
MD5 ec7dcb564bafbcca5e28ed7096a60323
BLAKE2b-256 7b439f3d533ea9f58069bd09220f6bf8fa3f0622b77eed9578a9f023d2f2e76c

See more details on using hashes here.

File details

Details for the file slurm_sbalance-0.1.13-py2-none-any.whl.

File metadata

  • Download URL: slurm_sbalance-0.1.13-py2-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.5

File hashes

Hashes for slurm_sbalance-0.1.13-py2-none-any.whl
Algorithm Hash digest
SHA256 ade809f1c1243f9e66c39265e53d155d9c05a2340a02e854d2bc10b296d07bde
MD5 1ae39347078f1ef1c8a689c034720ecf
BLAKE2b-256 a14d8fc33d54f7a93ab8dbd6aedd61193fd2b922c26749be2362282fa21bb665

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