CPU limits
CPU limits
Throttle an instance’s CPU when it is idle and restore it on wake-up, with the idle.cpu and active.cpu settings. The instance stays warm, so there is no cold start, but an idle workload no longer takes CPU that active workloads need.
flowchart LR
active["Active<br/>active.cpu"]
idle["Idle<br/>idle.cpu"]
active -->|session expires| idle
idle -->|new request| active
| Setting | Applied when |
|---|---|
idle.cpu | the session expires |
active.cpu | a session is requested |
- Both need
idle.replicasat1or more, so the workload keeps running while idle. See Scale instead of stop for the shared idle and active model. - The value format depends on your provider, for example decimal cores or a resource quantity. Your provider page shows it.



