Beyond Kubernetes at Modal: How to Scale 1 Million Concurrent Sandboxes in Seconds

Sergio De Simone ยท rss ยท 2026-09-23 Reader ๐Ÿ–ฅ๏ธ

Post-Kubernetes / Decentralized Orchestration at ScaleSandboxing
Modal replaced Kubernetes-style centralized, strongly-consistent orchestration with a decentralized architecture โ€” per-worker sources of truth, a parallel fleet of scheduling servers acting like load balancers, and a single Redis stream as the only shared bottleneck โ€” to run over a million concurrent AI sandboxes, demonstrating that extreme-scale, millisecond-latency AI infrastructure requires walking away from, rather than extending, Kubernetes' coordination model.

theoretical ยท mixed โ€” Primarily expository/explanatory: an InfoQ news piece reporting, in paraphrase and block quotes, how Modal's staff engineers diagnosed Kubernetes' scaling limits and redesigned around them. It carries practical design principles (horizontal-scalability-by-default, worker-as-source-of-truth) a reader could directly apply, and layers on argumentative commentary from two outside voices (Dowling, Jones) drawing broader interpretive conclusions the original Modal post doesn't itself make.

Structure

PartRole
Framing: Modal's staff engineers describe rebuilding sandbox infrastructure to support millions of concurrent sandboxes and tens of thousands of creations per second.context
Diagnosis: traditional orchestration (Kubernetes) struggles at this scale because of centralized coordination and strongly consistent state โ€” etcd load and scheduler load both grow with nodes/pods, and etcd is not natively shardable.evidence / problem statement
Design principle: everything O(sandboxes) or O(nodes) must be horizontally scalable by default; sandbox creation must be simple; everything else is secondary.thesis statement of Modal's approach
Mechanism: workers become their own source of truth; a fleet of parallel scheduling servers replaces one serialized scheduler; placement is negotiated via RPC accept/reject rather than centrally locked.evidence โ€” how the principle is implemented
Residual bottleneck: all workers publish state to a single Redis stream, load-tested viable past 100,000 workers.qualification / limit
Benchmark: 1 million sandboxes created in under a minute, median startup-to-code time under 0.5 seconds.evidence โ€” proof of the claim
External commentary: Dowling on iterative difficulty at each order of magnitude; Jones on the architectural significance and a predicted split between an execution plane and a coordination plane.interpretation / broader conclusion
Positioning: Modal is grouped with Unikraft, Google Substrate, and Overdrive as part of a broader 'rebuild the cloud' trend.context / generalization

Key terms

Propositions

Arguments

Modal achieved horizontal scaling to millions of concurrent sandboxes because it replaced Kubernetes' centralized, strongly-consistent coordination model with a decentralized, load-balancing-style scheduling architecture. strength: high
Explicit premises:
Implicit premises:
Inferences:
The industry is heading toward decoupling the 'execution plane' (fast, isolated sandbox creation, which Modal built) from the 'coordination plane' (shared memory/security boundaries for multi-agent workflows, which remains Kubernetes-shaped systems' turf). strength: low
Explicit premises:
Implicit premises:
Inferences:

Narratives

Questions addressed

Gaps

Closes gaps elsewhere

Related documents