Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does arraffinity cookie always set on azure web application?

I host web application on Azure. I have basic plan where only one instance works. After I've published my app into cloud, I've noticed generated arraffinity cookie called ARRAffinity. So even with single instance of hosted web application there will be always generated arraffinity cookie? Is that right? Or it doesn't matter how many instances are around and the Azure web application alwyas generates the cookie?

like image 741
krypru Avatar asked Jun 07 '18 12:06

krypru


People also ask

What is ARRAffinity cookie?

As discussed at Disable Session affinity cookie (ARR cookie) for Azure web apps - Azure App Service, ARRAffinity cookie is a built-in feature of Azure App Service to facilitate session data management. Today we would like to study a typical case to help those concerned to avoid potential business impact.

What does Arr affinity do when enabled?

ARR Affinity assigns a cookie to the user which ensure the same instance will be used until the session has expired.

What is Arr affinity Azure?

Azure WebApps by default have ARR Affinity cookie enabled, this cookie pairs a client request to a specific server. However, Azure Web Apps is a stateless platform and, in an environment, where we are scaling the Website across multiple instances, the ARR Affinity cookie will be bound to a specific server.

How do I turn off affinity arr?

How to check if my application has the ARR affinity enabled. Go to the Azure portal. Note: If you don't need it, you can disable it there. Just need to select off and click on the save button.


2 Answers

It's always there by default.
There are ways to Disable Session affinity cookie (ARR cookie) for Azure web apps

Here's an explanation: Azure: ARRAffinity makes affinity cookies!

Affinity Cookies are used to aid people who need to stay with a certain instance of web app or web site in Azure. The reason for this is that we strive for statelessness, but do not always achieve it. This means that the user must stay on the particular instance that they using till they break state and then things are saved at that time.

like image 90
rickvdbosch Avatar answered Oct 19 '22 03:10

rickvdbosch


This can be disabled without adding the Arr-Disable-Session-Affinity header that was mentioned in the blog post in the other answer. Azure has an option to turn this off under Settings > Configuration > General Settings > Platform settings.

The setting toggle in Azure

like image 4
MarcusOtter Avatar answered Oct 19 '22 04:10

MarcusOtter