Have tried to follow the following articles.
Talking about Rolling Updates
Talking about Full Restart
While these are predominantly based on upgrades, I have a requirement of restarting an elastic search.
What we need is restart the nodes in a cluster one by one without any of the shards moving or synchronizing with the replica.
We stopped processing so there are no changes happening on the nodes.
We have a primary and one replica shard for each index.
We tried these settings
But this only talks about the primary shard not moving as soon as we enable it after restart the replica shard movement starts.
Is there a setting that just restarts elastic and attaches to the same primary and replica shards present locally. We already know there is no change to the data. All we need is elastic to restart and get a fresh start.
We do not want both relocating and initializing (not sure what does initializing mean)