Quota

Every owner has six ceilings. Usage is computed from what exists at the moment of every request, never from a counter, so it is always exact.

Every owner has six ceilings. Usage is computed from what exists at the moment of every request, never from a counter, so it is always exact.

API
curl -sS https://dev.kloudlite.io/v1/quota -H "Authorization: Bearer $KL_TOKEN"
json
{  "owner": "karthik",  "limit": { "workspaces": 5, "environments": 2, "snapshots": 20, "disk_gb": 100, "cpu": 40, "memory_gb": 80 },  "used":  { "workspaces": 2, "environments": 1, "snapshots": 6,  "disk_gb": 58,  "cpu": 6,  "memory_gb": 12 }}

Defaults

DimensionPersonTeam
Workspaces520
Environments28
Snapshots2080
Disk100 GB400 GB
CPU40148
Memory80 GB296 GB

What counts

DimensionCounted
Workspaces, environmentsEvery one that exists, running or stopped
SnapshotsEvery pushed snapshot, attached or detached
DiskThe sum of every working copy's quota_gb plus every snapshot's, plus the builder's cache
CPU, memoryRunning workspaces and services, plus the builder while it runs

Refusals

A create, restore, clone, or push over a ceiling is 409 with one sentence:

text
snapshots: 20 of 20 in use; request more under Quota

CPU and memory have a second, hard stop in the cluster itself, so two requests racing past the check cannot both land.

Raising it

A request of kind quota.