【问题标题】:Increase startup timeout for Azure WebApp for Containers增加 Azure WebApp for Containers 的启动超时
【发布时间】:2018-12-08 18:38:03
【问题描述】:

我们在 Azure WebApp for Containers 上的 Docker 中运行 Java Spring Boot 应用程序。单个 B1 实例足以让应用程序运行,但 Spring Boot 在启动时非常慢,可能需要 240 多秒才能启动应用程序。

因此,Azure WebApp for Containers 在 240 秒后终止了容器,没有给它足够的时间来启动。

有没有办法改变默认的240秒启动超时?

【问题讨论】:

标签: docker spring-boot azure-web-app-service azure-web-app-for-containers


【解决方案1】:

是的,您可以配置时间量。 将 WEBSITES_CONTAINER_START_TIME_LIMIT 应用设置设置为您想要的值。

默认值 = 230 秒。

最大值= 1800 秒

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-26
    • 2018-10-10
    相关资源
    最近更新 更多