I have a managed instance group with an HTTP(S) LB in front of it.
Currently, I have set up an auto-scaler policy to scale up or down based on CPU utilization and the threshold is set to 70%.
But I have observed that if there is any momentary spike in CPU usage for just a short while, new instances get added and immediately after a few minutes, some of the existing instances get deleted since the CPU usage would have come down.
I want the auto-scaler to ignore any momentary spikes by saying add more instances only if the CPU usage goes above 70% for more than 5 minutes.
How do I achieve this?
Regards,
Shobhana