Sandbox Architecture Overview
StateSet Sandbox runs in Kubernetes with a controller that manages sandbox lifecycles, a warm pod pool for fast startup, and isolated execution runtimes.Core Components
- Controller: Stateless API service that provisions and manages sandboxes
- Warm Pod Pool: Pre-initialized pods to reduce startup latency
- State Stores: Redis for coordination and Postgres/CloudSQL for persistence
- Isolated Runtimes: gVisor, Kata, or container isolation by policy
Request Flow
- Client calls the Sandbox API.
- Controller claims a warm pod (or creates one).
- Pod is configured for the org and timeout.
- Exec/WebSocket streams connect to the sandbox.