How to outsource the periodic task (ie, in the "cloud")?

Say that the client is happy with the work you have done by creating a script to perform a task that collects some information and displays a massive database file. Then they are interested in the task being carried out periodically (approximately monthly) without human intervention. The client is not interested in running the task locally, so you have to find somewhere else to do it - somewhere, as it sounds, "in the cloud."

What methods / services would you use cheaply for this?

Things I've learned so far:

  • Amazon EC2 . This sounds good, but there is no obvious way to stop and restart the scheduled instances. Paying> $ 70 a month to save an instance running cron, but nothing useful is waste.
  • Bite a bullet and pay for a virtual private server (VPS). Again, though, even paying $ 20 a month ( Slicehost , for example) seems to be too crowded if the task only runs a few hours from each month.
  • Shared hosting account and WebCron . It seems a little MacGyverish and, possibly, violates the ToS of many public hosting services, which are often related to long-term tasks.

Do you have experience with these or any other parameters?

+3
source share
4 answers

I would use Amazon EC2. Just run the instance, copy the script into the instance, add it to the startup procedure and add the completion to the end of the script. Link this to your own image and turn off the instance. Now you can run your own image every month and it will execute the script and shutdown. You pay only 10 ¢ / hour with an instance of m1.small.

You just need someone to manually start the instance monthly or the client set a small monthly cronjob to start the instance.

Note: shutdown -h is required, otherwise the instance will reboot and not stop

+7
source

VPS, 6 , .

, , .

+1

EC2 , cron EC2 .

, cron , .

0

http://guardiano.pm, , api, . Guradiano /api/dothat, - . , , , , .

0

All Articles