Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App pool timeout for azure web sites

Tags:

is there a way to set the timeout of an app pool of a web-site running under azure sites.

I have a site running there and it seems like it needs to spin up again when it has been idle for a while.

like image 373
kay.one Avatar asked Jun 08 '12 04:06

kay.one


People also ask

How do I increase the timeout on my Azure Web App?

No, you are not able to increase the timeout of azure app services as because it is set to 230 seconds and it is he default value set by an azure load balancer. Although, you can move that IIS hosted over a Virtual machine where you can able to handle over those settings.

Can we increase the timeout for Azure app services?

This timeout is not configurable, and this cannot be changed.

What is application Pool timeout?

The idle timeout determines the number of minutes the application pool (and thus the application Enterprise Tester) will be held in memory, with any requests being made, before the application is automatically unloaded from memory. On most default IIS installations, this value will default to 20 minutes.


1 Answers

Since the relevant answer is in the comments it is easy to miss it. Currently Azure Web Apps support the Always On feature, that keeps your app in memory. It is available in Basic and upper tiers and you can configure it from the portal:

Resource_Group > Web App > Settings > Application settings

Always On

If you want to achieve the same effect in Free or Shared tiers you can create a webjob that will ping your website to keep it in memory. There are numerous blog posts how to achieve this 1, 2, etc.

like image 118
Pio Avatar answered Oct 18 '22 16:10

Pio