An easy way to cycle EC2 instances where we have an elasticsearch cluster running. As an example target we have,
- Two instances
i-22222222, both running elastic search as a cluster with replicas set to 2, so that each has a replica of the others primary indices.
- Add one to the auto-scaling group, increasing desired to 3
- Wait for new instance
i-333333to join the cluster