增加 Azure WebApp for Containers 的启动超时

Increase startup timeout for Azure WebApp for Containers

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

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

有什么方法可以更改默认的 240 秒启动超时吗?

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

默认值 = 230 秒。

最大值= 1800 秒