Skip to main content

Avoid idling in Openshift with UptimeRobot

Yesterday I prepared a presentation for my coworkers comparing two PaaS services, Heroku and OpenShift, and now, an idea has come to my mind.

If this is the first time you’ve heard about a PaaS I would tell you that a PaaS is a platform that abstracts you from all infrastructure needs to host an application and also offers some extras like NodeJS, Python, MongoDB, MySQL, etc. If this explanation is not enough you can read what Tom’s IT wrote about it.

These services usually have free plans where applications are idling if they not receive a request in a period of time, for example:

  • Heroku: Idling on 30 minutes of inactivity (6 hours sleeping daily, so bad)
  • Openshift: Idling o 24 hours of inactivity (App never sleeps, so good)

Reading above, please migrate your services to Openshift because it has a 24 hours idling and not sleep time on its free plan.

If you want to avoid application idling but you don’t want to hear about paying, (I would recommend you to pay a plan or buy a cheaper host like OVH) you can try UptimeRobot.

UptimeRobot is a free service created to check the uptime of a server, if the server fails it notifies you to the email you have provided. I use this service together with IFTTT to get notifications in my mobile phone when one of my websites is down.

But as I have said, if you don’t want to pay for Heroku or Openshift plan (or others) you can use UptimeRobot to make HTTP requests or other kind of requests to your application hosted on those services and you application will never be idle.

  • sakib fx
  • Jay

    Are you going to migrate to OS3 or find another solution? I just read about the 18 hour sleep. Unuseable. And the only other option on OS3 is 50 bucks a month.

  • Right now I’m using Heroku for 7$/month

  • sakib fx

    i believe getting a linode VPS is the best deal now (5$/month for 1GB)

  • Jay

    How does Amazon elastic beanstalk match up?

  • Speaking about a VPS, this blog is hosted in a VPS from OVH (2.99€/month)

  • Right now I’m using S3 as a CDN in a private project (free layer right now) and when I’ve tried to calculate a possible final price, it’s been difficult and you never know how much are you going to pay.

    Using Amazon Elastic Beanstalk is like paying for an EC2 and S3 together. I would say calculating a final price depends on too many variables and it is quite difficult too. However AWS seems quite cheap.

    Anyway, we are speaking about a few bucks more or less. It is not a difference if the project worths it 😉

Adrián G. is Stephen Fry proof thanks to caching by WP Super Cache