[Answered ]-Django + FastCGI app on Azure, frequent restarts

2đź‘Ť

The problem is much more complex than “Turn on Always On option”. I faced this problem, resolved and described on my blog: https://lnx.azurewebsites.net/python-app-on-azure-web-apps-frequently-restarts/

0đź‘Ť

Try enabling the “Always On” feature, this can be done via the web app settings.

How Azure websites works is that the site content is stored on a file server, and then the site is loaded by a web worker when it is active. If the site is idle it will be unloaded, causing a restart. Always on means that your web app is always loaded.

Documentation for configuring web apps is here:
https://azure.microsoft.com/en-us/documentation/articles/web-sites-configure/

Leave a comment