|
|
|
|
|
by DVassallo
2690 days ago
|
|
That's not the right way to do it. You shouldn't monitor how many instances you're running. You just need to determine how many instances you should be running based on your scaling driver (cpu, # of users, database connections, etc). Then you call the Auto Scaling SetDesiredCapacity API with the number, and it is idempotent[1]. If the AWS API is down, your fleet size just won't change. [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.