An Azure App Service plan named `asp-gateway` is currently running a microservice API gateway on the Standard S1 tier with instances. You configure a scale-out autoscale rule that increases the instance count by when the Average CPU percentage is greater than for minutes. To optimize costs when traffic decreases, you need to define a scale-in rule that decreases the instance count by . Which configuration should you choose to prevent autoscale flapping and ensure the rules function correctly?
- Configure the scale-in rule with a threshold of CPU percentage using the Average metric aggregation.Answer
- BConfigure the scale-in rule with a threshold of CPU percentage using the Average metric aggregation.
- CConfigure the scale-in rule with a threshold of CPU percentage using the Average metric aggregation.
- DConfigure the scale-in rule with a threshold of CPU percentage and downgrade the App Service plan to the Basic B1 tier.
Answer
Configure the scale-in rule with a threshold of CPU percentage using the Average metric aggregation.
The configuration with a threshold of CPU percentage using the Average metric aggregation prevents flapping. When running on instances at CPU utilization (total of ), scaling out to instances reduces the average CPU utilization per instance to approximately . Since is greater than the scale-in threshold, the autoscale engine will not immediately trigger a scale-in. Additionally, the Standard S1 tier supports autoscale rules.
Step-by-Step Solution
Key Concept
To prevent autoscale flapping, the scale-in metric threshold must be sufficiently lower than the post-scale-out utilization value, and the hosting plan must support autoscaling.
Estimated Time:1m 30s