by DVassallo · 7y ago · 0 comments
[1] https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-man...
We were doing exactly this - but we had a flaw: we didnt handle the case when the AWS API was actually down.
So we were constantly monitoring for how many running instances we had - but when the API went down, just as we were ramping up for our peak traffic - the system thought that none were running because the API was down - so it just kept continually launching instances.
The increased scale of instances pummeled the control plane with thousands of instances all trying to come online and pull down their needed data to get operational -- which them killed our DBs, pipeline etc...
We had to reboot our entire production environment at peak service time...
[1] https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API...
The poster is aware of this, which is why they talked specifically what they did wrong.
Think long and hard why you felt it necessary to make your comment and what value it actually provided.
Would love to hear what others are also tracking.
Goes to show what their business numbers are....
We also added smart loading across AZs due to spot instances getting whacked when our fleet was outbid and AWS took them back.
As well as other monitoring methods to be sure we werent caught with a smart system doing dumb things.
Limits are malleable based on your use case. Speak with your rep.
You might even not know how limits came to be... I am.
---
I have had a time when git suffered a flaw, and a junior dev also suffered a flaw in checking in secrets.... thousands of instances across the globe were launched... for bitcoin mining... $700,000 in a few hours...
We all learned a bit that day.
Coupled with a horizontal pod autoscaler (which sets the replica count based on a metric) you get the best of both worlds.