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
GrpTRESMinsandNoDecayflag.
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
Metadata
Release files for slurm-sbalance 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| slurm-sbalance-0.2.0.tar.gz | 9.2 kB | Without provenance | Details for slurm-sbalance-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slurm_sbalance-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for slurm_sbalance-0.2.0-py3-none-any.whl |
Total release size: 19.2 kB
Release files / slurm-sbalance-0.2.0.tar.gz
| Download URL | slurm-sbalance-0.2.0.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25018ea70ab9f9bcc75acb075645ae75e72a5a3372f6e26d80c44ddfa05f98b8
|
|
BLAKE2b-256 checksum How to use checksums |
42f8e883176435827627b73c75971f6c3a4568b3023bd23826b8e7c97c0d16f3
|
| 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.0-py3-none-any.whl
| Download URL | slurm_sbalance-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b870d3a34f0ecb16d74a1b88923599e38787843c649a2179e7ca70b1d3c9a4e3
|
|
BLAKE2b-256 checksum How to use checksums |
d805548ae67358ffef3e170421a69691b1f12c2cbde2a20056d61e574d7628ff
|
| 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
|
Security for slurm-sbalance 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.