Skip to main content

Quotas

A quota limits what one team may hold at once (concurrent resource ceiling, distinct from consumption credits). It has seven resource dimensions, optional limits per device class, and (for personal teams) max_owned_teams:

DimensionUnitWhat counts
workspacescountEvery workspace of the team that is not being deleted, running or stopped.
cpu_mmillicoresCPU limits of workspaces whose desired state is running.
memory_mbMiBMemory limits of workspaces whose desired state is running.
gpudevicesGPUs and NPUs, of any class, of workspaces whose desired state is running.
storage_mbMiBSize of every volume of the team that is not being deleted, attached or not, including home volumes.
archive_mbMiBWhat the archives of its archived volumes hold, compressed.
bandwidth_mbpsMbit/sBandwidth limits of workspaces whose desired state is running, where workspaces are limited (below).

Stopping a workspace releases its CPU, memory, GPU and bandwidth. It still counts as a workspace and its volumes still count as storage.

Precedence and baseline quotas​

A team's effective resource quota is resolved in this order:

  1. An active temporary quota override, if set and not yet expired.
  2. The team's own permanent baseline quota (PATCH /v1/teams/{team_id}).
  3. Its effective plan (active temporary plan override, permanently assigned plan, or default plan for its kind personal / shared).
  4. teams.personal_quota or teams.team_quota in the runtime settings.

A team's own quota replaces the inherited baseline entirely. Fields left out take the built-in defaults: 10 workspaces, 8000 millicores, 16384 MiB memory, 51200 MiB storage, 0 GPUs, 512000 MiB of archives, 10000 Mbit/s. Setting it to null returns the team to its plan or platform default.

Set a team's baseline quota on its Quota & Plan tab, or with PATCH /v1/teams/{team_id} holding billing:quota or team:manage:

{"quota": {"workspaces": 20, "cpu_m": 32000, "memory_mb": 65536, "storage_mb": 204800, "gpu": 2}}

Temporary quota overrides​

Holders of billing:quota can grant a team a temporary quota override without modifying its permanent baseline quota or plan — on the team's Quota & Plan tab, by approving a quota request with an expiry, or with PUT /v1/teams/{team_id}/quota-override:

{
"quota": {"workspaces": 40, "cpu_m": 64000, "memory_mb": 131072, "storage_mb": 409600, "gpu": 4},
"expires_in": "14d",
"note": "Course finals week boost"
}
  • Specify either a relative duration (expires_in, e.g. 24h, 7d, 14d, 30d, 90d, 1y or <N><h|d|w|m|y>) or an exact future RFC 3339 timestamp (expires_at).
  • A team has at most one active temporary override at a time; PUT replaces any existing active override, and DELETE /v1/teams/{team_id}/quota-override revokes it immediately.
  • Expiration is enforced live at admission time, and the periodic team.expire_quota_overrides job runs every minute to mark due overrides expired and notify the team's owners (team.quota_override_expired).
  • Graceful revert: when a temporary override expires or is revoked, the team reverts to its baseline quota. Existing workspaces, volumes and owned shared teams are never stopped or deleted; only new allocations or growth exceeding the reverted quota are blocked.
  • Changes are audited as team.quota_override_set and team.quota_override_revoke.

Bandwidth​

workspaces.bandwidth_mbps in the runtime settings limits what each new workspace may send and receive, each way, in Mbit/s, unless it asks for less; a workspace's limit is changed on its page, and a running one restarts to take it. Where it is set, no workspace asks for none, and the limits of a team's running workspaces count against its bandwidth_mbps. Left at 0, workspaces are not limited unless they ask, and count nothing.

The limit reaches the cluster as the pod's kubernetes.io/ingress-bandwidth and kubernetes.io/egress-bandwidth annotations, which the CNI bandwidth plugin enforces: Calico and most other networks include it, or chain it in. A network without it lets the workspace through unlimited, though it still counts against the quota. Only agents of a release that knows bandwidth limits (bandwidth.v1) run a limited workspace; an older one refuses it as outdated until it is upgraded.

Per-class device limits​

accelerators caps the devices of individual accelerator classes within gpu. A class not listed is limited by gpu alone; 0 keeps a team off a class entirely:

{"quota": {"gpu": 4, "accelerators": {"a100": 1, "h100": 0}}}

This team runs up to four devices, at most one of them an A100 and none an H100. The check fails with quota_exceeded.gpu:<class>. The usage under GET /v1/teams/{team_id} lists the devices in use per class.

When it is checked​

ActionChecked
Create a workspaceworkspaces, storage_mb for the home volume, and compute if it starts immediately.
Start a workspaceCompute.
Resize a workspace whose desired state is running, or change its device classThe increase of compute, per class for devices.
Create a volumestorage_mb.
Grow a volumeThe increase of storage_mb.

A request that would exceed a limit fails with 422 and the code quota_exceeded.<dimension>. The check locks the team's row, so concurrent requests cannot overspend.

Only additions are checked. Lowering a quota, expiring a temporary override, or lowering an account's max_owned_teams limit below current usage stops or deletes nothing; it only blocks further growth or creating new teams.

GET /v1/teams/{team_id} returns the team's effective quota and current usage under usage, its permanent baseline_quota, quota_source (override, custom, plan, or default), any active quota_override, its effective plan, baseline_plan, active plan_override, active plan_schedules, and for personal teams returns team_limit with the account's owned shared teams count, effective limit, source (override, custom, plan, or default) and custom override.