Comments (2)
Thanks for the suggestion, phstc. What I would recommend instead is never to run any application with only a single instance if you require high availability, especially if you want to perform a rolling push. The rolling push in Asgard is modeled after a conventional data center cluster of machines, where you need at least two instances in order to guarantee uptime during the disruptive upgrade of each machine in the cluster.
What you're suggesting can be performed simply by increasing your ASG size to 2 and waiting for both instances to take traffic before you do a rolling push. Keeping the size at 2 is a good practice in the cloud if availability is important to you. Cloud instances have a tendency to fail randomly when least convenient for you. Better to be prepared.
Alternately, you could perform a red/black push using Asgard's Cluster screen, which would create a new ASG with a new instance before you delete the old ASG. The red/black push model is what we generally use at Netflix, because it's faster than a rolling push (for ASGs bigger than 1 instance), it guarantees homogeneous ASGs even if errors occur during deployment, and it makes it possible to roll back a bad deployment quickly by switching traffic instead of waiting for replacement instances to launch.
from asgard.
Hi @joesondow
I would like to perform the instances replacement when I deploy a new version of my app. When I start a new instance based on my app image, it automatically updates the app. It can occurs many times per day.
The Rolling Push in the ASG doesn't fit well for us, even with 2 instances, because it sends the terminate signal to the instance which still in the ELB, before the removal from ELB. Users accessing this instance (ELB enabled sticky session) may get errors until the ELB updates its instances.
Alternately, you could perform a red/black push using Asgard's Cluster screen
You mean that you have two ASG, one enabled ASG1 and another disabled ASG2, when you perform a deploy you enable ASG2, when the instances are up and running you disable ASG1? Next time the opposite ASG2 then ASG1?
Or always when you deploy, you create a new ASG and disable the old one?
How do you keep tracking of your instances usage (CPU, Memory, Disks etc), since the instances terminate a lot? We use New Relic and CloudWatch, do you recommend other tools?
from asgard.
Related Issues (20)
- Flaky test in DeploymentWorkflowSpec
- Support for the new C4.* and D2.* instances
- Wiki documentation for user data customization incorrect HOT 3
- Documentation needed for ASGARD-907 - IAM Credentials
- Support for AWS CodeDeploy
- Asgard services fail to start on version 1.5.1
- Trouble compiling / running asgard on jdk8 HOT 2
- Support for new "StepScaling" policies
- Stop task on ASG redirects to 127.0.0.1
- how to do a rolling push on ASG with a launch config that assigns public ip to all instances
- Asgard in Windows
- Problem running Asgard .jar file: "asgard-standalone.jar" HOT 1
- Problem running Asgard .jar file: "asgard-standalone.jar" in Ubuntu HOT 1
- Error in building Asgard project in eclipse(groovy-grails-tool-suite-3.6.4.RELEASE-e4.4.2-win32-x86_64)
- Ephemeral Failures when logging in via Github
- Eureka-Integration wiki page has dead link.
- Issue regarding running Asgard 1.5.1 on EC2 (ubuntu) HOT 2
- Improve wiki documentation on Asguard IAM permissions
- Cover deploy frameworks (Asgard, Spinnaker, etc) HOT 1
- Application unable to deploy in tomcat getting below messages HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asgard.