Design Per-Team GPU Quotas for Shared Training Clusters

Last updated: November 29, 2026

Quick Overview

Design a quota and scheduling service that divides Meta's shared GPU training clusters among product and research teams, guaranteeing each team its reserved share while letting idle capacity be borrowed and reclaimed through preemption.

Meta
System Design
Machine Learning Engineer
Meta
November 29, 2026
Machine Learning Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design a quota and scheduling service that divides Meta's shared GPU training clusters among product and research teams, guaranteeing each team its reserved share while letting idle capacity be borrowed and reclaimed through preemption.

Meta runs very large GPU fleets for ranking and generative AI training, and capacity allocation is a constant negotiation between teams. The interviewer checks that you can model guaranteed versus borrowable quota, design preemption that does not waste long training runs, and keep scheduling fair.

What the Interviewer Expects
  • Model quota as guaranteed share plus burst borrowing
  • Define preemption rules and checkpoint expectations
  • Handle gang scheduling for multi-node jobs
  • Account for topology (same rack or network domain)
  • Provide visibility into usage and queue wait
Key Topics to Cover
hierarchical quotas
preemption
gang scheduling
checkpointing
fair share
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 prioritize a critical production model retrain over research jobs?
  • What happens when a 1,024-GPU job cannot find contiguous capacity?
  • How do you stop a team from hoarding reserved quota they do not use?
  • How would you charge back usage?
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: each team (and sub-team) has a guaranteed quota in GPU count per cluster. Jobs request N GPUs, all-or-nothing (gang). Jobs within quota are guaranteed to start once capacity frees up; ...

High-Level Design

Users submit jobs to a job service that stores specs (GPUs, topology needs, priority, checkpoint interval). A quota service holds the hierarchy: org > team > project with guaranteed and max va...


Submit Your Answer
Markdown supported