Slurm Node Dashboard 3.0 is out. A new look, rebuilt job metrics, fair share and an event log, and the dashboard now collects Rewind, node history and GPU history itself. Upgrading to 3.0

Installation

Set up the database, the dashboard and slurm-history-ingestor for job metrics

Installation

Job metrics need three pieces: a PostgreSQL database, the dashboard pointed at it, and slurm-history-ingestor writing job history into it. Both the dashboard and the ingestor create their own tables on startup, so there are no migrations to run by hand.

Prerequisites

  • PostgreSQL 13 or newer.
  • Slurm 20.11 or newer, with sacct access (sacct mode) or slurmrestd (API mode) for the ingestor.
  • Go 1.22 or newer, only if you build the ingestor from source.

1. Create the Database

Create a database and a user that owns it. The examples on these pages use slurmdash for both:

CREATE USER slurmdash WITH PASSWORD 'change-me';
CREATE DATABASE slurmdash OWNER slurmdash;

Both the dashboard and the ingestor create tables in this database when they first start, so the user needs permission to create tables. Owning the database is enough.

2. Point the Dashboard at It

Set DATABASE_URL in the dashboard's .env and restart the dashboard:

# Format: postgresql://username:password@hostname:port/database
DATABASE_URL="postgresql://slurmdash:change-me@db-host:5432/slurmdash"

On startup the dashboard creates the tables it writes, including organizations and account_mappings for the hierarchy. The same database also turns on Rewind snapshots and node history; see Features and the Database.

Before 3.0 this setting was called SLURM_JOB_METRICS_DATABASE_URL. The old name still works.

3. Run slurm-history-ingestor

The Slurm History Ingestor syncs finished jobs from Slurm into the job_history table. Point its DATABASE_URL at the same database:

DATABASE_URL=postgres://slurmdash:change-me@db-host:5432/slurmdash?sslmode=require
CLUSTER_NAME=mycluster

Run it one of three ways:

  • Container image: ghcr.io/thediymaker/slurm-history-ingestor. Best for API mode.
  • Release binary: download slurm-ingestor-linux-amd64 or slurm-ingestor-linux-arm64 from GitHub Releases and run it as a systemd service. Best for sacct mode on a login node.
  • From source: clone the repository and go build.

The Slurm History Ingestor page has the commands and every setting for each option.

On its first run the ingestor syncs from INITIAL_SYNC_DATE (default 2024-01-01). After that it resumes from its saved sync position.

4. Check That Job Metrics Are On

Job metrics turn on by themselves once the ingestor has created job_history. You don't need to set a flag. Open Admin → Plugins and check Job metrics:

  • Set DATABASE_URL to turn this on. means the dashboard has no database configured.
  • No job history yet. Run slurm-history-ingestor against this database. means the ingestor hasn't written to this database yet. Check that both use the same DATABASE_URL database.
  • Reporting on job history written by slurm-history-ingestor. means it's on. The Metrics page is at /metrics.

5. Set Up the Hierarchy

To group usage by college, department or other units, import your organizations and map Slurm accounts to them. See Organization Hierarchy.

Next Steps