Design a Distributed Scheduler for Simulation Regression Suites in CI
Last updated: November 29, 2026
Quick Overview
Design a system that, for every autonomy stack commit, schedules tens of thousands of simulation scenarios across mixed CPU and GPU pools, returns pass or fail results to CI quickly, and handles retries, priorities and flaky scenarios.
Applied Intuition
November 29, 20260
0
0 solved
Design a system that, for every autonomy stack commit, schedules tens of thousands of simulation scenarios across mixed CPU and GPU pools, returns pass or fail results to CI quickly, and handles retries, priorities and flaky scenarios.
Applied Intuition sells simulation and validation infrastructure that customers run in CI at large scale, so this mirrors their core product. The interviewer checks job queue design, fair sharing across teams, idempotent retries, and how results are aggregated into a merge decision.
What the Interviewer Expects
- Clarify scale, latency target and hardware types
- Separate suite planning, queueing, execution and result aggregation
- Handle priorities and per-team fairness on shared pools
- Make retries idempotent and distinguish flaky from failing scenarios
- Cache build artifacts and skip unaffected scenarios
- Discuss preemption and spot capacity trade-offs
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 give a release branch priority without starving other teams?
- How would you decide which scenarios to skip for a small change?
- How would you detect and quarantine flaky scenarios automatically?
- How would you support customers running this on their own clusters?
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: on a commit, run a suite of about 50k scenarios (each 30 seconds to 10 minutes, some needing GPUs for sensor rendering), report per-scenario results and an overall verdict to CI. Support p...
High-Level Design
- Suite planner: resolves the scenario list for a commit, pins container image digests and map versions, and writes a suite record.
- Job store (Postgres): suite and job rows with state, att...
Submit Your Answer
Applied Intuition Software Engineer Interview Guide
Interview process, tips, and preparation timeline