Redistribute shards before shutting down

Hello!

Is there a way to instruct a single ES node to actively upload its shards
to the rest of the farm?

My end goal is to modify the shutdown script to do this before
decommissioning an ES node instance.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d29b0a14-5bb5-48c3-b829-539c3b12a842%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

On Thu, Apr 3, 2014 at 3:36 PM, Mikhail Simin mikhail@nextdoor.com wrote:

Hello!

Is there a way to instruct a single ES node to actively upload its shards
to the rest of the farm?

See the last example here:

You'll have to wait for the shards to leave by watching them in the status
API.

My end goal is to modify the shutdown script to do this before
decommissioning an ES node instance.

If you are shutting it down for good or plan to smash the data for some
reasoon (repartition?) then this is a good thing to do. If you just want
to restart it you are better of disabling replica allocation for the period
while the node is down. They should come back online quickly once it is
back.

Nik

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPmjWd2j477nbB2vQwqa1rEENNrhT8ajCue%2Bp8qYKMC2VHZ7Zw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.