You are configuring Azure Monitor autoscale rules for an Azure App Service plan named `asp-payment` that currently runs a critical web API on instances. The minimum instance count is configured as , and the maximum is .
You have already configured the scale-out rule as follows:
* Metric: CPU Percentage
* Time aggregation: Average
* Duration (Time window): minutes
* Operator: Greater than
* Threshold:
* Operation: Increase count by
You need to configure the scale-in rule to decrease the instance count by when the workload decreases, while ensuring that the configuration does not cause autoscale flapping under a constant workload.
Which of the following configurations should you select? (Select TWO)
- A scale-in threshold of CPU percentage.Cevap
- BA scale-in threshold of CPU percentage.
- Set the scale-in metric statistic (instance aggregation) to Average.Cevap
- DSet the scale-in metric statistic (instance aggregation) to Maximum.
Cevap
Select a scale-in threshold of CPU percentage and set the scale-in metric statistic to Average.
The correct options are selecting a scale-in threshold of CPU percentage and setting the metric statistic to Average. Under a constant workload of CPU (derived from instances running at CPU), scaling out by instances increases the total instances to , reducing the average CPU to . A scale-in threshold of (which is below ) ensures the rule does not immediately trigger. Selecting the Average metric statistic ensures that the autoscale engine evaluates the overall cluster load consistently across both scale-out and scale-in rules.
Adım Adım Çözüm
Anahtar Kavram
Autoscale flapping occurs when a scale-out action immediately satisfies the condition for a scale-in action (or vice versa) under a constant workload. To prevent this, the scale-in threshold must be set lower than the average load on the expanded scale set.