A background data synchronization service runs on an Azure App Service plan (Standard S2 tier) that is currently scaled to instances. You need to configure autoscale rules for the App Service plan based on the CPU percentage metric. You define the following rules:
* Scale-out rule: Increase the instance count by when the average CPU percentage is greater than for 10 minutes.
* Scale-in rule: Decrease the instance count by when the average CPU percentage is less than a target threshold for 10 minutes.
Under a constant workload, you must prevent the autoscale engine from flapping (repeatedly scaling out and scaling in).
Which of the following configurations should you implement?
- ASet the scale-in threshold to .
- BDowngrade the App Service plan to the Basic B2 tier and set the scale-in threshold to .
- Set the scale-in threshold to .Answer
- DSet the scale-in threshold to .
Answer
Set the scale-in threshold to .
The correct option is to set the scale-in threshold to . To avoid flapping, the scale-in threshold must be strictly less than the average CPU load of the scaled-out instances under a constant workload. With instances at a scale-out threshold, the total workload is . When the service scales out by instances to a total of , the workload is distributed, resulting in an average CPU load of . Since is strictly less than , the scale-in rule will not immediately trigger, preventing flapping.
Step-by-Step Solution
Key Concept
Avoiding Autoscale Flapping in Azure Monitor