If you going to upgrade your cluster or restart a node, it is wise to disable the shard allocation on that node. This prevents Elasticsearch from rebalancing missing shards until you tell it otherwise. This post demonstrates how to disable and enable shard allocation.