Design a Topology-Aware Gang Scheduler for Multi-Tenant GPU Clusters

Last updated: November 29, 2026

Quick Overview

Design the scheduler that places distributed training jobs needing hundreds of GPUs onto a shared cluster, ensuring all-or-nothing (gang) placement, InfiniBand topology locality, tenant quotas, and fair sharing between reserved and on-demand capacity.

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

0

0

0 solved


Design the scheduler that places distributed training jobs needing hundreds of GPUs onto a shared cluster, ensuring all-or-nothing (gang) placement, InfiniBand topology locality, tenant quotas, and fair sharing between reserved and on-demand capacity.

Nebius runs managed Kubernetes and managed Slurm (its open-source Soperator runs Slurm on Kubernetes) on clusters of thousands of GPUs. A system design round for the compute platform would test whether you can combine gang scheduling, network topology, and multi-tenant policy without deadlocks or starving large jobs.

What the Interviewer Expects
  • Explains why partial placement of a synchronous job wastes GPUs and can deadlock
  • Models topology as node, leaf switch, spine and scores placements by locality
  • Separates quota and admission from placement
  • Handles large jobs starving behind small ones (reservations or backfill)
  • Discusses preemption policy and checkpoint-aware eviction
  • Covers scheduler state consistency and failure recovery
Key Topics to Cover
gang scheduling
topology awareness
backfill
quotas and fairness
preemption
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 would you integrate this with Kubernetes, as a scheduler plugin or a separate controller?
  • A 512-GPU job is waiting while small jobs keep filling holes; what exactly does backfill do here?
  • How do you handle a node failing in the middle of a gang-scheduled job?
  • How would you expose expected start time to customers?
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 job with gpus, gpus_per_node, priority, tenant; place all pods at once or none; prefer nodes under the fewest leaf switches; enforce reserved quotas (a tenant's committed capaci...

High-Level Design

Components: an admission controller that checks quota and queues jobs per tenant; a cluster state cache (nodes, free GPUs, health, topology labels) fed from the node agents; a placement engine; and a ...


Submit Your Answer
Markdown supported

Related Questions