Quotas and capacity
- Version
- since 2.x, describes 2.52.14
- Feature flag
resource_quotas- For
- Workspace user, Platform operator
The platform expresses supply and demand limits in six resource dimensions. Operators register a region's capacity as pools with absolute caps and give every workspace a quota frame drawn from one pool; optional account and organisation frames add ceilings above the workspace. Workspace owners split their frame across projects. A purchase, a storage or registry request or a scheduler job that would push any level over its cap is rejected with a cause that names the level, before any hardware is reserved.
What it does
- Measures six dimensions everywhere: GPUs, CPU cores, RAM in GB, instance count, storage in GB and registry storage in GB. Any dimension left empty on a pool, frame or quota is unconstrained.
- Registers a region's capacity as capacity pools, each with a kind, an enforcement mode (
usageorreservation) and one cap per dimension. The console also shows the region's detected capacity and the spare left after the pool caps, for display only. - Gives every workspace exactly one quota frame, bound to one pool. A default frame template is assigned to every new workspace when the capability is on and to existing workspaces by a backfill. Staff may add an account frame (one per owner and pool) and an organisation frame (one per organisation and pool) as ceilings above the workspace.
- Lets a workspace Owner or Administrator set a project quota per project, within the workspace frame.
- Checks every instance purchase, every assignment of an instance to a project, every storage volume creation or resize, every registry quota grant and every scheduler job or session submission, and rejects with a
quota_exceeded_*cause that names the first level that does not fit. - Snapshots each instance's resource shape at purchase time and counts every instance that has not been terminated, except one whose provisioning failed before it started, so usage is a sum of snapshots, not a live query of the hardware.
- Is switched on with the
resource_quotasfeature flag. With the flag off no check runs, no default frame is assigned, the workspace quota route answers404 feature_disabled, and the Usage & Quota tab and the Capacity page are hidden. Pools, frames and quotas are kept.
Where it is
| Surface | Path |
|---|---|
| Web app (workspace members) | Workspace settings, then Usage & Quota: the frame, usage per dimension, the project table with Edit quota and Remove for the Owner and Administrator |
| Web app (purchase and jobs) | The purchase pages show the rejection cause; the HPC Jobs submit and launch dialogs show the remaining project-quota headroom |
| Operator console | Platform, then Capacity (page title Capacity & resource quotas): pools per region, default frame template, backfill. Manage, then Workspaces, open a workspace: Workspace resource quota frame. Platform, then Organizations, Manage, tab Quota frames |
| API (workspace) | GET /api/v1/workspaces/{workspace_id}/quota, PUT and DELETE /api/v1/workspaces/{workspace_id}/projects/{project_id}/quota |
| API (operators) | GET /admin/capacity, POST /admin/capacity/pools, PATCH and DELETE /admin/capacity/pools/{id}, GET, PUT and DELETE /admin/capacity/default-template, GET, PUT and DELETE /admin/workspaces/{workspace_id}/quota-frame, GET, PUT and DELETE /admin/users/{user_id}/quota-frames/{pool_id}, GET, PUT and DELETE /admin/organizations/{org_id}/quota-frames/{pool_id}, POST /admin/quotas/backfill |
| CLI | cerebro storage quota --project <id> shows a project's storage usage against its project and workspace storage limits; every quota_exceeded_* rejection is printed with its code; see CLI |
How to use it
See your workspace's quota (workspace member)
- Open Workspace settings, then Usage & Quota. Every workspace member can read it.
- The Workspace resource quota frame card shows the pool the frame draws from, its enforcement mode and the cap per dimension; a dash means unconstrained.
- Workspace usage shows a bar per dimension against the cap. The bar turns to a warning at 80 percent and to an error at 100 percent.
- The Projects table shows each project's quota and usage. "Unconstrained" means no project quota is set and the project is bounded only by the workspace frame.
Split the frame across projects (Owner or Administrator)
- In the Projects table press Edit quota on a project. The registry dimension is not offered: registry storage is workspace-scoped.
- Enter a cap per dimension or clear a field to leave it unconstrained. Under each field the dialog shows the remaining frame headroom: the frame cap minus the quotas already given to the other projects.
- Save writes the quota (
PUT .../projects/{project_id}/quota). The sum of all project quotas in a workspace must fit inside the workspace frame; otherwise the save is refused withframe_shrink_blocked. Remove deletes the quota and makes the project unconstrained again. - When the scheduler capability is on, a project quota change is also pushed to the scheduler as the project's limits; see Jobs and scheduling.
What is checked, where
| Action | Levels checked, in order | Cause on rejection |
|---|---|---|
| Instance purchase (virtual machine or bare metal) | Workspace frame, account frame if the owner has one on the frame's pool, organisation frame if the workspace is attached and organization_tier is on, then the pool when its enforcement is usage | quota_exceeded_workspace, quota_exceeded_account, quota_exceeded_organization, quota_exceeded_pool_capacity; quota_frame_missing when the workspace has no frame |
| Assigning an instance to a project | The project quota, if one is set | quota_exceeded_project |
| Storage volume create or resize | Project quota, workspace frame, account frame, organisation frame, usage pool | quota_exceeded_storage_project, quota_exceeded_storage_workspace, quota_exceeded_storage_account, quota_exceeded_storage_organization, quota_exceeded_storage_pool_capacity; quota_frame_missing |
| Registry quota grant | Workspace frame, account frame, organisation frame, usage pool (no project level) | quota_exceeded_registry_workspace, quota_exceeded_registry_account, quota_exceeded_registry_organization, quota_exceeded_registry_pool_capacity; quota_frame_missing |
| Scheduler job or session submission | The project quota, if a project is given and has one, as a pre-check before the request reaches the scheduler | quota_exceeded_project |
Rules shared by every check:
- A level is skipped when it does not exist (no account frame, no organisation frame, no project quota). The workspace frame is the exception: a missing frame fails the purchase, storage and registry checks with
quota_frame_missing. - A
reservationpool is never checked at request time; it is bounded when frames are assigned (below). Ausagepool is checked against live consumption. - The purchase check uses the workspace frame's pool, not the region of the purchase.
- The purchase check does not include the project level because a purchase carries no project; the project quota applies when the instance is assigned to a project.
- The scheduler pre-check is a convenience: it compares the job's request plus the project's instance usage with the project quota, and running jobs are not part of that usage. The limits synced to the scheduler remain the enforcement of record for jobs.
- With
billingon, the billing limits are checked as well; money and capacity are separate checks.
Register capacity and frames (operator)
The console steps are on Configuration; the rules the platform applies are these.
- Create pools per region (
POST /admin/capacity/pools): region, kind, name, enforcement, caps, reason. A region and name pair is unique and creation is not idempotent; checkGET /admin/capacitybefore creating. Edit merges only the fields you send; a cap sent as empty becomes unconstrained. - Set the default frame template (
PUT /admin/capacity/default-template): a pool and caps. The console offers onlyusagepools; the API does not refuse areservationpool, so choose deliberately. New workspaces receive the global template at creation; a template saved for one region is stored but nothing applies it in 2.48.6. - Run the backfill (
POST /admin/quotas/backfill) and repeat it untilinstancesSkippedstops changing. It derives bare metal product shapes from their parts list, snapshots the shape onto existing instances and assigns the global template to workspaces without a frame. Rows already processed are not touched again. - Assign frames where the template is not enough: a workspace frame (
PUT /admin/workspaces/{workspace_id}/quota-frame, with the pool), an account frame (PUT /admin/users/{user_id}/quota-frames/{pool_id}, API only), an organisation frame (PUT /admin/organizations/{org_id}/quota-frames/{pool_id}). On areservationpool a frame must cap every dimension the pool caps (frame_dimension_required), and the sum of frames on the pool must fit its caps (pool_reservation_exhausted). Shrinking a workspace frame below the project quotas already given out is refused withframe_shrink_blockedunless Force is set. - Switch
resource_quotason. This is the only step with an effect on users; everything before it can be repeated safely.
Shrinking a pool below its current usage (usage enforcement) or below the sum of its frames (reservation enforcement) is refused with pool_shrink_blocked unless Force is set with a reason. A pool that still has frames cannot be deleted (409 capacity_pool_has_frames). Every mutation requires a reason and is activity-logged.
On-demand and on-prem
- On-demand (web): switched on. We define the capacity pools and the quota frame of each workspace; you see your frame and set project quotas.
- Licensed on-prem: your operators create pools, set the default template, run the backfill and switch
resource_quotason last; see Configuration for the console and Deployment and integration for the order. Workspace users then see their frame and set project quotas.
Numbers
Dimensions
| Dimension | API field | Label in the apps | Counted from | Project level |
|---|---|---|---|---|
| GPUs | gpuCount | GPUs | the instance's snapshotted GPU count; a job's gpu request | yes |
| CPU cores | cpuCores | CPU cores | the instance's snapshotted cores; a job's cpu request | yes |
| RAM | ramGb | RAM (GB) | the instance's snapshotted RAM in GB; a job's ramGb request | yes |
| Instances | instanceCount | Instances | one per instance | yes |
| Storage | storageGb | Storage (GB) | storage volumes; see Project storage | yes |
| Registry | registryGb | Registry (GB) | registry quota grants; see Container registry | no, workspace-scoped |
Pools and frames
| What | Value |
|---|---|
| Pool kinds | on_demand (On-demand), b2b (B2B), poc (PoC), custom (Custom) |
| Pool enforcement modes | usage: live consumption is checked at request time, the sum of frames may exceed the cap; reservation: the sum of frames is checked when a frame is written, requests are not checked against the pool |
| Pools per region | any number; name unique within the region |
| Workspace frames | exactly 1 per workspace, bound to 1 pool, no region binding |
| Account frames | at most 1 per owner and pool |
| Organisation frames | at most 1 per organisation and pool |
| Project quotas | at most 1 per project; the sum within a workspace must fit the workspace frame |
| Default frame template | 1 global; region templates can be stored but are not applied |
| Virtual machine RAM in the check | the product's RAM in MB converted to GB, rounded up |
| Instances that count as usage | every instance not yet terminated, except one whose provisioning failed before it started |
| Scheduler pre-check vector | gpu, cpu, ramGb of the request against the project quota's GPU, CPU and RAM caps; instances, storage and registry are not part of it |
| Warning and error thresholds on usage bars | 80 percent and 100 percent |
| Detected regional capacity | cores, RAM and instances from the virtualisation layer's limits where the region has them; GPUs are never detected; display only |
Rejection causes
| Cause | HTTP status | Meaning |
|---|---|---|
quota_frame_missing | 400 | The workspace has no frame; nothing can be bought, stored or granted until one exists |
quota_exceeded_project | 400 | Project quota exceeded (instance assignment, job or session submission) |
quota_exceeded_workspace, quota_exceeded_account, quota_exceeded_organization, quota_exceeded_pool_capacity | 400 | Purchase exceeds that level |
quota_exceeded_storage_project, quota_exceeded_storage_workspace, quota_exceeded_storage_account, quota_exceeded_storage_organization, quota_exceeded_storage_pool_capacity | 400 | Storage request exceeds that level |
quota_exceeded_registry_workspace, quota_exceeded_registry_account, quota_exceeded_registry_organization, quota_exceeded_registry_pool_capacity | 400 | Registry grant exceeds that level |
frame_shrink_blocked | 400 | A project quota or frame change would leave less than what is already allocated or used; Force applies to frames |
frame_dimension_required | 400 | A frame on a reservation pool leaves a pool-capped dimension unconstrained |
pool_reservation_exhausted | 400 | The sum of frames on a reservation pool would exceed its cap |
pool_shrink_blocked | 400 | A pool change would drop below current usage or reservations; Force applies |
capacity_pool_has_frames | 409 | The pool still has frames and cannot be deleted |
unlimited_registry_grants_exist | 400 | Capping the registry dimension while a workspace on the pool holds an unlimited registry grant |
org_attach_headroom_exceeded | 400 | Attaching a workspace to an organisation would exceed the organisation frame; see Organizations |
The web app shows a sentence for each known cause (for example "This would exceed the workspace resource quota."); the operator console shows the sentence and the code. The web app has no sentence for the organisation causes yet and shows the code in title case.
Limits and known behaviour
- Frames are mandatory once the capability is on. A workspace without a frame cannot buy, store or receive a registry grant (
quota_frame_missing). A workspace created while no global template exists ends up without a frame; the failure is logged, the creation succeeds. - A workspace frame has no region binding. The purchase check evaluates the frame's pool whatever region the purchase targets; different caps per region are not possible.
- Usage comes from snapshots taken at purchase or by the backfill. Instances whose purchase record cannot be resolved are counted in
instancesSkipped, consume zero in every dimension and stay that way until corrected by hand; consumption displays and the spare figure are optimistic by their footprint. Enforcement of future requests is unaffected. - Bare metal product shapes derived from the parts list can come out as zero where the parts carry no usable metadata; CPU cores in particular may need manual entry in the product editor. A zero shape never counts against a quota.
- Detected capacity carries no GPU figure and is absent for regions without virtualisation-layer limits; it is never enforced against.
- The default template's pool should use
usageenforcement; the console enforces this through the selector, the API does not. - Account frames can be managed only through the API; there is no console page for them.
- Project quotas are not checked at purchase time, because a purchase has no project; they bite when the instance is assigned to a project and when a job names the project.
reservationpools guarantee headroom only for what is written as frames; live usage of such a pool is not checked at request time.- A user with the Team member role can manage projects but not project quotas; quota writes need the Owner or Administrator role (
ManageResourceQuotas). - Switching
resource_quotasoff stops every check at once and hides the quota surfaces; nothing is deleted, and switching it back on resumes with the same pools and frames. - Planned, not in 2.48.6: a request-and-approval workflow for frame changes, per-GPU-model quotas, automatic pool rebalancing, per-region frames.
Related pages
- Capabilities by delivery model
- Organizations: the organisation frame and the attach headroom check
- Jobs and scheduling: how project quotas reach the scheduler
- Project storage and Container registry: the storage and registry dimensions
- Configuration: the console pages for pools, the template, the backfill and frames
- Projects and Permissions: projects and the workspace roles