Azure App Service - ARR Affinity with Horizontal Autoscaling

Claudio Vallesi 1 Reputation point
2022-02-16T16:33:08.113+00:00

Hello, some context here:

We are in the process of deploying an Isolated App Service and over the weekend run a pre-production deployment to see if everything was working as intended.
During this process some of our team tried to go through the web application workflows and found that we had issues with the sessions not sticking to the initial server assigned.

I initially checked online and found this question: https://learn.microsoft.com/en-us/answers/questions/39015/azure-app-service-arr-affinity-auto-scaling-statef.html
The app is unfortunately stateful but during the time we tested, there was no scale up/down for it. The default instances set to 3 were running at all times.
In the settings, we had enabled the ARR of course but apparently it was being ignored.

175009-image.png

The instances were scaled down by manually changing the autoscaler to simply keep it to 1 instance at all times, but it was only done as a temporary resolution, after realizing the issue with the sessions affinity not being followed, to be able to access the web app and conduct some additional tests.

Can someone clarify how this could have happened. Perhaps there is there a non-documented logic that makes the ARR being ignored in some cases?
Was there any outage that might have compromised parts of the service? Even checking the logs for the App Service and Autoscaler, nothing of note can be found, which is why we are a bit confused.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,829 questions
{count} votes