After stopping some data nodes, my cluster becomes red and the reason is: no_valid_shard_copy after stopping data nodes?
How can I fix this?
Update: should I use reroute?
POST _cluster/reroute?retry_failed
After stopping some data nodes, my cluster becomes red and the reason is: no_valid_shard_copy after stopping data nodes?
How can I fix this?
Update: should I use reroute?
POST _cluster/reroute?retry_failed
If you have no replica shards you need to vacate all indices from the nodes yoiu are to remove before actually removing them. If you do not, a number of primary shards will no longer be available to the cluster, resulting in a red state and lost data.
To fix this youi need to bring the nodes and the data back before following the process described in the docs I linked to.
Thank you a lot!
So I need to start my data nodes (those I turned off)
And then update settings:
PUT _cluster/settings
{
"transient" : {
"cluster.routing.allocation.exclude._ip" : "10.0.0.1"
}
}
Right?
How long you need to wait will depend on how much data and how many shards you have. If you enabled a replica you could remove one node at a time as long as you allow Elasticsearch to rebalanced after each one.
thanks, it works
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.