An organization runs a web application on an Azure App Service plan that currently has a capacity of instances. You need to configure autoscale rules with a minimum of instances and a maximum of instances. You configure a scale-out rule to increase the instance count by when the Average CPU percentage is greater than . You want to configure a scale-in rule that decreases the instance count by when the CPU percentage is lower than a specific threshold. Which configuration should you use to prevent flapping when scaling out from to instances?
- Set the scale-in threshold to CPU percentage less than using the Average metric aggregationCevap
- BSet the scale-in threshold to CPU percentage less than using the Average metric aggregation
- CSet the scale-in threshold to CPU percentage less than using the Maximum metric aggregation
- DSet the scale-in threshold to CPU percentage less than and downgrade the App Service plan to the Basic tier
Cevap
Set the scale-in threshold to CPU percentage less than using the Average metric aggregation.
The correct option sets the scale-in threshold to with the Average aggregation. At the point of scaling out from to instances, the average CPU percentage is just above , representing a total load of . Upon adding a third instance, the average CPU per instance drops to (). Setting the scale-in threshold below (such as ) ensures the scale-in rule is not immediately triggered, thereby preventing flapping.
Adım Adım Çözüm
Anahtar Kavram
Prevention of flapping in autoscale rules by ensuring the scale-in threshold is set sufficiently lower than the post-scaling-out average metric utilization.