Design a Scheduler for Controlled Chaos Experiments in Production
Last updated: November 29, 2026
Quick Overview
Design a platform that lets service teams schedule fault injection experiments (added latency, failed calls, instance termination) against a small slice of real production traffic, compares the slice with a control, and aborts automatically when customer impact appears.
Netflix
November 29, 20260
0
0 solved
Design a platform that lets service teams schedule fault injection experiments (added latency, failed calls, instance termination) against a small slice of real production traffic, compares the slice with a control, and aborts automatically when customer impact appears.
Netflix popularized chaos engineering, and running experiments safely on production traffic is a hard scheduling and safety problem. The interviewer wants to see blast radius control, a principled abort signal tied to streaming starts, and scheduling that avoids overlapping experiments or running during peak and incidents.
What the Interviewer Expects
- Define the experiment model: target, fault, traffic slice, duration, abort criteria
- Route a small experiment cohort and a matched control cohort
- Use a customer-facing metric (stream starts per second) as the abort signal
- Prevent conflicting or overlapping experiments with a scheduler and locks
- Make abort fast and the fault injection fail safe
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 choose the cohort size so the experiment has enough statistical power?
- How would you run experiments continuously and automatically rather than on request?
- What would you do if the injection mechanism itself had a bug?
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: create an experiment (target service and dependency, fault type and magnitude, cohort percent, duration), schedule it in an allowed window, run it, report results, and abort automatically....
High-Level Design
A control plane stores experiments and a calendar. A scheduler picks due experiments, acquires locks on the affected dependency edges, and checks a global freeze flag. When it starts, the routing laye...