简体   繁体   English

基于 Azure Linux 的 Web 应用程序自动重启

[英]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.

相关问题 Django Web应用已成功部署在Azure App Service Linux上,但只能看到Azure默认页面 - Django Web app is successfully deployed on Azure App Service Linux but can only see Azure Default Page 如何在Azure Web Apps上托管的Django App中自动备份db.sqlite3文件? - How do I automatically backup db.sqlite3 file in Django App hosted on Azure Web Apps? 将postgres DB从Heroku移动到Azure托管的基于Linux的VM(Django应用程序)所需的步骤 - Steps needed to move postgres DB from Heroku to an Azure hosted Linux-based VM (Django app) 运行开发服务器时(在Kudu上),基于Django的Azure Web App被卡住 - Django-based Azure Web App getting stuck when development server is run (on Kudu) 使用 django 写入 Azure 应用服务 linux 中的 /tmp - Writing in /tmp in Azure app service linux with django 根据用户创建在Heroku上自动部署应用 - Automatically Deploy App on Heroku Based on User Creation Azure Devops将Django应用程序部署到Linux Azure App Service - Azure Devops deploy django application to Linux Azure App Service 在Azure Web App中安装Psycopg2 - Installing psycopg2 in an Azure Web App Django Web 应用程序中的 Azure 响应时间缓慢 - Azure slow response time in Django web app 使用Postgresql数据库创建Azure Web App(可以吗?) - Creating an Azure Web App with Postgresql database (is that possible?)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM