Design a Gang Scheduler for Multi-Node GPU Training Jobs

Last updated: November 29, 2026

Quick Overview

Design a scheduler for a shared cluster of thousands of 8-GPU nodes that places distributed training jobs needing many GPUs at once, respecting NVLink and network topology, team quotas, priorities and preemption.

NVIDIA
System Design
Software Engineer
NVIDIA
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design a scheduler for a shared cluster of thousands of 8-GPU nodes that places distributed training jobs needing many GPUs at once, respecting NVLink and network topology, team quotas, priorities and preemption.

A senior system design question for NVIDIA teams running internal research clusters and DGX Cloud, where idle GPUs are extremely expensive and a badly placed job can lose a large share of its throughput to cross-rack traffic. The interviewer checks all-or-nothing placement, topology awareness, fairness across teams, and how you handle node failures mid-job.

What the Interviewer Expects
  • Defines gang (all-or-nothing) placement and why partial allocation deadlocks
  • Models topology: GPUs within a node via NVLink, nodes within a leaf switch, leaf switches within a pod
  • Combines quota, priority and fair share with backfilling to keep utilization high
  • Handles preemption with checkpoint signals and grace periods
  • Covers node failure detection, draining, and job restart from checkpoint
Key Topics to Cover
gang scheduling
topology-aware placement
fair share and quotas
preemption
backfilling
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you avoid a large job starving forever while small jobs keep backfilling?
  • How would you support elastic jobs that can run on 64 to 256 GPUs?
  • How do you place inference services and training jobs on the same cluster?
  • What metrics tell you the scheduler is doing a good job?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: submit a job with GPU count (multiples of 8 for multi-node), GPU type, max runtime, priority and team; place all ranks at once; preempt lower-priority work; report status. Non-functional: ...

High-Level Design

Components: an API server that validates and stores jobs in a strongly consistent store (etcd or Postgres); a scheduler loop that owns placement; node agents that report GPU health (via DCGM-style tel...


Submit Your Answer
Markdown supported