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
November 29, 20260
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
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- 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 ProblemsSample 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...