Resources
Every cell runs on the same shape. You do not choose a size, a CPU count, or a memory tier when you create a cell. What counts toward your plan limits is described below.
One shape for every cell
The create call takes a name and optional URL settings. There is no size field. A cell starts with the same resources as any other cell, and its filesystem persists across runs.
What counts toward your limits
Your plan limits four things. Each one is listed with its plan values on the Plans page.
- CPU-hours while a cell runs.
- Memory in use, in GB-hours, while a cell runs.
- Storage for the cell's filesystem and its checkpoints, in GB-months.
- Network egress, the outbound traffic from the cell.
Compute and memory count only while a cell runs. A suspended cell counts storage only. Idle cells go cold after an idle period (see Cell Lifetime). Checkpoints (snapshots) count toward the storage limit.
How usage is measured
Compute is measured from the platform's own records of when each cell is running. Where the actual CPU and memory use of a running period cannot be measured, that running time counts as 1 CPU and 2 GB per hour until measured usage is available. This is a deliberately conservative assumption.
Memory policy
The resources policy sets the memory limit for a cell through memory.limit_mb, and can enable memory autoscaling with autoscale. Read it with GET on /v1/cells/{name}/policy/resources, and remove it with DELETE to return to the default.
curl -sS -X POST https://cells-api.mudbase.dev/v1/cells/api-dev/policy/resources \
-H "Authorization: Bearer $CELLS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"memory":{"limit_mb":2048,"autoscale":false}}'curl -sS -X POST https://cells-api.mudbase.dev/v1/cells/api-dev/policy/resources \
-H "Authorization: Bearer $CELLS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"memory":{"limit_mb":2048,"autoscale":false}}'Checking usage
GET /v1/usage reports the current billing period's usage against your plan limits. See Usage and Pricing.