Skip to main content

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 (usage or reservation) 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_quotas feature flag. With the flag off no check runs, no default frame is assigned, the workspace quota route answers 404 feature_disabled, and the Usage & Quota tab and the Capacity page are hidden. Pools, frames and quotas are kept.

Where it is​

SurfacePath
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 consolePlatform, 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
CLIcerebro 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)​

  1. Open Workspace settings, then Usage & Quota. Every workspace member can read it.
  2. 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.
  3. 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.
  4. 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)​

  1. In the Projects table press Edit quota on a project. The registry dimension is not offered: registry storage is workspace-scoped.
  2. 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.
  3. 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 with frame_shrink_blocked. Remove deletes the quota and makes the project unconstrained again.
  4. 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​

ActionLevels checked, in orderCause 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 usagequota_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 projectThe project quota, if one is setquota_exceeded_project
Storage volume create or resizeProject quota, workspace frame, account frame, organisation frame, usage poolquota_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 grantWorkspace 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 submissionThe project quota, if a project is given and has one, as a pre-check before the request reaches the schedulerquota_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 reservation pool is never checked at request time; it is bounded when frames are assigned (below). A usage pool 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 billing on, 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.

  1. 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; check GET /admin/capacity before creating. Edit merges only the fields you send; a cap sent as empty becomes unconstrained.
  2. Set the default frame template (PUT /admin/capacity/default-template): a pool and caps. The console offers only usage pools; the API does not refuse a reservation pool, 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.
  3. Run the backfill (POST /admin/quotas/backfill) and repeat it until instancesSkipped stops 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.
  4. 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 a reservation pool 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 with frame_shrink_blocked unless Force is set.
  5. Switch resource_quotas on. 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_quotas on 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​

DimensionAPI fieldLabel in the appsCounted fromProject level
GPUsgpuCountGPUsthe instance's snapshotted GPU count; a job's gpu requestyes
CPU corescpuCoresCPU coresthe instance's snapshotted cores; a job's cpu requestyes
RAMramGbRAM (GB)the instance's snapshotted RAM in GB; a job's ramGb requestyes
InstancesinstanceCountInstancesone per instanceyes
StoragestorageGbStorage (GB)storage volumes; see Project storageyes
RegistryregistryGbRegistry (GB)registry quota grants; see Container registryno, workspace-scoped

Pools and frames​

WhatValue
Pool kindson_demand (On-demand), b2b (B2B), poc (PoC), custom (Custom)
Pool enforcement modesusage: 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 regionany number; name unique within the region
Workspace framesexactly 1 per workspace, bound to 1 pool, no region binding
Account framesat most 1 per owner and pool
Organisation framesat most 1 per organisation and pool
Project quotasat most 1 per project; the sum within a workspace must fit the workspace frame
Default frame template1 global; region templates can be stored but are not applied
Virtual machine RAM in the checkthe product's RAM in MB converted to GB, rounded up
Instances that count as usageevery instance not yet terminated, except one whose provisioning failed before it started
Scheduler pre-check vectorgpu, 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 bars80 percent and 100 percent
Detected regional capacitycores, RAM and instances from the virtualisation layer's limits where the region has them; GPUs are never detected; display only

Rejection causes​

CauseHTTP statusMeaning
quota_frame_missing400The workspace has no frame; nothing can be bought, stored or granted until one exists
quota_exceeded_project400Project quota exceeded (instance assignment, job or session submission)
quota_exceeded_workspace, quota_exceeded_account, quota_exceeded_organization, quota_exceeded_pool_capacity400Purchase exceeds that level
quota_exceeded_storage_project, quota_exceeded_storage_workspace, quota_exceeded_storage_account, quota_exceeded_storage_organization, quota_exceeded_storage_pool_capacity400Storage request exceeds that level
quota_exceeded_registry_workspace, quota_exceeded_registry_account, quota_exceeded_registry_organization, quota_exceeded_registry_pool_capacity400Registry grant exceeds that level
frame_shrink_blocked400A project quota or frame change would leave less than what is already allocated or used; Force applies to frames
frame_dimension_required400A frame on a reservation pool leaves a pool-capped dimension unconstrained
pool_reservation_exhausted400The sum of frames on a reservation pool would exceed its cap
pool_shrink_blocked400A pool change would drop below current usage or reservations; Force applies
capacity_pool_has_frames409The pool still has frames and cannot be deleted
unlimited_registry_grants_exist400Capping the registry dimension while a workspace on the pool holds an unlimited registry grant
org_attach_headroom_exceeded400Attaching 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 usage enforcement; 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.
  • reservation pools 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_quotas off 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.