A telemetry processing service is hosted on an Azure App Service Web App running on a Standard (S1) App Service plan. The autoscale setting is configured to scale out by 1 instance when the average CPU Percentage is greater than 80% for 10 minutes. The instance limits are set to a minimum of 1, a default of 2, and a maximum of 4 instances. You want to configure the scale-in rule to decrease the instance count by 1 instance when CPU load drops, while preventing autoscale flapping.
Which scale-in threshold for the CPU Percentage metric should you configure to meet this requirement?
- ALess than 55%
- Less than 35%Cevap
- CLess than 65%
- DLess than 75%
Cevap
Less than 35%
To prevent autoscale flapping, the scale-in threshold must be configured so that the CPU average immediately after a scale-out event does not drop below the scale-in threshold. If we have 2 instances running at 80% CPU (total CPU capacity of 160%) and scale out to 3 instances, the new average CPU drops to . If we have 3 instances running at 80% CPU (total CPU capacity of 240%) and scale out to 4 instances, the new average CPU drops to . Therefore, to prevent a scale-in rule from triggering immediately after scaling out, the scale-in threshold must be lower than 53.3%. Choosing a threshold of 35% satisfies this condition.
Adım Adım Çözüm
Anahtar Kavram
Autoscale rule thresholds must be configured to prevent flapping, which occurs when a scale-out event immediately satisfies the criteria for a scale-in event.