I have an index with 7 primaries and 2 replicas. Each shard is on its own machine. So, there are 21 data nodes.
When I have to do rolling restart, currently, I check if shard relocation is complete before I switch over to restart another node.
Do I need to wait for shard allocation to complete or should I simply check if cluster status is green and then move over to the next node?
In addition, do I also need to worry about initializing shards before restarting another node?
Say, I only wait for cluster to become green and try to restart a node that has a primary and its replica shard is still in the process of relocating. Will I run into any issues? How does elasticsearch handle such a scenario?
I am using version 1.7.0.