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
andNoDecay
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
Release history Release notifications | RSS feed
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.9.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file slurm-sbalance-0.1.9.tar.gz
.
File metadata
- Download URL: slurm-sbalance-0.1.9.tar.gz
- Upload date:
- Size: 5.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c4ecb9b00a60f3ff9ff880860091449900474e9092b8271b54c0eab7db7d9a0 |
|
MD5 | d2d853f664bdaa20a3afb629b3e81d42 |
|
BLAKE2b-256 | 0dd5f7be74cc937c6669b307270a886f374819d393b1ce4f1f5d8c0548148d3b |
File details
Details for the file slurm_sbalance-0.1.9-py2-none-any.whl
.
File metadata
- Download URL: slurm_sbalance-0.1.9-py2-none-any.whl
- Upload date:
- Size: 6.7 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c9608f943a3059e25fcb904019d59bfbe4d8437f3c9f2ba7614e3fb21da9c41 |
|
MD5 | e3f9eb0a8bd608174e88276d363b3384 |
|
BLAKE2b-256 | fb9ef919f7f7dc315a0811537af4c4658d5afca4c6ae729372a76f86d2ef2acd |