QuestionQ264

VerifiedDeploy and manage Azure compute resources

You have an Azure App Service app named App1 that contains two running instances.

You have an autoscale rule configured as shown in the following exhibit.

Question Image

For the Instance limits scale condition setting, you set Maximum to 5.

During a 30-minute period, App1 uses 80 percent of the available memory.

What is the maximum number of instances for App1 during the 30-minute period?

Explanation

Azure Monitor autoscale runs every 30 to 60 seconds. Each time it runs, it looks back over the rule's Duration (time window), here the past 15 minutes. Because the metric dimension is set to All values, autoscale evaluates the metric aggregated across the instances rather than for each instance individually. After a scale action, the rule's Cool down (5 minutes) must pass before that rule can start another scale action; the look-back window isn't reset by a scale action. App1 holds a steady 80% memory, above the 70% threshold. The 15-minute average is first above 70% at about minute 15, so App1 scales from 2 to 3 instances. When the cooldown ends at about minute 20, the past 15 minutes still average 80%, so it scales to 4. At about minute 25 it scales to 5. Further scale-outs are blocked by the Maximum instance limit of 5, so the highest instance count during the 30-minute period is 5.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!