简体   繁体   中英

Azure App Service - ARR Affinity - Auto-scaling - Stateful application

I would like to get details on the behavior of the app with ARR Affinity enabled and autoscaling?

Let's say I deploy a stateful ASP.NET web app on Azure Web App. Therefore I enable ARR Affinity. I configure autoscaling as well.

What happens if ever an instance is put down due to autoscaling. Does ARR Affinity prevent the scale in as long as user session is still active, or is the user session suddenly broken?

Could you please then give pieces of advice on how to configure stateful application in Azure Web App (or something else)?

Thank you!

Unfortunately if one of your instances is put down and the server is no longer availble, then all the requests corresponding to the ARR Affinity cookie will fail.

When you have stateful applications it is suggested to scale up instead of scale out. Meaning instead of creating multiple instances of your application, one should increase the resources given in the current instance by upgrading tier.

You can find a really nice and explanatory post from a Microsoft Expert (this is a legit tag) in Microsoft forum here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM