How does Azure know when to scale out?

David Thielen 2,506 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

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,470 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,249 questions
Azure Startups
Azure Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
38 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 82,576 Reputation points
    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