amazon web services - How to deploy to autoscaling group with only one active node without downtime -
there 2 questions aws autoscaling + deployment cannot answer:
- i'm trying figure out, whats best strategy deploy ec2 instance behind elb member of autoscaling group without downtime.
by ec2 setup done puppet including deployment of application, triggered after successful build jenkins.
the best solution have found check per script how many instances registered @ elb. if single 1 registered, spawn new one, runs puppet on startup (the new node date) , kill old node.
- how deploy (autoscaling ec2 behind elb) without delivering 2 different versions of application?
possible solution: check per script how many ec2 instances registered elb, spawn same amount of instances, register new instances , unregister old ones.
my experiences aws teacher me aws has service everything. there services out there accomplish requirements , solutions inconvenient?
you can create entirely new environment own elb , when it's ready , checked, switch dns record new elb.
anyway brief time (60 seconds or so, depending on ttl of dns record) users see old version while others see new version.
Comments
Post a Comment