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.
| Plan | Sandbox creation rate | Sandbox concurrency limit | GPU concurrency limit |
|---|---|---|---|
| Starter | 50/s | 250 | 10 |
| Team | 500/s | 10,000 | 50 |
| Enterprise | Custom (≥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.
| Resource | Default request | Supported maximum allocation |
|---|---|---|
| CPU | 0.125 cores | 64 cores |
| RAM | 128 MiB | 512 GiB |
| Disk | N/A (25 GiB guarantee, unbilled) | 512 GiB |
| GPU | None | 8 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
| Limit | Rate limit | Burst allowance |
|---|---|---|
| Image creation | 1,000/s | 10,000 |
| Filesystem snapshot creation | 1,500/s | 1,500 |
| Filesystem snapshot restore | 500/s (Team), 50/s for Starter | - |
| Sandbox memory snapshot | 25/s | - |
| Sandbox memory restore | 100/s | - |