Your app may not be setting the cache headers correctly. If your resource is cached, it will never hit the dyno. If you look at the logs, a cached hit will show up in nginx, but nothing else (e.g. no web.1 process). If you see a web.1 request, then it isn't getting cached by varnish.
The only time we flush the cache is when you deploy. Idling an app will not impact cached content. Oren On Fri, Jan 7, 2011 at 3:03 AM, Martin Petrov <[email protected]> wrote: > If this is the case then I should remove http caching in order to > prevent the app from shutting down as much as possible. > But... why requesting a cached page starts the app if the request is > never handled by the app? > > On Jan 7, 11:18 am, Steve Smith <[email protected]> wrote: >> I'm not an expert on this so I would double check, however I think this is >> all the case, >> >> If you only have one dyno then the app will shutdown when there are no >> requests for a certain time period. I believe this isn't the case once you >> have more than one dyno but in my experience at that point you have enough >> concurrent connections to keep things alive anyway. >> >> If you are caching the page it will be stored in varnish so the request will >> never be handed out to the app and will therefore allow the app to shutdown. >> >> Steve >> >> On 7 Jan 2011, at 09:02, Martin Petrov wrote: >> >> >> >> >> >> >> >> > Hi, >> >> > Looking at my logs I see that if my application is not used for 1 hour >> > its state is changed from up to down. Next time a request comes it >> > takes several seconds to start again. >> >> > Does requesting an http cached page keeps the application alive? My >> > app has only one page, which is http cached. >> >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "Heroku" group. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group >> > athttp://groups.google.com/group/heroku?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
