Connect dunscaith to your cluster¶
dunscaith reaches a scheduler through a go/dispatch adapter. Two are linked into the binary,
slurm and kubeflow. cluster.adapter names the one to open, and cluster.config holds that
adapter's own settings, which the adapter validates.
Slurm¶
Run dunscaith on a login node of the cluster. With no cluster.config, the adapter runs Slurm's
own commands on that host, as you:
cluster.name is yours to choose. It is recorded with each job, and submit needs it.
A site usually sets where jobs go by default:
One job overrides those with the slurm.Placement extension in its
job file.
On Slurm a job's command runs once, on the first node it was given. Starting the processes on
the other nodes is the command's job, so a multi-node job puts srun, or a launcher that does the
same, in front:
- Every key: the adapter's configuration reference.
- What the cluster must provide: prepare a cluster.
Kubeflow¶
The adapter needs the namespace jobs run in, and a Trainer runtime to check the cluster with:
cluster:
name: train
adapter: kubeflow
config:
namespace: team-a
probeRuntime: {kind: ClusterTrainingRuntime, name: torch-distributed}
It finds the cluster through your kubeconfig, as kubectl does. A Kubeflow job names its runtime
and its image in the job file:
extensions:
kubeflow.RuntimeRef: {kind: ClusterTrainingRuntime, name: torch-distributed}
dispatch.Image: {ref: registry.example.com/train:2026.10}
- Every key: the adapter's configuration reference.
- The rights your credential needs: grant the adapter RBAC.
When it does not open¶
Every command that needs the scheduler opens the adapter first, and says which one failed and which the build links:
no cluster adapter: set cluster.adapter (this build links: kubeflow, slurm)
open cluster adapter "pbs" (this build links: kubeflow, slurm): ...
A key the adapter does not know is the adapter's refusal, and it names the key.