How does Azure know when to scale out?

David Thielen 3,211 Reputation points
2024-04-01T11:24:52.79+00:00

Hi all;

I understand how to set my Azure App Service to scale out and how I am then charged, What I don't understand is, how does Azure know when to scale out my system? From everything I've read it "just knows." How does it know?

Is it as simple as it only feeds my app N requests at a time, queueing up any additional, and watches that queue size?

Or is there something I need to add to my app to help it?

thanks - dave

Developer technologies | .NET | Blazor
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,954 questions
Azure | Azure Startups
0 comments No comments
{count} votes

Accepted answer
  1. TP 125.7K Reputation points Volunteer Moderator
    2024-04-01T12:04:11.0866667+00:00

    Hi Dave,

    Depends how you have scaling configured. For example, with Manual you set the number of instances and the count stays constant, regardless of activity.

    With Rules-based (aka Custom autoscale) when it scales out/in is based on the rules you create. For example, you could set it so that if CPU percentage stays over 80% for 5 minutes to add an additional instance. CPU percentage is just one example, you can choose from many different metrics.

    With Automatic scaling it scales out/in based on incoming HTTP requests. This is relatively new scaling option that requires that you use Premium SKU.

    Automatic scaling in Azure App Service

    https://learn.microsoft.com/en-us/azure/app-service/manage-automatic-scaling

    -TP


0 additional answers

Sort by: Most helpful

Your answer

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