I am facing a strange situation on Amazon AWS. I don´t understand for what the desired Instances number is used for? I have an autoscaling group that contains scale up and scale down actions configured.
I have a custom PHP file that run actions Scale up and Scale down depending on some external factors. I want to know which number I have to write in desired instances to not affect my autoscaling actions.
- I set desired to 2
- I have 2 instances running
- I run Scale Down action
- Instances is 1
- Autoscaling group will automatically start another instance, so my scale down is not useful because I ended by having 2 running
What can I do?