Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increase startup timeout for Azure WebApp for Containers

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?

like image 534
Sergey Kandaurov Avatar asked Jun 29 '18 14:06

Sergey Kandaurov


People also ask

How are Azure Web Apps for containers fully managed?

Just pull container images from Docker Hub or a private Azure Container Registry, and Web App for Containers will deploy the containerized app with your preferred dependencies to production in seconds. The platform automatically takes care of OS patching, capacity provisioning, and load balancing.

Does Azure App Service use containers?

Deploy to Azure in seconds It has never been easier to deploy container-based web apps. Just pull container images from Docker Hub or a private Azure Container Registry and Web App for Containers will deploy the containerised app with your preferred dependencies to production in seconds.

Does Azure app Service support Linux?

Work with . NET, . NET Core, Node. js, Java, Python, or PHP in containers, or running on Windows or Linux.


1 Answers

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

like image 145
AjayKumar-MSFT Avatar answered Oct 16 '22 04:10

AjayKumar-MSFT