sind

module
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2026 License: GPL-3.0, LGPL-3.0

README ΒΆ

Create and manage containerized Slurm clusters for development, testing, and CI/CD workflows.

πŸš€ Getting StartedΒ Β Β Β πŸ“– Documentation


Inspired by kind (Kubernetes in Docker), sind offers a familiar CLI experience for quickly spinning up and tearing down Slurm clusters. Related tools describes how sind compares to other ways to run a Slurm cluster for development and tests, such as Docker Compose setups, virtual machines and Slurm on Kubernetes.

Features

  • Multi-node, multi-cluster & multi-realm β€” run controller, database, REST API, submitter, and worker nodes side by side, or spin up multiple clusters across isolated realms with shared networking
  • System containers β€” full systemd-based nodes that emulate bare metal, compatible with Ansible, Chef, and other config management tools; unmanaged clusters leave Slurm itself to them
  • Designed for CI/CD β€” runs on standard GitHub Actions runners with the runner's Docker daemon, no privileged containers; sind-action sets up clusters in a single step
  • Multiple Slurm versions β€” official node images for the supported Slurm release lines (26.11, 26.05 and 25.11) on linux/amd64 and linux/arm64, each with a full MPI stack, or bring your own image
  • Job accounting, users and identity β€” a db node runs MariaDB and slurmdbd; users, groups and Slurm accounts with limits, and identity modes from local accounts to nss_slurm and auth/slurm
  • REST API β€” slurmrestd on an api node with JWT authentication (Slurm 26.05 and later)
  • CVMFS β€” mount /cvmfs read-only on every node, from the Docker host or a volume plugin
  • Monitoring β€” an opt-in Prometheus, Loki and Grafana stack per realm collects Slurm's metrics, the nodes' resource use and their journals, with dashboards for clusters, nodes, services, users and logs (Slurm 26.05 and later)
  • Web UI β€” sind ui shows realms, clusters, nodes and runs live in your browser, says what needs a look and which fix to try first, and shows the exact sind command before it runs one
  • Connect outside containers β€” attach containers such as kind nodes to a realm's mesh and cluster networks
  • Worker lifecycle β€” dynamically add and remove worker nodes from running clusters
  • Power cycle simulation β€” shutdown, reboot, freeze, and power-cycle nodes to simulate real-world failure scenarios
  • Minimal dependencies β€” just Docker Engine on a Linux host and a sind container image; usable as both a CLI tool and a Go library, whose public API is the packages under pkg/ (see Dual use for its stability)
  • AI-ready via MCP β€” built-in MCP server lets AI assistants manage your Slurm clusters

Quick start

With Docker 28 or later on a Linux host with cgroup v2:

curl -fLo sind https://github.com/GSI-HPC/sind/releases/latest/download/sind-linux-amd64
sudo install sind /usr/local/bin/sind
mkdir sind-demo && cd sind-demo
sind create cluster && sind exec -- sinfo

Every node mounts the working directory as /data, so start in a scratch directory like this one.

See the installation guide to verify the download or install on ARM64, and sind doctor to check the host.

AI disclosure

This project is developed with the help of AI coding tools. Since September 2026, changes written by Anthropic's Claude Code agent are committed as Claude <noreply@anthropic.com> and/or carry a Co-Authored-By: Claude … trailer; earlier AI-assisted commits are not individually marked.

License

sind is licensed under the GNU Lesser General Public License v3.0.

Copyright Β© GSI Helmholtzzentrum fΓΌr Schwerionenforschung GmbH

Directories ΒΆ

Path Synopsis
cmd
sind command
Package main implements the sind CLI.
Package main implements the sind CLI.
internal
archdoc
Package archdoc holds the test that keeps the dependency flow of the architecture guide (docs/content/contributing/architecture-guide.md) in step with the imports of sind's packages.
Package archdoc holds the test that keeps the dependency flow of the architecture guide (docs/content/contributing/architecture-guide.md) in step with the imports of sind's packages.
detach
Package detach gives a write that must not be cut short, such as of the mesh DNS or of sind-nodes.conf, a context that ignores the cancellation and the deadline of the caller's, as Ctrl+C or the --wait limit would kill the docker CLI halfway.
Package detach gives a write that must not be cut short, such as of the mesh DNS or of sind-nodes.conf, a context that ignores the cancellation and the deadline of the caller's, as Ctrl+C or the --wait limit would kill the docker CLI halfway.
doctor
Package doctor provides host prerequisite checks for sind.
Package doctor provides host prerequisite checks for sind.
envvar
Package envvar names the SIND_* environment variables that sind reads, and reads them.
Package envvar names the SIND_* environment variables that sind reads, and reads them.
execopt
Package execopt holds the options that sind's packages give cmdexec.OSExecutor in the context of a call.
Package execopt holds the options that sind's packages give cmdexec.OSExecutor in the context of a call.
fakedocker
Package fakedocker holds a stand-in for dockerd that the unit tests of several packages share, as _test.go files cannot be imported.
Package fakedocker holds a stand-in for dockerd that the unit tests of several packages share, as _test.go files cannot be imported.
help
Package help holds the help texts of sind: what its words mean, what each action of sind ui does, what each page shows and how to do common things.
Package help holds the help texts of sind: what its words mean, what each action of sind ui does, what each page shows and how to do common things.
hostname
Package hostname decides whether a name may be used as one label of a host name.
Package hostname decides whether a name may be used as one label of a host name.
mcpconfig
Package mcpconfig edits the MCP server list in an editor's configuration file (Claude Desktop, VS Code, Cursor) in place.
Package mcpconfig edits the MCP server list in an editor's configuration file (Claude Desktop, VS Code, Cursor) in place.
mock
Package mock provides test doubles for the cmdexec.Executor interface.
Package mock provides test doubles for the cmdexec.Executor interface.
monitor
Package monitor provides event-driven monitoring of Docker containers and systemd services inside them.
Package monitor provides event-driven monitoring of Docker containers and systemd services inside them.
natsort
Package natsort orders names naturally, with runs of digits compared by their value: "worker-2" before "worker-10", "dev2" before "dev10".
Package natsort orders names naturally, with runs of digits compared by their value: "worker-2" before "worker-10", "dev2" before "dev10".
nodecmd
Package nodecmd builds the docker command lines of sind ssh, enter, exec and logs, and of the log views of sind ui, which run in the terminal or stream a node's output.
Package nodecmd builds the docker command lines of sind ssh, enter, exec and logs, and of the log views of sind ui, which run in the terminal or stream a node's output.
observability
Package observability manages a realm's monitoring stack: Grafana Alloy, which collects the Slurm metrics, the container resource use and the journals of the monitored clusters' nodes, Prometheus and Loki, which store them, and Grafana, which shows them.
Package observability manages a realm's monitoring stack: Grafana Alloy, which collects the Slurm metrics, the container resource use and the journals of the monitored clusters' nodes, Prometheus and Loki, which store them, and Grafana, which shows them.
probe
Package probe implements readiness probes for cluster services.
Package probe implements readiness probes for cluster services.
slurm
Package slurm handles Slurm version discovery and configuration generation.
Package slurm handles Slurm version discovery and configuration generation.
ssh
Package ssh handles SSH key injection and host key collection for node containers, and the export of the SSH client configuration.
Package ssh handles SSH key injection and host key collection for node containers, and the export of the SSH client configuration.
testutil
Package testutil provides shared test helpers used across sind packages.
Package testutil provides shared test helpers used across sind packages.
testutil/itest
Package itest holds what the integration tests of every package share: the check for a Docker daemon, whether a host that cannot run them skips or fails them, and the ID of the test process.
Package itest holds what the integration tests of every package share: the check for a Docker daemon, whether a host that cannot run them skips or fails them, and the ID of the test process.
testutil/prereq
Package prereq checks, in the integration tests, that the host meets sind's prerequisites.
Package prereq checks, in the integration tests, that the host meets sind's prerequisites.
ui
Package ui implements sind ui, a local web UI for sind.
Package ui implements sind ui, a local web UI for sind.
ui/action
Package action turns the forms of sind ui's dialogs into the sind commands they run.
Package action turns the forms of sind ui's dialogs into the sind commands they run.
ui/activity
Package activity follows sind's event log, the go-clikit event log (v1) that every sind command appends to and that sind ui reads its progress display from, and reduces its lines to store.Run values: each run is one command with the tree of its spans.
Package activity follows sind's event log, the go-clikit event log (v1) that every sind command appends to and that sind ui reads its progress display from, and reduces its lines to store.Run values: each run is one command with the tree of its spans.
ui/collect
Package collect fills the store of sind ui with what Docker and the host know: the realms, clusters, nodes, networks and volumes, the mesh, the status of the clusters, the realm locks, the monitoring stacks and the host checks.
Package collect fills the store of sind ui with what Docker and the host know: the realms, clusters, nodes, networks and volumes, the mesh, the status of the clusters, the realm locks, the monitoring stacks and the host checks.
ui/demo
Package demo is the made-up Docker host that sind ui --demo shows: two realms with clusters of different shapes and states, a mesh, a monitoring stack, the host checks with one warning, and a few runs of the activity log.
Package demo is the made-up Docker host that sind ui --demo shows: two realms with clusters of different shapes and states, a mesh, a monitoring stack, the host checks with one warning, and a few runs of the activity log.
ui/nodefold
Package nodefold folds the names of nodes into node sets as sind's node arguments take them.
Package nodefold folds the names of nodes into node sets as sind's node arguments take them.
ui/run
Package run starts the sind commands that the dialogs of sind ui make, and keeps their tasks in the store while they run.
Package run starts the sind commands that the dialogs of sind ui make, and keeps their tasks in the store while they run.
ui/store
Package store holds what sind ui shows, in memory: the collectors write it, the pages and the live updates read it.
Package store holds what sind ui shows, in memory: the collectors write it, the pages and the live updates read it.
pkg
cluster
Package cluster provides types and operations for sind cluster management.
Package cluster provides types and operations for sind cluster management.
cmdexec
Package cmdexec provides a testable abstraction for running external commands.
Package cmdexec provides a testable abstraction for running external commands.
config
Package config handles parsing and validation of sind cluster configuration.
Package config handles parsing and validation of sind cluster configuration.
docker
Package docker provides a thin abstraction over the Docker CLI.
Package docker provides a thin abstraction over the Docker CLI.
log
Package log provides context-based structured logging.
Package log provides context-based structured logging.
mesh
Package mesh manages the global infrastructure shared across all sind clusters.
Package mesh manages the global infrastructure shared across all sind clusters.
state
Package state locates sind's per-user state on the host and holds the realm lock, which serializes the operations that change a realm.
Package state locates sind's per-user state on the host and holds the realm lock, which serializes the operations that change a realm.
tools
images command
Command images prints the images of the realm services that sind pins, one per line: the mesh's CoreDNS and the monitoring stack's four.
Command images prints the images of the realm services that sind pins, one per line: the mesh's CoreDNS and the monitoring stack's four.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL