Autoscaling not scaling out on High CPU

Iain Brown 1 Reputation point
2024-10-28T10:49:30.4133333+00:00

I have an Azure App Service that I've switched from rules based auto scale to automatic scaling as I want to not have to think about when to scale in/out.

But I'm finding that I'm not scaling out even when my CPU usage is 95-100% for reasonably long periods of time, and I'm also getting out of memory exceptions. This rise in CPU usage is tied to a rise in incoming requests at peak usage times. I've set the maximum number of instances to 10, but it never scales out beyond my initial 2. I'm using P1v3 instances.

The criteria for performing a scale out are a little opaque, but I would expect this to scale. Is there a way to diagnose why it isn't scaling?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,721 Reputation points Moderator
    2024-11-04T11:59:03.6233333+00:00

    @Iain Brown Sure, As its mentioned in the doc-

    Automatic scaling is a feature in Azure App Service that simplifies the process of scaling your web apps and App Service Plans. Unlike the traditional Azure autoscale feature, where you need to set specific scaling rules (based on factors like CPU usage, memory, or predefined schedules), automatic scaling makes scaling decisions on its own, dynamically adjusting based on real-time needs.

    So the use cases for Autoscale is Ideal for predictable workloads where traffic patterns are known (e.g., business hours vs. off-hours). You have full control over scaling behavior, which is useful if your app has consistent, known demand patterns.

    where as use case for Automatic scaling- Best for applications with unpredictable traffic patterns where immediate responsiveness is critical. Automatic Scaling can handle sudden spikes more effectively by prewarming instances, which helps avoid delays from cold starts.

    So the scenario you are expecting can be fulfilled using Autoscale-

    Having said that reached out to you privately please response there.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.