One of the main problem on hosting your web applications in Heroku is "idling". Idling is when your web dynos will go down after not having a single visit or connection in 1 hour span.
The solution for this is very easy, just ping your app. But what is the effective or cheapest way of doing it?
As of now, I do have at least 5 web apps hosted in Heroku and at first I am having a hard time on keeping my apps from idling. Here's how I ping my apps simultaneously:
- Sign up to SetCronJob.com
- Create a php file with this code inside:
- <?php
file_get_contents('your_website_here');
file_get_contents('your_website_here');
file_get_contents('your_website_here');
file_get_contents('your_website_here');
....
and so on - Back to SetCronJob, create a job with 30 minutes pattern
- Paste your app url along with the php file you created : sampleapp.herokuapp.com/cron.php
- Hit save
That's it!!
Unfortunate for me, I found a very late solution to my problem. You can also use New Relic's monitoring capability to ping your website. Using SetCronJob only allows you to ping your website for every 30 minutes because of account limitation but here in New Relic it seems every minute it pings your apps.
Same process but instead of using SetCronJob you can paste your cron url in New Relic's monitoring page.
https://www.easycron.com provides a free plan which allows setting webcron with "10 minutes" minimum interval.
ReplyDeleteHi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me..
ReplyDeleteI am a regular follower of your blog. Really very informative post you shared here.
Kindly keep blogging. If anyone wants to become a Front end developer learn from Javascript Training in Chennai .
or Javascript Training in Chennai.
Nowadays JavaScript has tons of job opportunities on various vertical industry. ES6 Training in Chennai
Thanks you for sharing this unique useful information content with us. Really awesome work. keep on blogging
ReplyDeletepython Training in Pune
python Training in Chennai
python Training in Bangalore
Thank you for taking the time and sharing this information with us. It was indeed very helpful and insightful while being straight forward and to the point.
ReplyDeleteBest Devops Training in pune
Devops Training in Bangalore
Power bi training in Chennai
Very well written blog and I always love to read blogs like these because they offer very good information to readers with very less amount of words....thanks for sharing your info with us and keep sharing.
ReplyDeleteData Science course in Indira nagar
Data Science course in marathahalli
Data Science Interview questions and answers
Data science training in tambaram
Data Science course in btm layout
Data science course in kalyan nagar
Data science course in bangalore
Nice Blog. the blog is really very Informative. every content should be neatly represented.
ReplyDeleteData Science Training Course In Chennai | Data Science Training Course In Anna Nagar | Data Science Training Course In OMR | Data Science Training Course In Porur | Data Science Training Course In Tambaram | Data Science Training Course In Velachery
Amazing Article ! I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
ReplyDeleteamazon web services aws training in chennai
microsoft azure training in chennai
workday training in chennai
android-training-in chennai
ios training in chennai
Mmorpg Oyunlar
ReplyDeleteinstagram takipçi satın al
tiktok jeton hilesi
Tiktok jeton hilesi
SAC EKİMİ ANTALYA
referans kimliği nedir
İNSTAGRAM TAKİPÇİ SATIN AL
metin2 pvp serverlar
instagram takipçi satın al