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
2
Answers
Yes, you are correct. The Azure App Service load balancing setting SiteLoadBalancing.LeastRequests uses the "Least Active Requests" algorithm. This means that incoming requests are directed to the instance with the least number of active requests at that moment.
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.
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