Loading...

Make sure to disable ARR Affinity for your Sitecore Azure App Service

When Application Request Routing (ARR) Affinity is turned on for your Sitecore ContentDelivery role in Azure App Service all requests coming from a specific user are routed to the same instance. This is accomplished by assigning them an affinity cookie which allows the service to ensure the same instance is used during subsequent requests.

In a scaled environment this is really not good since single instance can reach much higher number of requests when compared to others. Additionally, if instance fails for some reason all of those requests will continue to be routed to that failed instance which obviously can create some pretty big problems.

Please make sure to disable ARR affinity to get all the benefits of a properly scaled environment.

How to check if your Sitecore ContentDelivery App Service has the ARR affinity enabled

  1. Go to Sitecore ContentDelivery Azure App Service
  2. Go to Configuration > General Settings
  3. Scroll down until you see ARR affinity

ARR affinity is not so important for ContentManagement role as you can only have 1 instance in your App Service however, ContentDelivery role is typically scaled out to multiple instances and it is critical to ensure ARR affinity is disabled.

Thank you for reading this article :)

Disclaimer
This is a personal blog. The opinions expressed here represent my own and not those of people, institutions or organizations that the owner may or may not be associated with in professional or personal capacity, unless explicitly stated.. In addition, my thoughts and opinions change from time to time I consider this a necessary consequence of having an open mind. This blog disclaimer is subject to change at anytime without notifications.