The CLI groups three related actions for sizing a sandbox:Documentation Index
Fetch the complete documentation index at: https://docs.opencomputer.dev/llms.txt
Use this file to discover all available pages before exploring further.
| Command | What it does |
|---|---|
oc sandbox autoscale | Turn the platform autoscaler on/off and inspect its config |
oc sandbox scale | Manually resize once |
oc sandbox lock / unlock / lock-status | Freeze or unfreeze the current size |
1024, 4096, 8192, 16384, 32768, 65536 MB. CPU follows memory per the platform’s tier table (e.g. 8 GB → 4 vCPU); you don’t pick CPU separately.
For the underlying concepts and how these three modes interact, see the Elasticity guide.
oc sandbox autoscale <id>
Configure or inspect per-sandbox autoscale. HTTP API →
Run with no flags to print the current configuration:
--min and --max:
- Scale up on a single 1-min sample above 75 % memory utilization. Cooldown 60 s between up-scales.
- Scale down only when the 1-min, 5-min, AND 15-min averages all sit below 25 %. Cooldown 5 min between down-scales.
| Flag | Description |
|---|---|
--on | Enable autoscale (requires --min and --max). |
--off | Disable autoscale. Mutually exclusive with --on. |
--min N | Minimum memory tier in MB. Must be an allowed tier. |
--max N | Maximum memory tier in MB. Must be an allowed tier and ≥ --min. |
scaling_locked— the sandbox has a scaling lock active. Runoc sandbox unlock <id>first.402 Payment Required—--maxexceeds your plan cap.
oc sandbox scale <id> <memory-mb>
Manually resize a sandbox to a specific memory tier. HTTP API →
oc sandbox autoscale --on if you want size to track load again.
Errors
scaling_locked— the sandbox has a scaling lock active. Runoc sandbox unlock <id>first.402 Payment Required— requested size exceeds your plan cap.
oc sandbox lock <id>
Pin a sandbox at its current size. HTTP API →
oc sandbox scaleis rejected withscaling_locked.oc sandbox autoscale --onis rejected withscaling_locked.- The platform autoscaler skips the sandbox entirely.
oc sandbox autoscale --on explicitly if you want it back.