Quick Start Guide
Get your Slurm HPC Dashboard up and running in minutes
Follow these simple instructions to set up the HPC Dashboard quickly and start monitoring your SLURM cluster right away:
Basic Setup
-
Clone and Install
-
Clone the repository and install dependencies:
git clone https://github.com/thediymaker/slurm-node-dashboard.git cd slurm-node-dashboard npm install
-
-
Configure Environment
-
Create a
.envfile from the included template:mv infra/.env.production .env -
Edit the
.envfile with your cluster information:# GENERAL SETTINGS NODE_ENV="production" # Cluster branding COMPANY_NAME="Acme Corp" CLUSTER_NAME="My Cluster" CLUSTER_LOGO="/logo.png" # Node view configuration NODEVIEW_CONFIG_PATH="infra/node.cfg" # SLURM REST API CONNECTION SLURM_PROTOCOL="http" SLURM_SERVER="192.168.1.5" SLURM_API_TOKEN="1234" SLURM_API_ACCOUNT="slurm" # ADMIN AUTHENTICATION ADMIN_USERNAME="admin" ADMIN_PASSWORD="password" BETTER_AUTH_SECRET="replace-with-a-long-random-string" # OPTIONAL: Prometheus node charts PROMETHEUS_URL="" -
You don't need to set
SLURM_API_VERSION. The dashboard uses the newest version your slurmrestd serves. Set it (for examplev0.0.42) only to pin one. -
Optional features turn on when what they need is configured, so you don't need a flag for each one. See Features and the Database.
-
-
Launch the Dashboard
-
Start the development server:
npm run dev -
Access your dashboard at
http://localhost:3020
Settings are read when the server starts. After changing
.env, restart the server; you don't need to rebuild. -
Tip: For a quick SLURM token, run
scontrol token username=slurm lifespan=31536000on your cluster.
Warning:
Creating a slurm key with a long lifespan can be a security concern. Shorter life keys and rotating them can help prevent unauthorized access to slurm.
Next Steps
After the basic setup, you can:
- Check Admin → Plugins to see which features are on and why
- Add a PostgreSQL database for Rewind, node history, GPU history and job metrics: Features and the Database
- Configure OpenAI integration for the AI assistant
- Set up Prometheus for additional metrics
- Deploy the dashboard to production using PM2
- Integrate with Open OnDemand
Refer to the Installation Guide for detailed setup instructions. Upgrading from 2.x? See Upgrading to 3.0.