How do you right-size requests and limits?
BeginnerProductionAutoscaling, Capacity & Cost
Answer
Measure real usage for a couple of weeks with Prometheus (p95 CPU, p99 memory working set), set requests near p90-p95 usage plus headroom, set memory limit modestly above the request, and use VPA in recommendation mode or tools like Goldilocks to see suggestions. Over-requesting wastes money, under-requesting causes throttling and evictions.
More on Autoscaling, Capacity & Cost
Why does HPA need accurate CPU requests?BeginnerWhat are Spot instances good for on Kubernetes?BeginnerHow do you reduce Kubernetes cost quickly?BeginnerWhat is metrics-server and what does it not do?BeginnerWhat is a good default for the node size and why?BeginnerWhat labels are needed for cost allocation?Beginner