Shared hosting plan.
I’m developing a couple of sites using django.
I’ve setup passenger_wsgi according to dreamhost’s help documents.
I’ve noticed that if the site doesn’t have any visitors for 30-45 minutes, then it would take 16 seconds to respond. This is day after day, at different times of the day.
I’ve tested this on a simple hello world page with no database and one h1 element.
I read that mod_wsgi has had this problem before, but we are using passenger_wsgi.
If I use google speed insight. Sites fast if I’ve visited it first.
But if I leave it be for a bit.
Google speed insight gives a timeout.
Am I missing something for passenger_wsgi.
Should I create a bot that hits my site every half hour so it doesn’t have to respawn.
This is something that shouldn’t be happening, even on a shared hosting plan. What’s the point of having a site if it takes a quarter minute to load a hello world. How will it be if it needs to query the database.
Is there something I can do to stop this from happening?
Decreasing this value means that applications will have to be spawned more often. Since spawning is a relatively slow operation, some visitors may notice a small delay when they visit your web app. However, it will also free up resources used by applications more quickly.