Limits
The sizes, counts, rates and times Pod's API holds you to
Sizes
| Size | Class | vCPU | Memory | Disk |
|---|---|---|---|---|
small | shared | 2 | 4 GiB | 40 GiB |
medium | shared | 4 | 8 GiB | 80 GiB |
large | shared | 8 | 16 GiB | 160 GiB |
xlarge | shared | 16 | 32 GiB | 320 GiB |
ci-2 | ci | 2 | 8 GiB | 100 GiB |
ci-4 | ci | 4 | 16 GiB | 100 GiB |
ci-8 | ci | 8 | 32 GiB | 100 GiB |
ci-16 | ci | 16 | 64 GiB | 100 GiB |
Calls
| What | Limit |
|---|---|
| A page of a list | 50 items by default, 200 at most (limit) |
| A list cursor | Valid for 24 hours |
An Idempotency-Key | 1 to 200 printable characters; kept 24 hours |
Waiting for a change (wait=true) | 60 s by default, 300 s at most |
A command (timeout_s) | 60 s by default; 0 for no limit |
| A file written in one call | 100 MiB |
| Copies in one fork | 1 to 10 |
Sandboxes in one batch create (count) | 2 to 1000, and no more than your swarm cap (max_swarm) |
Ids hinted on one create (hints) | 16, volumes and snapshots together |
Idle time before a sandbox sleeps (idle_s) | 15 minutes by default, 60 s at least |
| A stream ticket | 30 s by default, 60 s at most; one use; 20 unused at once |
An end user's own id (ref) | 1 to 200 printable characters |
Sandboxes you may hold
| Limit | What it counts | Set for |
|---|---|---|
max_sandboxes | Sandboxes held, asleep or awake | An organization, a project, an end user |
max_awake | Sandboxes awake | An organization, a project, an end user |
A new organization may hold 5 sandboxes and keep 1 awake.
An end user with no limit of its own, in a project with no default, may hold 5 sandboxes and keep 2 awake.
A create, wake or start past a limit answers quota_exceeded, with the limit's name in limit. Pod sets your organization's and your projects' limits. Set each of your end users' limits yourself, with Set an end user's limits, and each member's in the dashboard or with Set a member's limits. Read the limits to see every one that counts now and, for each size, why a create would be refused.
Network
| Limit | What it counts | Feature |
|---|---|---|
max_domains | Custom domains an organization holds | custom_domains |
max_static_addresses | Static addresses a project holds at each site | static_addresses |
max_private_ranges | Private ranges an organization registers in its own cell | private_ranges |
max_proxies | Proxies a project holds | own_proxy |
max_leases | Leased home-connection addresses held at once | leased_home_addresses |
Not published yet
The starting values are published here before the network features open.
A create past a network limit answers quota_exceeded with the limit's name in limit. Network says what each feature needs.
Request rates
Not published yet
Every answer to a call made with a key or a signed-in person carries two headers, RateLimit-Policy and RateLimit (the IETF rate-limit headers), with one item per policy that applies to you:
| Header | What it says |
|---|---|
RateLimit-Policy | Each policy that applies to you: its name, q (how many in one window) and w (the window in seconds) |
RateLimit | What is left of each policy: its name, r (how many are left) and t (seconds until the window fills again) |
| Policy | What it counts | Window |
|---|---|---|
calls_per_minute | Every call made with one key, or with one person’s sign-in | 60 s |
creates_per_minute | Sandboxes your organization makes; each copy of a batch create or a fork counts. Sent only when your organization has such a cap | 60 s |
For example:
RateLimit-Policy: "calls_per_minute";q=600;w=60
RateLimit: "calls_per_minute";r=598;t=41The numbers in the example are not your limits; read your own from the headers. A call over the rate answers rate_limited with retry_after_s, a Retry-After header and both headers, and limit names the policy that ran out. The SDKs keep the last headers they saw (pod.rateLimit in TypeScript, pod.rate_limit in Python), and a refusal carries its own.
A batch create larger than your swarm cap answers quota_exceeded with limit: max_swarm, and nothing is made.
Durability
Losing a whole server can lose a sandbox's last writes, up to the durability window. Losing one drive loses nothing.
Not published yet
Durability says what is kept in each failure.