You are designing autoscale rules for an Azure Virtual Machine Scale Set (VMSS) named `vmss-processing`. The scale set currently runs with a minimum of 2 instances and a maximum of 10 instances. The scale-out rule is configured to increase the instance count by 1 when the average CPU utilization exceeds 75% for 10 minutes.
You need to configure the scale-in rule to decrease the instance count by 1. To prevent instance thrashing (repeatedly scaling out and scaling in) immediately after a scale-out event occurs when the scale set has 2 instances, which CPU threshold should you configure for the scale-in rule?
- Decrease the instance count by 1 when the CPU utilization is less than 40%Cevap
- BDecrease the instance count by 1 when the CPU utilization is less than 55%
- CDecrease the instance count by 1 when the CPU utilization is less than 65%
- DDecrease the instance count by 1 when the CPU utilization is less than 70%
Cevap
Decrease the instance count by 1 when the CPU utilization is less than 40%
The correct option is the one stating to decrease the instance count when CPU utilization is less than 40%. When the scale set runs on 2 instances, a scale-out is triggered as CPU load exceeds 75%, meaning the total load is 150%. Once a third instance is added, the load is divided by 3, resulting in approximately 50% CPU load per instance. Setting the scale-in threshold to 40% ensures that the load must drop significantly further before scaling in, preventing thrashing.
Adım Adım Çözüm
Anahtar Kavram
Autoscale rule thrashing and metric thresholds
Tahmini Süre:1m 30s