Skip to main content

slurm-avail

A live, configurable terminal dashboard for multiple Slurm clusters.

CI Python 3.11 or newer MIT license

slurm-avail brings live CPU, memory, GPU, filesystem, and scheduler data from multiple Slurm clusters into one keyboard-driven TUI. Clusters can be queried locally or over SSH. No slurm-avail agent or service needs to be installed on the HPC systems; the dashboard uses their existing Slurm command-line tools.

Live multi-cluster overview Scheduler forecast
Node availability across four Slurm clusters Per-node scheduler reservation and running-job forecast

Views

Nodes gives a live overview of all configured clusters. It summarizes free CPU, memory, and physical GPU capacity and then shows how those resources are distributed across individual nodes. Node states such as allocated, reserved, user-exclusive, drained, and down remain visible in the same view.

Filesystems compares capacity and available space for the storage paths configured on each cluster.

Login Nodes shows which SSH endpoints are reachable, which endpoint is currently supplying data, and whether automatic failover is available.

Forecast presents a per-node timeline of exact Slurm reservations and the remaining time limits of currently running jobs. The timeline can be zoomed and navigated from short operational windows up to a year. It deliberately does not speculate about when pending jobs will start.

Config manages clusters and dashboard behavior without leaving the TUI. Clusters can use local or SSH collection, multiple login endpoints, CPU or GPU focused layouts, custom Slurm locations, and selected filesystem paths. They can also be hidden or reordered, while refresh and retry intervals are shared dashboard settings. Everything is persisted in a readable TOML file.

Installation

Install the current GitHub version with uv:

uv tool install git+https://github.com/LukasBuschmann/slurm-avail.git
slurm-avail

After the first PyPI release, installation is simply:

uv tool install slurm-avail

pipx is also supported:

pipx install slurm-avail

The package has no third-party runtime dependencies.

Quick start

Run:

slurm-avail

On first launch, the Config view opens automatically and creates:

~/.config/slurm-avail/config.toml

Select the initial local cluster and press Enter to edit it, or press a to add an SSH cluster. Press s to save and apply, then use Tab to switch between Nodes, Filesystems, Login Nodes, Forecast, and Config.

You can return directly to configuration with:

slurm-avail --init

Configuration

Clusters may run locally or be reached through one or more SSH endpoints.

The following is an example configuration for the TU Dresden HPC system. It monitors the Capella, Alpha, Barnard, and Romeo clusters, including their two login nodes and shared filesystems. Replace USERNAME with your own TU Dresden/ZIH username.

Show TU Dresden HPC example configuration
version = 1

[settings]
node_refresh_seconds = 10
filesystem_refresh_seconds = 60
login_refresh_seconds = 60
forecast_refresh_seconds = 300
failed_retry_seconds = 10
ssh_connect_timeout_seconds = 8
command_timeout_seconds = 20
login_probe_timeout_seconds = 10
filesystem_probe_timeout_seconds = 2
retries_per_address = 0
retry_delay_seconds = 1
forecast_horizon_days = 365

[[clusters]]
name = "CAPELLA"
mode = "ssh"
addresses = ["login1.capella.hpc.tu-dresden.de", "login2.capella.hpc.tu-dresden.de"]
user = "USERNAME"
focus = "gpu"
hidden = false
filesystems = ["/home", "/software", "/data/horse", "/data/walrus", "/data/narwhal", "/data/quokka", "/data/cat"]
slurm_bin_path = "/opt/slurm/current/bin"
exclude_partitions = ["interactive", "capella-interactive"]

[[clusters]]
name = "ALPHA"
mode = "ssh"
addresses = ["login1.alpha.hpc.tu-dresden.de", "login2.alpha.hpc.tu-dresden.de"]
user = "USERNAME"
focus = "gpu"
hidden = false
filesystems = ["/home", "/software", "/data/horse", "/data/walrus", "/data/narwhal", "/data/quokka", "/data/cat"]
slurm_bin_path = "/opt/slurm/current/bin"
exclude_partitions = ["interactive", "alpha-interactive"]

[[clusters]]
name = "BARNARD"
mode = "ssh"
addresses = ["login1.barnard.hpc.tu-dresden.de", "login2.barnard.hpc.tu-dresden.de"]
user = "USERNAME"
focus = "cpu"
hidden = false
filesystems = ["/home", "/software", "/data/horse", "/data/walrus", "/data/narwhal", "/data/quokka", "/data/cat"]
slurm_bin_path = "/opt/slurm/current/bin"
exclude_partitions = ["interactive"]

[[clusters]]
name = "ROMEO"
mode = "ssh"
addresses = ["login1.romeo.hpc.tu-dresden.de", "login2.romeo.hpc.tu-dresden.de"]
user = "USERNAME"
focus = "cpu"
hidden = false
filesystems = ["/home", "/software", "/data/horse", "/data/walrus", "/data/narwhal", "/data/quokka", "/data/cat"]
slurm_bin_path = "/opt/slurm/current/bin"
exclude_partitions = ["interactive"]

For a smaller generic example, see config.example.toml. The user field is optional; when omitted, OpenSSH configuration determines the user. The Slurm path is also optional when scontrol and squeue are already available on the endpoint's PATH.

A different configuration file can be selected with:

slurm-avail --config /path/to/config.toml

XDG_CONFIG_HOME is respected.

Controls

Key Action
Tab Switch view
Arrow keys Scroll or navigate
Page Up / Page Down Scroll by page
Home / End Jump to top or bottom
r Refresh now
+ / - Change forecast resolution
[ / ] Change forecast cluster
q Quit

The Config view shows its editing controls in the legend. In particular, use a to add, Enter to edit, h to hide or show, Shift+Up/Down to reorder, and s to save clusters.

Requirements

On the computer running slurm-avail:

  • Python 3.11 or newer
  • a curses-capable POSIX terminal
  • OpenSSH's ssh command for remote clusters

On each configured cluster endpoint:

  • a working Slurm installation connected to the cluster controller
  • Slurm's scontrol and squeue commands available on PATH or through the configured slurm_bin_path
  • /bin/sh, id, and date
  • df and tail for filesystem monitoring (timeout is used when present)

SSH authentication must already work non-interactively, normally through an SSH agent, keys, and ~/.ssh/config. slurm-avail does not store passwords or private keys.

Command-line usage

slurm-avail --help
slurm-avail --version
slurm-avail --once
slurm-avail --view forecast --cluster 2

Development

git clone https://github.com/LukasBuschmann/slurm-avail.git
cd slurm-avail
python -m venv .venv
. .venv/bin/activate
python -m pip install -e '.[dev]'
pytest
ruff check .

Contributions and issue reports are welcome. Release instructions are in RELEASING.md.

License

slurm-avail is available under the MIT License.

Download files

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

Source Distribution

slurm_avail-0.1.0.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slurm_avail-0.1.0-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

Details for the file slurm_avail-0.1.0.tar.gz.

File metadata

  • Download URL: slurm_avail-0.1.0.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for slurm_avail-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0fcce75671ae0a6fbccfff64a465598b4c6a3cec6ea21b96cc3dbab9005cbde0
MD5 790c38f9741cd117d5ad1db4bbd89b08
BLAKE2b-256 0fd749bdfe8c75fdfbe97f07f20efbe2bcf7065a069c03cce0b34c6179f2253f

See more details on using hashes here.

Provenance

The following attestation bundles were made for slurm_avail-0.1.0.tar.gz:

Publisher: release.yml on LukasBuschmann/slurm-avail

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file slurm_avail-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: slurm_avail-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 37.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for slurm_avail-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f2b4553368970cd94340d261e3445dfb2e4b12bb47530db6ca9a1d8e02c0339
MD5 37049833b3e72e784e7ead3a36309fcb
BLAKE2b-256 369a16522ea8ebbdcd722256d73c887aa54385326077d1d8f15a08b0785c9cd1

See more details on using hashes here.

Provenance

The following attestation bundles were made for slurm_avail-0.1.0-py3-none-any.whl:

Publisher: release.yml on LukasBuschmann/slurm-avail

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page