A company runs a web application on an Azure Virtual Machine Scale Set named `vmss-web`. The scale-out rule for `vmss-web` is configured to add one instance when the average Percentage CPU exceeds 80% for 10 minutes.
To optimize costs, you must define a scale-in rule that decreases the instance count by one.
Which scale-in rule configuration should you implement to prevent instance thrashing?
- Metric: Percentage CPU; Threshold: Less than 30%; Action: Decrease count by 1Answer
- BMetric: Percentage CPU; Threshold: Less than 75%; Action: Decrease count by 1
- CMetric: Available Memory Bytes; Threshold: Less than 1 GB; Action: Decrease count by 1
- DMetric: Disk Write Operations/Sec; Threshold: Less than 100; Action: Decrease count by 1
Answer
The scale-in rule must use the same metric (Percentage CPU) as the scale-out rule, with a threshold set to less than 30% and a scale-in action of decreasing the count by 1.
The correct configuration is to use the same metric (Percentage CPU) as the scale-out rule, with a threshold (30%) that is significantly lower than the scale-out threshold (80%). This difference prevents instance thrashing, where the workload redistributed to the remaining instances after a scale-in immediately triggers a scale-out.
Step-by-Step Solution
Key Concept
Virtual Machine Scale Set autoscale rule design to prevent thrashing
Estimated Time:1m 30s