Reputation: 5163
I've a .net 4.5 website running on Azure Websites. I've a staging deployment set up. I warm up both sites and then i run the swap process (both from azure portal and from Azure powershell). No matter what I try the swapping process restarts my websites (both) and they take about 3 minutes to boot up.
I was under the impression the deployment swapping was supposed to keep the websites "warm" and have no down time? My websites are unusuable for about 3 minutes!
As far as I can tell both production and staging slots have the same application settings etc.
Any advice or pointers would be greatly appreciated.
Upvotes: 17
Views: 2048
Reputation: 894
Jeff is right. When there are sticky app settings or connection strings defined for the slot then the website's worker process will be restarted during the swap. The sequence of actions that happen in that case is this:
Upvotes: 5
Reputation: 13510
I've run into this when I am using the sticky app settings options. My assumption is that it does the swap but then has to change the setting to the sticky value and therefore it is like you making a change in web.config or changing the value in the portal yourself which needs to restart the app.
I haven't found any official documentation on this but if you have sticky slots setup I believe it is the culprit. And I'm not sure if there is anything that can be done about it if that is the case.
Upvotes: 0