You manage a web application named ShipRoute that is currently hosted on a Basic () App Service plan. During seasonal promotions, the application experiences high CPU utilization. You must configure autoscale rules to automatically increase the instance count by when the average CPU Percentage is greater than for minutes. You also need to scale in the application by decreasing the instance count by when CPU utilization drops, while ensuring that the scale-in action does not immediately trigger flapping when the instance count scales out from to .
What configuration should you apply?
- Scale up the App Service plan to the Standard () tier, and configure a scale-in rule with a CPU Percentage threshold of less than .Answer
- BScale up the App Service plan to the Standard () tier, and configure a scale-in rule with a CPU Percentage threshold of less than .
- CKeep the App Service plan on the Basic () tier, and configure a scale-in rule with a CPU Percentage threshold of less than .
- DKeep the App Service plan on the Basic () tier, and configure a scale-in rule with a CPU Percentage threshold of less than .
Answer
Scale up the App Service plan to the Standard () tier, and configure a scale-in rule with a CPU Percentage threshold of less than .
Upgrading the App Service plan to the Standard () tier is required because the Basic () tier does not support custom autoscale rules. To prevent flapping when the instance count increases from to at a scale-out threshold of CPU, the scale-in CPU threshold must be set below the resulting average CPU load of (calculated as ). Setting the scale-in rule to trigger when the CPU Percentage is less than ensures the rule is not immediately triggered after a scale-out event.
Step-by-Step Solution
Key Concept
Azure App Service Autoscale Tiers and Flapping Prevention