Scheduling and scaling, topic 38 of 61
Horizontal Pod autoscaling
A HorizontalPodAutoscaler changes a Deployment's or StatefulSet's replica count to keep a metric near a target, most often CPU use as a share of requests. Without requests set, CPU-based scaling cannot work.
It needs metrics-server for CPU and memory, and an adapter such as KEDA or the Prometheus adapter for custom metrics like queue length. Its behavior settings slow scaling down, so a short dip does not drop Pods it will need again a minute later.
On Opsfolk
Nothing of ours for this topic yet: an article is on its way.
Elsewhere
- Horizontal Pod autoscalingOfficial
- Autoscaling workloadsOfficial