Understand CPU and memory
Services and database servers use minimum and maximum resource allocations. This guide explains what those values mean. See Set service CPU and memory for service settings and Managed PostgreSQL databases for database server allocations.
Minimum and maximum
The minimum reserves capacity when placing a workload in your hosting environment. If there is not enough capacity for that minimum, deployment may wait. A workload can use more than its minimum when spare capacity is available, up to its maximum.
The maximum limits resource usage. It does not reserve that amount or guarantee spare capacity above the minimum.
| Resource | Minimum | Maximum |
|---|---|---|
| CPU | Determines the workload's share of CPU time when the host is busy | Caps CPU time; processing can slow down at the limit |
| Memory | Capacity accounted for when placing the workload | Using too much memory can cause the workload to stop and restart |
Restarts can interrupt requests and database connections. Memory above the minimum is also more vulnerable when the host runs short of memory.
Units
- vCPU measures processing capacity. 1 vCPU corresponds to one CPU core; 0.5 vCPU represents half that CPU time.
- MB measures working memory in EasyHosting using 1024-based units: 1024 MB equals 1 GiB.
- Persistent storage holds files and database contents separately from working memory. More storage does not increase the memory available to a running workload.
Choose an allocation
Base minimums on normal usage and leave room in maximums for startup and busy periods. For example, a service with 0.1 vCPU min / 1 vCPU max reserves a smaller share of CPU and can use more during a burst when capacity is available.
Use the service resource guide to change service allocations. You can also edit a database server's allocation. All databases on that server share the new allocation.
For more background, see resource requests and limits in Kubernetes.
Environment capacity
Capacity totals include only hosts that are ready and available to run workloads, with usable CPU and memory allocations. Hosts unavailable during maintenance or updates are excluded.
Any host available to run ordinary workloads contributes capacity, even if it also manages the environment. The same rule applies regardless of how many hosts the environment has. Hosts reserved for special workloads are excluded when ordinary workloads cannot run on them. This selection is automatic and needs no configuration. If no host qualifies, totals are unavailable rather than zero.
The overview shows Min reserved for workloads on these hosts, including services, database servers and platform components. Unreserved is capacity not reserved for their minimums; it may already be in use and does not guarantee room for another workload. Used shows measured consumption across those hosts. Usage above the minimum is highlighted as Above reservation.
The overview also shows Configured limits for CPU and memory: the sum of maximums set for active workloads on the hosts included in the reservation totals. It is not environment capacity or a reservation and can exceed capacity. Containers without a limit do not contribute to the sum; the overview shows how many are missing a limit for each resource. Workloads waiting to be assigned to a host are not included.