Re:How we found a bug in Amazon ELB
by faceplanter on Thursday April 28, 2016 @05:43PM
(#11592122)
While I agree with having an immutable arch is preferable but in some cases it's not viable. In one of our projects we re-use the instances like in the article since we deploy multiple times an hour. In AWS you are billed for each started hour which in this case would mean that we would pay a lot extra if we created new instances for each deploy.
[ Parent
| on HN ]
Re:How we found a bug in Amazon ELB
by djb_hackernews on Thursday April 28, 2016 @06:26PM
(#11592343)
I do wish AWS had more granular EC2 billing, and I expect that to come soon since GCE offers it. But 2 things:
1) If you are at the scale of deploying several times an hour, the instance hour cost would probably look like a rounding error for your entire AWS spend, I'd imagine.
2) At that cadence you'll definitely benefit from using containers and a container scheduler (Kube, ECS, etc). Reuse the infrastructure but redeploy your apps to your hearts content.
Is Elastic Beanstalk not an option? It doesn't replace hosts on redeploy so you wouldn't end up cycling through unnecessary instance.
Genuine question: Why is it okay to reuse instances because it's controlled via an abstraction layer, as opposed to doing it yourself?
I agree, that doesn't make a difference.
I only mentioned EB because it does that kind of thing for you and if you don't have a highly complicated setup it makes rolling updates without changing instances very easy.