Increase startup timeout for Azure WebApp for Containers
Asked Answered
B

1

18

We run Java Spring Boot app in a Docker on Azure WebApp for Containers. Single B1 instance is enough for the app to run, however Spring Boot is pretty slow at startup and might take over 240 seconds for the app to start.

As the result Azure WebApp for Containers kills the container after 240 seconds not giving it enough time to start.

Is there any way to change the default 240 seconds startup timeout?

Butadiene answered 29/6, 2018 at 14:24 Comment(1)
We could get the answer from this documentDesalvo
A
40

Yes, you can configure the amount of time. Set the WEBSITES_CONTAINER_START_TIME_LIMIT App Setting to the value you want.

Default Value = 230 Sec.

Max Value= 1800 Sec

Arcuation answered 5/7, 2018 at 10:52 Comment(3)
We have got this information added in the Azure docs, adding here for reference: Environment variables and app settings in Azure App Service App Service Linux FAQArcuation
Is there any information on how to diagnose why a given container might suddenly change from taking 120s to 760s to start up?Drayman
does this workd on Windows app service? I add this with 1800 value but the app still restarts on 230 secs.Arenicolous

© 2022 - 2024 — McMap. All rights reserved.