A queue-based backend worker application runs on an Azure App Service plan that is configured with a minimum of instances. You set an autoscale rule to scale out by adding instance when the average CPU percentage exceeds . You need to create a scale-in rule that removes instance. To prevent autoscale flapping, what is the maximum CPU percentage threshold that should be set for the scale-in rule?
- A
- B
- Answer
- D
Answer
A scale-in threshold of is the maximum value among the choices that is strictly less than the post-scale-out average CPU utilization of approximately , thereby preventing autoscale flapping.
The correct answer is because at the scale-out threshold of with instances, the total CPU workload is . Adding a instance distributes this workload to approximately CPU usage per instance. To prevent the scale-in rule from triggering immediately after scale-out (flapping), the scale-in threshold must be set below . The only option meeting this requirement is .
Step-by-Step Solution
Key Concept
Autoscale flapping prevention by calculating post-scaling metric distribution