RE: [newtech-1] AWS Cron Jobs

From: GC
Sent on: Tuesday, February 26, 2013 3:43 AM

Thanks for the responses.  My setup is this:

EC2(app) <-> EC2(db,replica set) <-> EBS(raid,replica set)

 

In the near future I may wrap the EC2(app) instances in an auto-scaler.  Klaus, to answer your question, I can't run cron from the EC2(app) instances because they won't always be up.  The auto-scaler will handle the launching of them.  It seems to me that I need an EC2 instance (micro-sized) to act as an always-on controller.  It would run the cron jobs and pass messages to the auto-scaler.  If that's the case, then I need something to handle the messaging between the controller and the auto-scaler.  This sounds like SQS but Amazon recommends SWF to handle cron.  Chintan (and others), based on what I need do you think that SWF will handle this?  If not and I need to roll my own, how will messages get passed from the controller to the auto-scaler?  I checked out RabbitMQ and Gearman but I’m trying to avoid third-party solutions (although I will use one if absolutely necessary) because they present their own overhead and it seems like SQS and/or SWF should be able to handle this.

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy