Modal logo

Scale

Modal’s Sandbox infrastructure is built for industry leading scale. Individual sandboxes can start small and burst up to many CPU cores and large (64 GiB+) allocations of RAM.

Sandbox scheduling 

Our scheduler supports a default creation rate limit of 500/s, around 10-100x higher than comparable Sandbox platforms. The Sandbox concurrency limit is 10,000 for Team plan Workspaces and starts at 100,000 for Enterprise customers.

Modal has scaled from zero to 1 million concurrently active sandboxes in seconds.

PlanSandbox creation rateSandbox concurrency limitGPU concurrency limit
Starter50/s25010
Team500/s10,00050
EnterpriseCustom (≥500/s)Custom (default: 100,000)Custom

Modal does not limit or bill sandbox startups or resumes.

Constraints on scale 

To achieve highest scheduling throughput and sandbox concurrency, avoid setting tight region constraints (e.g. region="us-west") or requesting large amounts of compute resources (e.g. cpu=2).

Scheduling default-sized (small) Sandboxes into Modal’s global capacity pool achieves steady scaling.

Sidecars 

Sandbox sidecar creations do not count towards scheduling rate limits. But because sidecars are colocated on a Worker host with their ‘main’ Sandbox, a maximum of 250 sidecars per Sandbox is supported.

Lifetime 

Ephemeral sandboxes have a maximum duration of 24 hours. Persistent Sandboxes can exist indefinitely. However, a persistent sandbox ‘session’, defined as the period between starting and pausing, can be a maximum of 24 hours.

Sandbox bursting 

Modal’s default Sandbox has a low resource footprint (0.125 cores, 128 MiB RAM) but can automatically burst to acquire resources to become large.

Modal does not require API calls to acquire additional CPU, RAM, or disk.

ResourceDefault requestSupported maximum allocation
CPU0.125 cores64 cores
RAM128 MiB512 GiB
DiskN/A (25 GiB guarantee, unbilled)512 GiB
GPUNone8 GPUs

See Configuring CPU, memory, and disk for more details.

Images and Snapshots 

Modal stores billions of Images and filesystem snapshots and supports very high rate limits for large scale reinforcement learning and agent applications.

Your applications can snapshot a Sandbox and fork into many copies at large scale. Image creation scale allows for thousands of unique OCI image environments to be generated during experiments and rollouts.

Limits 

LimitRate limitBurst allowance
Image creation1,000/s10,000
Filesystem snapshot creation1,500/s1,500
Filesystem snapshot restore500/s (Team), 50/s for Starter-
Sandbox memory snapshot25/s-
Sandbox memory restore100/s-