How to prevent Heroku’s / Dyno server from hibernating or sleeping?

Asked

Viewed 511 times

0

I wanted to know how to prevent the server (also called Dyno) of Heroku enter a state of hibernation or sleep after a certain period without visits in your free plan.

Is it possible to prevent a site from entering this state of hibernation even on the free plan? It is very bad to have to access the site for the first time when it is in this state, because the access time this first time gets terribly slow.

Any idea how to avoid this hibernation in Heroku’s free plan?

2 answers

2


It is possible yes, however it is not strictly recommended, because if Heroku makes Dyno sleep after a while it’s because it’s part of the limitations of the free plan.

According to that source, to prevent the Heroku server from falling asleep or hibernating in its free plan just set up some free service that drops your X site in X minutes.

One such service is the Uptimerobot, that in the free plan gives you access to 50 monitors and pings to your monitors every 5 minutes - which is more than enough for your server not to go into hibernation state.

0

If you are using Newrelic, have how you set it to ping the server from time to time...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.