# Control the order of shards recovery on node re-start

**URL:** <https://discuss.elastic.co/t/control-the-order-of-shards-recovery-on-node-re-start/13945>\
**Category:** Elasticsearch\
**Created:** [October 14, 2013, 5:13pm UTC](https://discuss.elastic.co/t/control-the-order-of-shards-recovery-on-node-re-start/13945 "2013-10-14T17:13:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankit\_Jain](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@Ankit\_Jain](https://discuss.elastic.co/u/Ankit_Jain)\
**Post date:** [October 14, 2013, 5:13pm UTC](https://discuss.elastic.co/t/control-the-order-of-shards-recovery-on-node-re-start/13945/1 "2013-10-14T17:13:17Z")

</div>

Hi All,

We are maintaining 200 shards per node and each shard has 50 to 100 GB  
of data. We are creating a new index for each day. Due to large number of  
shards and large shard size, the restart of node is taking very high time.

Is it possible to control the order of recovery of shards, so that the  
shards of current index will recover first, then the shards of previous day  
index and so on?

Regards,  
Ankit Jain

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![shadyabhi](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@shadyabhi](https://discuss.elastic.co/u/shadyabhi)\
**Post date:** [October 16, 2013, 11:16am UTC](https://discuss.elastic.co/t/control-the-order-of-shards-recovery-on-node-re-start/13945/2 "2013-10-16T11:16:11Z")

</div>

I'm not sure what's the best way to do this but as a workaround, you  
could close the indices before doing a restart and then open them in  
the order you want the indices to be recovered.

> **[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.

On Mon, Oct 14, 2013 at 10:43 PM, Ankit Jain [ankitjaincs06@gmail.com](mailto:ankitjaincs06@gmail.com) wrote:

> Hi All,
> 
> We are maintaining 200 shards per node and each shard has 50 to 100 GB of  
> data. We are creating a new index for each day. Due to large number of  
> shards and large shard size, the restart of node is taking very high time.
> 
> Is it possible to control the order of recovery of shards, so that the  
> shards of current index will recover first, then the shards of previous day  
> index and so on?
> 
> Regards,  
> Ankit Jain
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Regards,  
Abhijeet Rastogi (shadyabhi)

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ankit\_Jain](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@Ankit\_Jain](https://discuss.elastic.co/u/Ankit_Jain)\
**Post date:** [October 16, 2013, 5:17pm UTC](https://discuss.elastic.co/t/control-the-order-of-shards-recovery-on-node-re-start/13945/3 "2013-10-16T17:17:56Z")

</div>

Hi Abhijeet,

Thanks for response.

A workaround suggested by you is good but we would require a solution which  
can also work in case of node craches.  
Also, we don't want to close whole indices in case of restart of one  
node that server only few shards.

Regards,  
Ankit Jain

On Wednesday, 16 October 2013 16:46:11 UTC+5:30, Abhijeet Rastogi wrote:

> I'm not sure what's the best way to do this but as a workaround, you  
> could close the indices before doing a restart and then open them in  
> the order you want the indices to be recovered.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-open-close.html)
> 
> On Mon, Oct 14, 2013 at 10:43 PM, Ankit Jain \<[ankitj...@gmail.com](mailto:ankitj...@gmail.com)\<javascript:\>\>  
> wrote:
> 
> > Hi All,
> > 
> > We are maintaining 200 shards per node and each shard has 50 to 100 GB  
> > of  
> > data. We are creating a new index for each day. Due to large number of  
> > shards and large shard size, the restart of node is taking very high  
> > time.
> > 
> > Is it possible to control the order of recovery of shards, so that the  
> > shards of current index will recover first, then the shards of previous  
> > day  
> > index and so on?
> > 
> > Regards,  
> > Ankit Jain
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Regards,  
> Abhijeet Rastogi (shadyabhi)

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:12am UTC](https://discuss.elastic.co/t/control-the-order-of-shards-recovery-on-node-re-start/13945/4 "2017-07-06T02:12:07Z")

</div>

Closed on July 6, 2017, 2:12am UTC


