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

Changelog

Release notes and version history for the Slurm Node Dashboard.

Changelog

All notable changes to the Slurm Node Dashboard are documented here.


v3.1.1

  • Efficiency histograms - Jobs without CPU, memory or GPU data were counted in the 90% bar of each Efficiency histogram. They're left out again.
  • Comparisons with the previous range - When job history starts after the previous range does (a new install, or an ingestor backfilling), changes like "+1300% vs prior" are no longer shown; the page says there's no prior data.

v3.1.0

  • Faster metrics - The Metrics page reads daily rollups instead of every job, so a year of reports on a busy cluster loads in about a second instead of minutes. The dashboard builds the rollups itself the first time it starts and keeps them current as the ingestor writes jobs. Medians and percentiles now come from bins: exact for waits under 100 seconds, otherwise within a few percent. New setting METRICS_ROLLUP_INTERVAL_SECONDS.
  • Job history coverage - When a range runs past the newest job the ingestor has written, for example during a backfill, the Metrics page says how far job history goes instead of showing an empty or partial range without comment.

v3.0.3

  • Cluster status - /api/cluster-status read the whole job list from slurmrestd on every request, about 100 MB of JSON on a busy cluster, so a few overlapping polls from status widgets could run the server out of memory. Concurrent requests now share one fetch, and the result is reused for 30 seconds.

v3.0.2

  • Cluster capacity - Hourly CPU and GPU capacity was never recorded, so utilization on the metrics page stayed empty: the collector couldn't parse GPU counts on the server. The event log's GPU counts had the same problem. Both work now.
  • Build output - next build no longer logs BetterAuthError: You are using the default secret for each route. It never affected the running server.
  • Docs - Upgrading to 3.0 covers snapshot file times, node charts that can appear, and the other things to check after upgrading. The Rewind cron script now names files in UTC.

v3.0.1

  • Admin overview - The Partitions card counted 0 partitions up; it now reads each partition's state correctly.
  • Hierarchy - The organization graph opens fitted to the whole tree, reads left to right, and its zoom controls follow dark mode.

v3.0.0

See Upgrading to 3.0 for upgrade steps. Most installs upgrade without changing anything.

New Look

  • Header - Every page shares one header with the cluster name, tabs for Nodes, Rewind, Modules and Metrics, job search, the assistant, the color scheme and the menu.
  • Cluster summary - Node states, cores, memory and GPUs allocated, cluster power, jobs, and nodes that need attention, above the nodes. Replaces the details panel.
  • Node detail - Opens as a panel on the right with Overview, Jobs, GPU and Details tabs, instead of a dialog.
  • Assistant - Opens from the header as a panel on the right, and shows which model it uses.
  • Modules - Search-first browser: the list on the left, the selected module's versions and how to load it on the right.
  • Highlight user or job - Rings the nodes a user's or job's running jobs are on and dims the rest; also from Show on nodes in the user and job dialogs.
  • Ask the assistant - Node and job details can open the assistant with a question about them.
  • Admin - Log in in the header, an Admin tab once signed in, and the admin pages match the rest of the dashboard. Hierarchy changes now require the admin session.
  • Rewind - A timeline of the last week to pick an hour from, with previous/next, playback and a date picker, and the new node cards.
  • Job Metrics - Rebuilt to cover what most sites use XDMoD for: Overview, Explorer (any metric by any grouping), Efficiency and Jobs tabs, utilization against recorded capacity, CSV export, and shareable links. New cluster_capacity table and CAPACITY_RETENTION_DAYS setting.
  • Group by - Group nodes by rack, partition or state. Replaces the separate rack view.
  • Node cards - Square cards in three sizes that fill the width of the page. Stripes for draining, a hatch for down, and corner icons for drained, down, maintenance, reserved and reboot pending. New state filters for overloaded, maintenance, reserved and needs attention.
  • Large cards - Power, temperature, per-GPU busyness and the last hour of load from Prometheus. New NODE_TEMP_WARN_C setting for when the temperature turns yellow.
  • Recently changed - With node history, nodes that went unavailable or came back in the last 10 minutes get a ring.

New Features

  • Fair share - A user's job details show their FairShare factor in each account and the LevelFS up the account tree, from slurmrestd /shares. New ENABLE_FAIRSHARE and FAIRSHARE_CACHE_SECONDS settings.
  • Preemption - Job Metrics Overview shows the nodes with the most preempted jobs and their preemption rate; the node popup shows a node's preemption over the last 30 days.
  • Event log - EVENT_LOG writes node state changes and node and cluster metrics (allocation, load, memory, GPUs, power) as JSON lines to stdout or a file, for Telegraf, InfluxDB, Grafana and the like. See Event Log.

Runtime Configuration

  • Settings are read when the server starts - Plugin flags, the cluster name and logo, the support URL, the metrics time zone and the hierarchy labels are no longer baked in at build time. Changing one needs a restart instead of a rebuild. Your .env file still works.
  • NEXT_PUBLIC_BASE_PATH - The only setting still fixed at build time.
  • Docker build arguments - Build arguments for plugin flags, CLUSTER_NAME, CLUSTER_LOGO, NEXT_PUBLIC_BASE_URL, NEXT_PUBLIC_SUPPORT_URL and the hierarchy labels still work and become the container's defaults. Set them at runtime instead to use one image for several clusters.
  • SLURM_API_VERSION is optional - When unset, the dashboard uses the newest version your slurmrestd serves.

Features Turn On From What's Configured

  • No flag per feature - Each feature turns on when what it needs is configured. A flag set to "false" still turns its feature off.
  • Admin → Plugins - Shows every feature's state and why it's on or off, grouped by whether it needs a database.
  • Modules - The sample public/modules.json is no longer shipped (it's now infra/modules.example.json), so Modules only turns on when you provide your own file. New MODULES_FILE setting to keep the file outside the app directory.

Built-in History Collection

  • DATABASE_URL - Replaces SLURM_JOB_METRICS_DATABASE_URL, which still works. The dashboard creates the tables it writes on startup.
  • Rewind snapshots - Saved hourly by the dashboard, replacing the snapshot cron script. Snapshot files in data/ from the old script still work.
  • Node history - New. Records each node's states (full, partial, idle, drained, down) over time, and when and why it was drained or down, and shows them on the node popup.
  • GPU history - Captured every minute by the dashboard, replacing the POST /api/gpu cron job. The endpoint still works.
  • One collector per database - With several dashboard instances on one database, one of them collects; the others take over if it stops.
  • New settings - ENABLE_NODE_HISTORY, GPU_METRICS_HISTORY, NODE_HISTORY_INTERVAL_SECONDS, NODE_HISTORY_RETENTION_DAYS, SNAPSHOT_INTERVAL_MINUTES, SNAPSHOT_RETENTION_DAYS, GPU_CAPTURE_INTERVAL_SECONDS, DATABASE_POOL_MAX and DATABASE_CONNECT_TIMEOUT_MS.

Slurm History Ingestor

  • Sync cursor - Saves its sync position, so a quiet cluster no longer re-scans its whole history on every pass.
  • API version detection - In API mode, uses the newest API version slurmrestd serves when SLURM_API_VERSION is unset.
  • Container image - Published as ghcr.io/thediymaker/slurm-history-ingestor.
  • CPU time used - Records each job's CPU time (total_cpu_seconds) for CPU efficiency. In sacct mode it no longer passes --allocations, which left CPU time at zero.

Removed

  • NEXT_PUBLIC_ENABLE_INFLUXDB_PLUGIN and NEXT_PUBLIC_MAINT_NOTIFICATIONS_ENABLED - Neither did anything beyond showing a status in the admin panel.
  • NEXT_PUBLIC_SLURM_API_VERSION - The admin panel now shows the version slurmrestd actually answered with.
  • NEXT_PUBLIC_ENABLE_PROMETHEUS_PLUGIN - Never controlled Prometheus and is now ignored. Node charts are on whenever PROMETHEUS_URL is set.

v2.1.5

YAML-Driven LLM Configuration

  • infra/llm-assistant.yaml — New YAML configuration file that drives the entire AI assistant: system prompt, cluster identity, tool definitions, job defaults, custom instructions, and restricted topics. No more editing application code to customize the AI.
  • LLM_CONFIG_PATH — New environment variable to specify a custom path for the YAML config (defaults to infra/llm-assistant.yaml).
  • Dynamic tool & prompt builder — The chat route now calls loadLLMConfig() and buildToolsAndPrompt() to construct tools and system prompt dynamically from the YAML file.
  • 60-second config cache — Config changes take effect automatically without a server restart.
  • Custom tool support — Define your own tools in YAML with execution blocks that call Slurm REST, SlurmDB, or external HTTP APIs with {param} placeholder interpolation.
  • Per-tool prompt guidance — Each tool supports a prompt_guidance field that tells the AI how to interpret and present results.
  • Restricted topics — Define topics the AI should redirect to support channels with custom messages.

New Workflow Tools

  • troubleshoot_job — Multi-step diagnostic that gathers job details, partition state, and node health in a single tool call for comprehensive failure analysis.
  • sbatch_helper — Fetches available partitions, QoS levels, and cluster info to generate informed sbatch scripts using your cluster's actual configuration.
  • node_health_check — Comprehensive node health report with resource utilization, current jobs, and partition context.
  • Rich UI cards — All workflow tools render structured visual cards in the chat interface.

Admin → LLM Config Panel

  • New "LLM Config" tab in the Admin dashboard with a visual editor for the YAML configuration.
  • Cluster identity editor — Edit name, organization, documentation URL, and support email.
  • Tool management — Enable/disable built-in tools, create custom tools with execution endpoints.
  • System prompt & instructions editor — Edit system prompt and custom instructions in-browser.
  • Restricted topics manager — Add, edit, and remove restricted topic redirects.
  • Raw YAML editor — Switch to raw editing mode for advanced configuration.
  • Test chat preview — Test configuration changes with the built-in chat interface.
  • Config API — GET /api/llm-config and PUT /api/llm-config for reading and updating the config programmatically.

Chat Improvements

  • Step limiting — Tool-call loops are now limited to 5 steps via stepCountIs(5) to prevent runaway tool chains.
  • Forced first-step tool calls — The first LLM step forces tool execution (no text generation), preventing the model from hallucinating data before tools return results.
  • Markdown table stripping — LLM output is automatically stripped of markdown tables since tool cards already display all data.
  • Error handling — Improved error handling in the chat modal with try/catch for message sends and loading-state guards.
  • Chat UI refresh — Updated chat modal styling with backdrop blur, new bot icon, and refined input area.

GPU Metrics Capture Security

  • GPU_METRICS_CAPTURE_TOKEN - Optional server-side secret for POST /api/gpu; when configured, capture requests must send either Authorization: Bearer <token> or x-api-key: <token>.
  • GPU_METRICS_CLUSTER - Optional server-side cluster filter for GPU Prometheus queries when one Prometheus scrapes multiple Slurm clusters.
  • GPU_METRICS_LABEL_FILTER / GPU_METRICS_CAPTURE_LABEL_FILTER - Advanced PromQL label matcher overrides for global GPU queries or capture-only snapshots.
  • Cluster-aware GPU recording rules - infra/gpu_utilization.yml now preserves the cluster label on per-job rules and emits per-cluster rollups.

Dependency Upgrades

  • AI SDK — ai upgraded from v5 to v6, @ai-sdk/openai from v2 to v3, @ai-sdk/react from v2 to v3.
  • js-yaml — New dependency for YAML parsing/serialization of the LLM config.

v2.1.1

GPU Utilization Plugin Overhaul

  • New unified GPU API — All GPU metric endpoints consolidated under /api/gpu:
    • GET /api/gpu — Fetch current GPU metrics from Prometheus
    • POST /api/gpu — Capture and persist a GPU metrics snapshot (replaces /api/gpu-metrics/capture)
    • GET /api/gpu/report — Retrieve historical GPU utilization reports
    • GET /api/gpu/node — Fetch per-node GPU statistics
  • 3-tier query fallback strategy — The GPU metrics engine now tries recording rules first, then falls back to raw PromQL, then to DCGM-only queries, for maximum compatibility across Prometheus setups.
  • NEXT_PUBLIC_ENABLE_GPU_UTILIZATION — New environment variable acts as a feature flag to enable/disable the GPU utilization plugin across the entire dashboard.
  • Recording rules shipped in-repo — Pre-built Prometheus recording rules now live at infra/gpu_utilization.yml (replaces the old dcgm_job_rules.yml), covering per-job, time-windowed, and cluster-level aggregation.

GPU Metrics in the Dashboard UI

  • Job modals — Running jobs now display real-time GPU utilization, memory usage, and temperature; completed jobs show a GPU Efficiency badge.
  • Admin → GPU Analysis tab — New admin panel section with system-level GPU overview, per-job GPU table, search/filter, and auto-refresh.
  • Node card hover — GPU statistics are now visible in node card hover modals when the plugin is enabled.

JWT Token Management

  • JWT Token Info card on the Admin dashboard — Shows token validity, expiry status, and days remaining.
  • SLURM_TOKEN_EXPIRY_WARNING_DAYS — New environment variable (default 30) to configure when expiry warnings appear.
  • Slack webhook alerts — Optional SLACK_WEBHOOK_URL env var enables automated Slack notifications for token expiry via a cron-friendly endpoint: GET /api/slurm/jwt/alert.

Node Configuration Changes

  • node.cfg relocated — Configuration file moved from the project root to infra/node.cfg.
  • NODEVIEW_CONFIG_PATH — New environment variable to specify a custom path for node.cfg (defaults to infra/node.cfg).
  • excludedNodes support — The node.cfg file now supports an excludedNodes array to hide specific nodes from the rack view.
  • rackLayout wrapper — Rack definitions are now nested under a rackLayout key in the configuration file.
  • Comment support — node.cfg now allows // comments for inline documentation.

Environment & Infrastructure

  • .env.production relocated — The environment template moved from the project root to infra/.env.production. Installation commands updated to mv infra/.env.production .env.
  • New environment variables added:
    • NODEVIEW_CONFIG_PATH — Custom path for node configuration
    • SLACK_WEBHOOK_URL — Slack webhook for JWT expiry alerts
    • SLURM_TOKEN_EXPIRY_WARNING_DAYS — Token warning threshold in days
    • NEXT_PUBLIC_ENABLE_GPU_UTILIZATION — Feature flag for GPU plugin

Update Script Improvements

  • The update script now preserves infra/.env.production as an untouched template — it is never modified during updates.
  • Environment comparison instructions updated to use diff .env infra/.env.production.