[英]Azure Linux based web app Restart automatically
I am Running Django Application on an Azure Linux Web App, I have noticed that after a certain point the application restarts.我在 Azure Linux Web 应用程序上运行 Django 应用程序,我注意到在某个时间点后应用程序重新启动。 when drilling down the issue, I found that the Container disk or memory is not sufficient.在深入研究问题时,我发现 Container 磁盘或内存不足。 My Image size is around 5-6 gb which is under 15 gb limit.我的图像大小约为 5-6 GB,低于 15 GB 的限制。 Is there any better way of Deploying Django application ?有没有更好的部署 Django 应用程序的方法?
As said by @Grace-MacJones-MSFT here , this may be due to Proactive Auto Healing feature.正如@Grace-MacJones-MSFT 所说, 这可能是由于主动自动修复功能。
It is an expansion on the Auto Heal offering.它是 Auto Heal 产品的扩展。 Proactive Auto Heal is a feature designed to setup default auto heal settings for every web app so that if they violate these rules then it will recycle the process. Proactive Auto Heal 是一项旨在为每个 Web 应用程序设置默认自动修复设置的功能,以便如果它们违反这些规则,那么它将回收该过程。
This feature will monitor the high memory usage and slow response situations and restarts the app when one of these conditions is met.此功能将监控高内存使用和缓慢响应的情况,并在满足这些条件之一时重新启动应用程序。
We can disable this by following the below steps as mentioned in the above link:我们可以按照上面链接中提到的以下步骤禁用此功能:
Go to the Azure portal--> your Linux Web App--> Settings --> Application Settings--> Under App Settings add “WEBSITE_PROACTIVE_AUTOHEAL_ENABLED” and set to “False.”转到 Azure 门户——>您的 Linux Web 应用程序——>设置——>应用程序设置——>在应用程序设置下添加“WEBSITE_PROACTIVE_AUTOHEAL_ENABLED”并设置为“False”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.