Reputation: 155
Do rolling updates control (honor the wait time between the push to instances) minor updates to application like "Changing a header field of a jsp page".
I have set up the rolling update time to 1 hour and i have four instances. I am using eclipse IDE. I make a minor change on header/title bar and then click "Run on Server" in AWS EC2 APACHE TOMCAT7 (US-EAST-1). Beanstalk goes and updates all 4 instances at once. I was expecting it to wait for 1 hour each and all instances updated after 3 hours.. But it happens instantaneously..
Upvotes: 3
Views: 2341
Reputation: 21
Amazon Elastic Beanstalk now provides rolling deploys for your purposes. http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.rolling-version-deploy.html
As opposed to rolling updates http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.rollingupdates.html
Deploys are for software changes while updates are for configuration changes. Elastic beanstalk now has a few different options for deploys so that you avoid downtime and also deploying an unhealthy software to production.
Upvotes: 2
Reputation: 155
Rolling updates are not supported in beanstalk for app version changes.. They are supported for only env changes.. See the blogs below.. As on today web deployments or version updates cause a brief downtime because beanstalk updates all servers at once..
You can do something like this: https://forums.aws.amazon.com/message.jspa?messageID=258782
Upvotes: 3