Find over-sized services
- Open Observability and select Platform. CPU and memory are shown as requested, used and allocatable. A large gap between requested and used means reserved capacity nobody uses.
- Select Applications, then Metrics, and look at each service’s CPU Usage and Memory Usage over a typical week.
- Compare with the service’s requests.
Set requests and limits
Set them per service ininframan.yaml:
inframan.yaml
- Requests are what the service reserves. Set them near its typical use.
- Limits cap it. A replica that exceeds its memory limit is restarted, so give memory some headroom over the peak.
- On non-production infrastructures the defaults are a
100m/128Mirequest and a500m/256Milimit.
environments.
Who changes what
Inframan never resizes your services on its own. A change to your service’s resources is always one you made ininframan.yaml, reviewed like any other change.
The platform’s own components are different. Inframan starts the ingress, Knative and the monitoring stack small, and raises their memory or CPU automatically when they run short, step by step up to a ceiling. See Self-healing.