【问题标题】:Azure Web Services [Web App for Containers (linux)] - how to prevent timeout periodicallyAzure Web Services [Web App for Containers (linux)] - 如何定期防止超时
【发布时间】:2018-12-12 08:00:47
【问题描述】:

Web Services 会定期出现错误日志:

错误 - 站点 YYY 的容器 XXX 未在预期时间限制内启动。经过时间 = 230.3790706 秒

我设置了Microsoft's blog中已经提到的以下设置,但仍然失败:

1. Use the EXPOSE instruction in your Dockerfile to expose port 3000.
2. Use the WEBSITES_PORT app setting with a value of "3000" to expose that port.

如何配置以防止出现此错误?

【问题讨论】:

    标签: azure web-services timeout azure-web-app-service azure-web-app-for-containers


    【解决方案1】:

    Azure: Container did not start within expected time (WebApp) 中发现了类似问题并附有解决方案。

    添加应用程序设置:WEBSITES_CONTAINER_START_TIME_LIMIT = 1800

    【讨论】:

    • 我不推荐使用这个设置。它将使您的整个应用程序服务(网络应用程序)陷入 30 分钟。这并不能解决问题。
    • 嗨@Newteq 开发者,您还有其他解决方案吗?
    • 很遗憾没有。我尝试了很多不同的东西,但似乎没有任何效果。主要问题是因为应用程序的启动出现问题。所以,这种方法的一个大问题是你会在尝试任何新的东西之前将你的应用服务死锁 30 分钟
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-06-13
    • 2018-11-26
    • 2015-08-13
    • 1970-01-01
    • 1970-01-01
    • 2018-10-10
    • 1970-01-01
    相关资源
    最近更新 更多