# Redistribute shards before shutting down

**URL:** <https://discuss.elastic.co/t/redistribute-shards-before-shutting-down/16804>\
**Category:** Elasticsearch\
**Created:** [April 3, 2014, 7:36pm UTC](https://discuss.elastic.co/t/redistribute-shards-before-shutting-down/16804 "2014-04-03T19:36:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikhail\_Simin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikhail_simin/32/1676_2.png) [@Mikhail\_Simin](https://discuss.elastic.co/u/Mikhail_Simin)\
**Post date:** [April 3, 2014, 7:36pm UTC](https://discuss.elastic.co/t/redistribute-shards-before-shutting-down/16804/1 "2014-04-03T19:36:10Z")

</div>

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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/d29b0a14-5bb5-48c3-b829-539c3b12a842%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [April 3, 2014, 8:13pm UTC](https://discuss.elastic.co/t/redistribute-shards-before-shutting-down/16804/2 "2014-04-03T20:13:04Z")

</div>

On Thu, Apr 3, 2014 at 3:36 PM, Mikhail Simin [mikhail@nextdoor.com](mailto: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:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPmjWd2j477nbB2vQwqa1rEENNrhT8ajCue%2Bp8qYKMC2VHZ7Zw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd2j477nbB2vQwqa1rEENNrhT8ajCue%2Bp8qYKMC2VHZ7Zw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:38am UTC](https://discuss.elastic.co/t/redistribute-shards-before-shutting-down/16804/3 "2017-07-06T01:38:27Z")

</div>


