I have 8 nodes in my ES cluster. I want to de-provision 2 of the servers. When i stop the Elasticsearch process in 2 of my nodes, the 430 shards which are assigned to these 2 nodes gets unassigned. Is there any way to get these shards assigned in the rest 6 nodes automatically. I have enough disk space on these nodes.
Please let me know if you need more info. Thanks in advance.
If there is a copy of the shard available somewhere else in the cluster, then shutting a node will result in those copies being duplicates to keep the number of replicas high enough.
However, if you have only a single replica of a shard and shut down the two nodes containing that replica it cannot be recovered.
Hope that makes sense.
You may want to take a look at the Put shutdown API | Elasticsearch Guide [8.0] | Elastic
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.