Interview Prep/Kubernetes/Autoscaling, Capacity & Cost

How do you tune HPA to avoid flapping and to react to spikes?

IntermediateProductionAutoscaling, Capacity & Cost
Answer

Use behavior: fast scale-up policies (for example 100% or +4 Pods per 15 s), slower scale-down with stabilizationWindowSeconds: 300+, a sensible target (60-70% CPU), and correct minReplicas to survive a zone loss. For spiky traffic, scale on request rate or queue length via KEDA instead of lagging CPU.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Autoscaling, Capacity & Cost