Installation
Installing and building cc-slurm-adapter
Reference information regarding the ClusterCockpit component “cc-slurm-adapter” (GitHub Repo).
cc-slurm-adapter is a software daemon that feeds cc-backend with job information from Slurm in realtime.
sacct, squeue, sacctmgr, scontrol) - no slurmrestd requiredThe daemon runs on the same node as slurmctld and operates in two modes:
Data is submitted to cc-backend via REST API. Note: Slurm’s slurmdbd is mandatory.
Because slurmdbd does not store all job information, some details may be unavailable in certain cases:
scontrol --cluster XYZ show job XYZ --jsonThese Slurm versions are known to work:
All Slurm-related code is concentrated in slurm.go for easier maintenance. The
most common compatibility issue is nil pointer dereference due to missing
JSON fields.
If you encounter nil pointer dereferences:
Get a job ID via squeue or sacct
Check JSON layouts from both commands (they differ):
sacct -j 12345 --json
scontrol show job 12345 --json
Slurm has been transitioning API formats:
These custom types maintain backward compatibility across Slurm versions.
Installing and building cc-slurm-adapter
cc-slurm-adapter configuration reference
Setting up cc-slurm-adapter as a daemon
Setting up Prolog/Epilog hooks for immediate job notification
Command line usage and operation modes
Debugging and common issues
Technical architecture and internal details
Integration with cc-backend and NATS
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.