Pick Slurm if your GPUs mostly run multi-node batch training for many users on a fixed cluster, and pick Kubernetes if the same GPUs also serve inference or your team already runs containers. Nodus is the third option when you have no standing cluster to fill: it runs each training job on the cheapest capacity that can start it and restores your checkpoint when a machine is lost. Slurm has fair-share and all-nodes-at-once allocation built in, while Kubernetes needs a batch layer such as Kueue or Volcano for both.

What is the actual difference between Slurm and Kubernetes?

Slurm is a batch scheduler built around a queue of jobs, and Kubernetes is a container orchestrator built around services that keep running. Slurm's own overview describes three jobs: allocate nodes to users for some duration, start and monitor work on them, and arbitrate a queue of pending work (Slurm overview). Kubernetes starts from Pods and controllers that move actual state toward a declared desired state, such as a Deployment (Kubernetes Deployments).

Both can schedule GPUs. Slurm treats them as generic resources (GRES) that a job requests with --gpus or --gpus-per-node (Slurm GRES). Kubernetes exposes them through vendor device plugins, and a Pod requests them in its resource limits (Kubernetes GPU scheduling).

The gap is in everything around the GPU request. Slurm ships the policies a shared research cluster needs. Kubernetes ships the primitives a long-running service needs, and you add batch policy on top.

How do they compare feature by feature?

The table maps each decision factor to what the project's own docs say. "Add-on" means a separate project you install and operate.

Decision factor Slurm Kubernetes Nodus
Multi-node allocation A job asks for -N nodes and gets them as one allocation (sbatch) Native gang scheduling is Beta since v1.37 and off by default (gang scheduling); add-ons: Volcano, Kueue Acquires every member, checks connectivity, then starts all ranks; 2 to 8 nodes in Beta (multi-node)
Fair-share between teams Fair Tree is the default fair-share algorithm (Fair Tree) Add-on: Kueue fair sharing (Kueue) Quotas and Budgets cap use; no fair-share policy documented (quotas)
Hard limits Hierarchical QOS, user and account limits (resource limits) ResourceQuota per namespace, including requests.nvidia.com/gpu (quotas) Quotas, per-run --max-cost, Budgets
Preemption Cancel, requeue or suspend by partition or QOS (preemption) PriorityClass evicts lower-priority Pods (priority) Lost machines are replaced and the latest checkpoint restored
MPI Launches tasks through PMI-1, PMI-2 or PMIx (MPI guide) Add-ons; Kueue documents all-or-nothing for MPI-based jobs (Kueue) torchrun, Ray and verl launchers; no MPI launcher listed
Inference serving Not its model: jobs run for a duration Deployments plus HorizontalPodAutoscaler (HPA) Separate InferenceEndpoints (Beta)
Who runs it You run slurmctld, slurmd and optionally slurmdbd You or a managed service run the control plane; you add GPU drivers, device plugins and batch add-ons Nodus; you run jobs

Docs checked November 24, 2026.

Which handles multi-node training better?

Slurm, by default, because a multi-node job starts only once it holds all its nodes. You ask for -N 4 and Slurm allocates four nodes to the job before your script runs (sbatch). Note that Slurm's page titled "gang scheduling" is about something else: time-slicing several jobs on the same resources (Slurm gang scheduling).

Plain Kubernetes schedules Pods one at a time. Its native all-or-nothing gang scheduling exists, but it is Beta since v1.37 and needs the GenericWorkload feature gate turned on (Kubernetes gang scheduling). Volcano lists gang scheduling so that all tasks of a job start together (Volcano). Kueue's docs warn that on a default configuration, two such jobs can deadlock when physical capacity does not match the configured quotas, and they describe an all-or-nothing mode to prevent it (Kueue all-or-nothing).

Here is what a stalled start costs, as our own illustrative arithmetic. A 4-node job of 8 x NVIDIA H100 per node gets 3 nodes' Pods bound and waits 2 hours for the fourth. That holds 24 GPUs idle for 2 hours, or 48 GPU-hours. Valued at the $2.60/hr listed for an H100 SXM on the Nodus pricing page, that is $124.80 per stall, and $3,744 a month if it happens once a day.

A 4-node H100 job that binds 3 of 4 nodes and waits 2 hours idles 48 GPU-hours, $124.80 at $2.60 per GPU-hour, versus $0 when all nodes are allocated together.
All-or-nothing allocation turns a partial start into a queued job that holds nothing.

If you go with Kubernetes for multi-node training, gang scheduling is the first add-on to configure, not the last. For how the training script itself splits across GPUs, see our guide to multi-GPU training in PyTorch.

Which is better at sharing GPUs fairly between teams?

Slurm, unless you are willing to run Kueue. Slurm's fair-share factor defaults to the Fair Tree algorithm, which ranks every user under a tree of accounts, and sshare -l shows any user why they rank where they do (Fair Tree). Limits stack from partition QOS down through user and account associations (resource limits). Its backfill plugin also starts lower-priority jobs when they would not take resources a higher-priority job needs (scheduling).

Kubernetes gives you a hard cap per namespace. A ResourceQuota can limit total requests.nvidia.com/gpu in a namespace, but it caps; it does not queue or share (resource quotas). Kueue adds the missing part: it decides when a job waits, when it is admitted and when it is preempted, with quotas and fair sharing among tenants (Kueue overview).

Preemption works in both. Slurm can cancel, requeue or suspend lower-priority jobs per partition or QOS (Slurm preemption). Kubernetes evicts lower-priority Pods for a pending higher-priority Pod, and its docs advise ResourceQuota so untrusted users cannot claim top priority (Pod priority). Either way, a preempted training job only resumes cleanly if it saves checkpoints, which we cover in resuming training after preemption.

What if the same GPUs also serve inference?

Then Kubernetes, because serving is what it was built for. A Deployment keeps a set of replicas running and rolls out new versions at a controlled rate (Deployments). A HorizontalPodAutoscaler adds Pods when load rises (HPA). Slurm allocates nodes for some duration and then hands them back, which fits jobs that end, not endpoints that should not.

Ray users get a middle path. KubeRay runs each Ray node as a Pod and can autoscale the Ray cluster to the workload (Ray on Kubernetes).

Can you run Slurm on Kubernetes and get both?

Yes, and several projects exist for exactly that. SchedMD's Slinky includes slurm-operator, which runs Slurm clusters on Kubernetes as Pods, and slurm-bridge, which uses Slurm as a Kubernetes scheduler for both kinds of workload (Slinky). Soperator is an open-source operator that turns a SlurmCluster custom resource into a working Slurm cluster, including drivers, the CUDA and NCCL stack, shared storage, health checks and accounting (Soperator).

The trade is that you now operate two systems in one. Researchers keep sbatch, the platform team keeps Kubernetes, and someone has to understand both when a node misbehaves.

How much does the operating burden matter?

It matters less than idle GPUs, which is the useful way to frame it. Pick the scheduler that keeps your GPUs busy for your workload mix, then price the people needed to run it.

Take an illustrative cluster of 8 nodes x 8 H100, or 64 GPUs. Over a 730-hour month that is 46,720 GPU-hours, worth $121,472 at the $2.60/hr H100 SXM rate on the Nodus pricing page. Every 10 points of idle time is 4,672 GPU-hours, or $12,147.20 a month.

Idle share of 64 x H100 Idle GPU-hours per month Value at $2.60/hr Engineer-hours it pays for at $100/hr
10% 4,672 $12,147.20 about 121
20% 9,344 $24,294.40 about 243
30% 14,016 $36,441.60 about 364

GPU rate from the Nodus pricing page, checked November 24, 2026. Cluster size, idle shares and the $100/hr loaded engineer cost are our illustrative assumptions.

Monthly value of idle time on 64 H100 GPUs at $2.60 per GPU-hour: $12,147.20 at 10% idle, $24,294.40 at 20% and $36,441.60 at 30%.
On a 64-GPU cluster, ten points of idle time cost more than most scheduler migrations.

Read the table as a budget. If moving from plain Kubernetes to Kubernetes plus Kueue and gang scheduling, or from Kubernetes to Slurm, would cut idle time by 10 points, you can spend about 121 engineer-hours a month on it and break even. If your cluster is already busy, the migration rarely pays.

When is a managed platform like Nodus the better answer?

When you do not have a cluster to keep busy. Both schedulers assume you own or reserve a fixed set of nodes and the question is how to share them. If your training comes in runs rather than as constant demand, you can skip the cluster and submit the run.

On Nodus, a two-node job is one command, copied from the multi-node docs:

nodus run --name torchrun-2-node --gpu H100 --nodes 2 --launcher torchrun --max-cost 2.00 -- torchrun train.py 

Nodus acquires every member, checks that they can reach each other and only then starts your command on all of them. If a member's machine is lost, it restarts the gang with only the lost ranks on new machines and restores the latest checkpoint. Placement defaults to the cheapest offering that can start the run now, and a run that cannot fit its deadline or budget waits in Queued with the reason (placement). If you think in kubectl, the CLI uses the same verbs and kubectl itself can read and apply Nodus Jobs (Nodus for kubectl users).

If you already hold reserved GPUs in a managed Kubernetes cluster, Nodus can run your work there first, as Pods in one namespace you create for it (Beta, cloud accounts). That path covers eligible single-node work; multi-node runs and Sandboxes keep their own routing.

Where do Slurm and Kubernetes beat Nodus?

Be honest about the limits before you choose us. Our multi-node support is Beta with an 8-node ceiling, and a given provider pair can be qualified for fewer members. When members on different providers talk over public addresses, that traffic is not encrypted in the Beta, so keep the default Colocated network if that matters (multi-node).

Slurm is the better choice for large MPI jobs that need PMIx, for jobs larger than our 8-node gang ceiling, and for a shared research cluster where fair-share and per-account accounting are the point. Kubernetes is the better choice when one GPU pool serves production inference and batch together under one operations team. If your GPUs run near full all month on a reservation you already pay for, a scheduler you control will beat paying per run; we price that trade in Nodus vs CoreWeave.

So which should you pick?

Use this rule, in order. It came from mapping each project's documented features against the workload mix, not from a benchmark.

  1. Most GPU-hours are multi-node batch training for several teams on a fixed cluster: Slurm.
  2. A meaningful share of GPUs serve inference, or you already run Kubernetes in production: Kubernetes, with Kueue for quota and fair sharing and a gang scheduler before the first multi-node job.
  3. Researchers insist on sbatch and the platform team insists on Kubernetes: Slurm on Kubernetes through Slinky or Soperator, with the cost of running both.
  4. Demand comes in runs, nobody on the team wants to operate a scheduler, or you need GPUs only some weeks: Nodus, priced per run on the pricing page.

FAQ

Is Slurm free?

Yes, Slurm is open source, and so is Kubernetes (Slurm overview). The cost is the people who configure and run it, and the GPUs that sit idle when the policy is wrong.

Can Kubernetes share one GPU between Pods?

Not with the basic request. GPU requests must equal limits, and Kubernetes does not allow overcommit of extended resources such as nvidia.com/gpu (GPU scheduling, resource quotas). Volcano lists GPU sharing with CUDA and MIG modes, and Slurm supports MPS, MIG and sharding through GRES (Volcano, Slurm GRES).

Does Nodus replace Slurm or Kubernetes?

For a team without a standing cluster, Nodus replaces the need to run either: you submit jobs and Nodus places them. For a team with a busy cluster, Nodus is a place for overflow runs, and it can use your own Kubernetes namespace for single-node work.

What happens to a Nodus multi-node job that cannot get all its machines?

It waits at assembly for up to 15 minutes by default, then releases every acquired member and retries up to 2 times before failing with GangAssemblyTimeout (multi-node). You are not left holding three idle nodes while the fourth never arrives.

Originally published on the Nodus blog.