You have an OCI compute instance configured with an autoscaling policy. The autoscaling configuration scales out your instance pool by 2 instances when CPU exceeds 75%. You notice that during a traffic surge, the pool scales out, but shortly after, it scales right back in, causing flapping. How can you prevent this behavior?
Increasing the autoscaling cooldown period prevents flapping by enforcing a mandatory waiting time after a scale-out event before any subsequent scale-in evaluation can occur. During a traffic surge, metrics may fluctuate rapidly around the threshold; extending this duration ensures the instance pool remains stable and absorbs transient load spikes without prematurely terminating newly provisioned capacity, directly satisfying the requirement to stop the immediate scale-in behaviour observed in the stem.
Why this answer
Configuring an appropriate cooldown period (step delay) ensures that autoscaling waits a specified duration after a scaling event before evaluating metrics again.