Machine Learning pathway increased my salary by 40%
Slurm, HPC & Workload Scheduling
Run AI training the way supercomputing centres run simulation: scheduler topology, fair-share policy, gang scheduling and the queue discipline that keeps expensive clusters busy.
Executive Summary
GPU clusters are scarce and expensive, so the scheduler is a financial control as much as a technical component. Slurm remains the reference for large-scale AI training because it handles gang scheduling, topology-aware placement and strict fair-share accounting, while Kubernetes dominates serving and smaller interactive workloads. The engineering questions are consistent across both: how work is queued, how jobs reserve whole nodes or fractions of them, how preemption protects priority work, how accounts are charged, and how utilisation is measured honestly. A cluster with excellent hardware and a poor scheduler runs at forty percent utilisation and looks, from the outside, like a capacity shortage.
Definition
HPC workload scheduling is the allocation of compute, memory and interconnect resources to jobs according to policy, ensuring jobs start with all required resources simultaneously and that capacity is shared according to agreed priorities.
Why It Matters
Scheduling determines utilisation, time-to-result and cost per experiment. Poor policy produces long queues for small jobs, idle GPUs reserved by stalled jobs, and priority inversion where urgent work waits behind bulk training. Scheduler design also determines whether teams trust the cluster enough to use it, which is why many organisations end up with shadow infrastructure that duplicates the expensive capability they already own.
2026 Landscape
Slurm is the default for large training and simulation, with topology-aware placement and fair-share accounting refined over decades. Kubernetes has become the platform for serving and interactive work, with batch schedulers such as Volcano and Kueue adding queueing semantics. Ray has emerged as the application-level layer that spans both, allowing a single job to fan out across a cluster. Most large organisations now run both, which makes cross-scheduler accounting and a shared quota model the practical challenge.
Learning Objectives
- Design queue and partition policy that matches workload mix
- Apply gang scheduling and topology-aware placement for training jobs
- Implement fair-share accounting that reflects organisational priorities
- Use preemption without destroying long-running progress
- Measure utilisation in a way that reflects real capacity
Prerequisites
- Linux administration and job submission fundamentals
- Basic understanding of distributed training and collective communication
- Familiarity with accounting and quota concepts
Queue and Partition Design
Partitions separate workloads by hardware type, job size and priority. A single queue forces small interactive jobs to wait behind week-long training runs, while too many partitions fragment capacity and strand GPUs.
Gang Scheduling
Distributed training needs every rank to start together. The scheduler must allocate the full set atomically or not at all, otherwise partial allocations deadlock waiting for peers that never arrive.
Topology-Aware Placement
Collective communication performance depends on where ranks land. Placing a job within a leaf switch or spanning fat-tree tiers changes throughput materially, so placement policy is a performance decision.
Fair-Share and Accounts
Accounting assigns usage to projects and adjusts priority over time. Without it, one team’s bulk jobs monopolise capacity; with it, sharing is predictable and defensible in budget conversations.
Preemption Policy
Preemption protects priority work at the cost of progress on others. Checkpointing discipline determines whether preempted jobs lose hours or resume cleanly, so policy and application design must move together.
Architecture
A scheduling architecture separates admission, placement and accounting. Jobs are admitted against quota, placed with topology awareness, executed with exclusive or fractional node allocation, and charged to accounts that feed both priority calculation and cost reporting.
Reference Architectures
Training job lifecycle
From submission to completion, including queueing, placement and checkpointing.
Utilisation reporting
How cluster usage becomes cost and capacity evidence.
Utilisation is not what the dashboard says
Allocated GPU hours overstate useful work: a job holding nodes while waiting on data or stuck in a straggler shows as busy. Measure achieved throughput per GPU and the share of time spent in communication or idle waits. The gap between allocated and effective utilisation is usually the single largest recoverable capacity in a cluster, and it is invisible in scheduler accounting alone.
Backfill is a policy, not a default
Backfill lets small jobs start early by predicting when large reservations will be free, which dramatically improves responsiveness. It also risks delaying the large job if predictions are wrong, so reservation windows and job time limits must be enforced. Teams that set generous time limits to avoid requeueing quietly break backfill and lengthen everyone’s queue.
Capacity planning under constraint for Slurm, HPC & Workload Scheduling
Capacity work in this area is constrained planning, not demand forecasting. Accelerator supply, procurement lead times, programme allocation and jurisdictional availability all bound what can be delivered, so the plan must state what happens in the constrained case as clearly as the ideal one. Model demand in scenarios — base, growth and constrained — and identify the workload classes that can be deferred, degraded or moved when capacity is short. The discipline that separates mature teams is deciding priority in advance: which work gets the scarce resource when there is not enough for everything, and who makes that call. Written policy prevents the negotiation from happening at incident speed, when it is always the loudest request that wins.
What to measure in the first quarter
A new capability earns trust through a small number of honest measures: . Start with the baseline and publish it before making changes, because a metric introduced alongside a change cannot distinguish improvement from measurement artefact. Report utilisation in terms of useful work rather than allocation, and report cost per unit of delivered work rather than aggregate spend. Segment by workload class and by tenant where behaviour genuinely differs. Review monthly for the first quarter, then quarterly. The test of the measurement programme is whether it changes a decision: if nothing has ever been re-prioritised because of a number, the numbers are decoration.
Operating model and ownership
The technical design in this area is usually the easier half. Sustaining it requires clear ownership of four things: capacity and procurement, the control plane and its upgrade cadence, the data paths and their governance, and the on-call rotation that responds when something breaks. Where any of these is unassigned, it is performed by whoever notices, which produces inconsistent practice and quiet accumulation of risk. Slurm, HPC & Workload Scheduling also depends on skills that are scarce, so documentation and runbooks are capacity: a design only one person can operate is a single point of failure that no monitoring will detect.
Three questions that catch most design errors
Design reviews in this area converge on three questions that expose most weaknesses before build. First: what happens when a component fails, and how would you know? A design that describes steady state but not degradation is incomplete, because the interesting behaviour is at the boundary. Second: what is the unit cost, and what drives it? Proposals that cannot state cost per unit of delivered work usually contain a hidden assumption about utilisation or workload mix. Third: what evidence will prove this works, and who reviews it? Without a defined measure and a named reviewer, acceptance becomes a matter of opinion, and opinion shifts when the first incident arrives. Applying these three questions consistently is more valuable than any specific technology choice, because they force the design to be honest about capacity, failure and cost before capital is committed.
Working with vendors and providers
Providers shape what is possible here, so the relationship needs engineering terms: change notification before upgrades that affect you, documented behaviour at the versions you run, capacity commitments with defined allocation, and support escalation paths that reach people who understand the stack. For hardware, mean time to replacement for failed accelerators is often the real availability constraint, and it belongs in the contract rather than in an incident review. Record these commitments and review them against experience each year; a support agreement that has never been exercised is a hypothesis, not a capability.
Technology Stack
| Layer | Options | What to decide |
|---|---|---|
| Scheduler | Slurm, PBS Pro, LSF, Volcano, Kueue | Single or split scheduling across workload types |
| Placement | Topology plugins, node affinity rules | How strictly jobs are confined to interconnect domains |
| Accounting | Slurm accounting, custom chargeback | Granularity of attribution to projects |
| Monitoring | Prometheus, DCGM, Grafana | Allocated versus actual utilisation measurement |
| Checkpointing | Application-level, distributed filesystem snapshots | How much progress a preemption may cost |
Scheduler Options for AI Workloads
| Scheduler | Strengths | Weaknesses | Best fit |
|---|---|---|---|
| Slurm | Topology placement, gang scheduling, mature accounting | Steep learning curve, weaker serving story | Large training and simulation |
| Kubernetes plus Kueue | Familiar platform, good serving integration | Placement control weaker than HPC schedulers | Mixed serving and moderate training |
| Volcano | Batch semantics on Kubernetes | Operational complexity | Batch workloads on cloud-native stacks |
| Ray cluster | Application-level distribution | Not a substitute for cluster-level policy | Elastic, application-managed workloads |
Enterprise Use Cases
Case Studies
Problem: A cluster reported high allocation while teams complained of long queues, and capacity requests grew each quarter.
Opportunity: Distinguish allocated from effective utilisation.
Architecture: Added GPU-level throughput and idle instrumentation, correlated with job metadata, and identified jobs holding nodes while waiting on data loads.
Outcome: Effective utilisation rose materially without new hardware.
Lessons: Allocation is a claim on capacity; only measured throughput is capacity delivered.
Problem: Priority preemption repeatedly killed long jobs that had no checkpointing, so teams stopped using the shared cluster.
Opportunity: Pair preemption policy with checkpoint discipline.
Architecture: Mandatory periodic checkpoints enforced by the job template, grace period on preemption, automatic requeue from the last checkpoint.
Outcome: Preemption became routine and teams returned to the shared cluster.
Lessons: Preemption is only acceptable when its cost is bounded.
Implementation Steps
Design and validate a Slurm, HPC & Workload Scheduling plan
Problem: Produce a defensible plan for slurm, hpc & workload scheduling covering one real workload, including capacity, failure behaviour, cost and the evidence needed to get it approved.
- A written requirement with measurable targets and named owners
- Current-state baseline covering performance, cost and failure behaviour
- A design with recorded constraints and the trade-offs accepted
- Failure analysis covering the top three failure modes and their handling
- A cost model with unit economics per workload, not headline rates
Architecture: Design the target state end to end: capacity and placement, the data path, the failure and recovery path, and the monitoring that will demonstrate it is working. Slurm, HPC & Workload Scheduling decisions are recorded as architecture decisions with the constraints that shaped them.
Outcome: An approved, evidence-backed plan for slurm, hpc & workload scheduling with the failure behaviour understood and the cost model defensible.
GCC Applications
- Global capability centres use slurm, hpc & workload scheduling standards to keep platform practice consistent across regions, so workloads behave the same wherever they are operated.
- Architecture review boards apply the topic when approving platform change, ensuring capacity, resilience and cost evidence accompanies the proposal.
- Operations teams use the associated metrics in service reviews, replacing utilisation claims with measured delivery and recovery data.
- Procurement and risk functions rely on the recorded constraints and evidence — residency, capacity commitments, provenance — during vendor and audit review.
Key Metrics
Risks & Mitigation
Maturity Model
Future Roadmap
Emerging Trends
Career Applications
Frequently Asked Questions
Research References
Continue this lesson with a subscription
AI Hybrid-Cloud Infrastructure & AI Supercomputing is part of the paid catalogue. You have read the free preview. A subscription opens the rest of this lesson, the classroom slides and the assessment questions.
- The full lesson for this topic and every other catalogue topic
- Every classroom slide deck and worked example
- All assessments, with a verifiable certificate on completion
The Free-To-Learn library stays open to everyone and is not affected by this.
