How do I prevent the Heroku server / Dyno from hibernating or sleeping?

0

I would like to know how to prevent Heroku's server (also called Dyno ) from going into hibernation or sleeping after a certain period without visits in your free plan.

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

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

    
asked by anonymous 28.01.2015 / 23:41

2 answers

2

It is possible, however, it is not strictly recommended , because if Heroku causes Dyno to sleep after some time, it is part of the limitations of the free plan.

According to this source , to prevent the Heroku server from sleeping or going into hibernation in your free plan just set up some free service that dumps your X site in X minutes.

One of these services is UptimeRobot , which in the free plan gives you access to 50 monitors and pings to your monitors every 5 minutes - what is more than enough for your server not to go into hibernation .

    
28.01.2015 / 23:41
0

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

    
06.03.2015 / 00:47