Elasticsearch: evacuate all data before disconnecting node data?

Is there a way to tell node to delete all its data (distribute it back among other nodes) so that I can close it and not have to rebalance / replicate after deleting it?

If I have 2 copies of each fragment and I drop one node, some of the fragments now only have 1 live copy and need to be replayed. I would prefer not to reset to 1 live copy for any period of time if I can.

+4
source share
1 answer

After the publication on the ES mailing list, I was informed that the correct answer lies in the _cluster / settings api, in particular the cluster.routing.allocation.exclude._ip parameter.

: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-cluster.html

curl -XPUT localhost:9200/_cluster/settings -d '{
  "transient" : {
    "cluster.routing.allocation.exclude._ip" : "10.0.0.1"
  }
}'

IP- , . "", IP- ( "", IP-).

, .

+12

All Articles