AfricaHackTrip / simple-speed

Fast and simple Internet bandwidth speed testing
https://simplespeed.5apps.com
16 stars 7 forks source link

Ping Heroku regularly so that it doesn't have to boot all the time #15

Closed raucao closed 10 years ago

raucao commented 10 years ago

The sample transfers are done to/from Heroku, a PaaS, where server.rb is running on. The problem is that they stop the app when there's no request for a certain time, and restart it on the next request then. But restarting is terribly slow, so the first sample after a restart will always take 2 sample runs (20 seconds) instead of 1.

We should have a cron job running somewhere that does a request every 5 minutes or sth, so that the app isn't being stopped anymore.

bumi commented 10 years ago

I think you can use some monitoring tool like pingdom to do that.

raucao commented 10 years ago

Crazy expensive. I don't even have free slots left on my account.

Thing is, we don't need to do it from various locations with test results and all. A simple cron job that curls a URL is perfectly fine.

bumi commented 10 years ago

ah, thought they still have one check for free then you would not need to maintain a job or a second app to do it. :)

raucao commented 10 years ago

I set up a cron job that does a request to /upload every 5 minutes. Should be enough.