advancedScenario-Based & System Design Questions

After enabling a Kubernetes Horizontal Pod Autoscaler based on CPU usage, replica count fluctuates rapidly up and down ('flapping') under moderately variable load.

This usually indicates the scaling thresholds and stabilization window are too tight for the actual load variability — recommend widening the target CPU threshold's margin, increasing the HPA's stabilization window for scale-down decisions specifically (scale-up can be more aggressive, but rapid scale-down right after a brief lull causes flapping), and verifying the metric being scaled on (CPU) genuinely reflects the actual bottleneck rather than a noisy proxy for it.

This is a Pro chapter

Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.

After enabling a Kubernetes Horizontal Pod Autoscaler based on CPU usage, replica count fluctuates rapidly up and down ('flapping') under moderately variable load.

Next Step

Continue to A production container is found running with `--privileged` mode enabled, and nobody on the current team remembers why.← Back to all Docker questions