Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I'm working on an application which will run on multiple Amazon EC2 instances. I wish to incorporate auto update feature for my application. The updater should update all the Ec2 instances. Also, there is a central server which governs the creation/termination of EC2 instances as per load. The central server creates a EC2 new instance from a pre-configured custom AMI (custom image which has our application pre-installed).

Also, once there is an update, the pre-configured AMI needs to be updated too else it would create new instances which are not updated.

Should the central server notify all the ec2 instances for an update and then the instances update themselves?Or should the application on Ec2 instance have a check for periodically updating themselves? Also how should the Amazon custom AMI be updated? Should a new instance be created from it, updated and then a new AMI be re-created and then new images be created from this AMI? What is the best way to incorporate an auto update feature for this architecture?

The central server is written in Java and the application running on the cloud is written in C++. Is there a good framework available that can be used for this architecture?

Please let me know on what I could be missing in the design and how it would help me to have a nice, extensible and fail safe auto update architecture.

Thanks

share|improve this question
add comment

1 Answer 1

I believe that this is the case for configuration management tools such as puppet and Chef (there are more). With some of them you can also script the creation of the AMIs, if this is needed. After a fast read on your requests, you could start from one of the generic AMIs that suits your needs and incrementally script the rest of the infrastructure from there.

share|improve this answer
    
Thanks, I took a look and that was helpful. However, I'm looking forward to program the solution in my app. Could not up-vote the answer as I don't have enough reputation yet ;< –  mots_g Jul 25 '12 at 6:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.