-->

Azure App Service load balancing settings

2020-06-13 08:26发布

问题:

ARM template for Azure App Service has setting to configure load balancing algorithm - loadBalancing. According to documentation it's available through SiteConfig object and can have following values: WeightedRoundRobin, LeastRequests, LeastResponseTime, WeightedTotalTraffic, RequestHash.

We performed some testing with Standard S1 app service plan with two instances. First instance was responding to all request with no delay, second instance was responding to all requests with 3 seconds delay, ARR affinity was turned off.

Test showed that all settings perform the same - after some ramp up time all requests spread evenly between two instances. It was not expected at least for LeastResponseTime, which intuitively suppose to direct more traffic to first instance (with low response time).

So the questions is, does this setting even work? And if it does, in what app service configuration it's respected?