CPU follows memory per the platform’s tier table; 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.
Errors
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.