azureazure-web-app-service

Azure App Service Load Balancing "SiteLoadBalancing.LeastRequests" is "Least Active Requests"?


The Azure App Service load balancing setting "SiteLoadBalancing.LeastRequests" is the "Least Active Requests" algorithm, right? https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.powershell.cmdlets.websites.support.siteloadbalancing.leastrequests?view=az-ps-latest

SiteLoadBalancing.LeastRequests

Am I understanding that correctly?

https://learn.microsoft.com/en-us/answers/questions/2121068/azure-app-service-load-balancing-siteloadbalancing https://learn.microsoft.com/en-us/answers/questions/2121068/azure-app-service-load-balancing-siteloadbalancing


Solution

  • The Azure App Service load balancing setting "SiteLoadBalancing.LeastRequests" is the "Least Active Requests" algorithm, right?

    Yes, you are correct. The Azure App Service load balancing setting SiteLoadBalancing.LeastRequests corresponds to the "Least Active Requests" algorithm.

    To set the load balancing to SiteLoadBalancing.LeastRequests

    Go to your Azure App Service - >Environment variables - > add below environment variable.

    enter image description here

    To test the load balancing behavior

    Go to your azure app service - > click on scale out (app service plan) -> Increase the instance count to more than one

    enter image description here