Custom metrics
CPU utilization is an important metric to gauge whether pods that are bombarded with too many requests should be scaled up, or whether they are mostly idle and can be scaled down. But the CPU is not the only and sometimes not even the best metric to keep track of. Memory may be the limiting factor, and there are more specialized metrics, such as the depth of a pod's internal on-disk queue, the average latency on a request, or the average number of service timeouts.
The horizontal pod custom metrics were added as an alpha extension in version 1.2. In version 1.6 they were upgraded to beta status. You can now autoscale your pods based on multiple custom metrics. The autoscaler will evaluate all the metrics and will autoscale ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access