# Reduce unassigned shards allocation delay

**URL:** <https://discuss.elastic.co/t/reduce-unassigned-shards-allocation-delay/90569>\
**Category:** Elasticsearch\
**Created:** [June 23, 2017, 4:38am UTC](https://discuss.elastic.co/t/reduce-unassigned-shards-allocation-delay/90569 "2017-06-23T04:38:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![animageofmine](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@animageofmine](https://discuss.elastic.co/u/animageofmine)\
**Post date:** [June 23, 2017, 4:38am UTC](https://discuss.elastic.co/t/reduce-unassigned-shards-allocation-delay/90569/1 "2017-06-23T04:38:38Z")

</div>

Our cluster got into really bad shape in production, probably because of too many shards. 45k shards in 5 data nodes.

I have tried a few things and seems to help that includes restarting the node (make sure there is no data loss). Right now, I see about 15k unassigned shards, but these unassigned hsards are recovering so slow that it will probably take days to recover.

I know there is a delay set for allocation of unassigned shards when a node leaves as mentioned [here](https://www.elastic.co/guide/en/elasticsearch/reference/1.7/delayed-allocation.html), but that's not helping here.

Is there a way to speed up allocation of unassigned shards with all nodes up? We have 2 replicas for all indices.

---

<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 21, 2017, 4:38am UTC](https://discuss.elastic.co/t/reduce-unassigned-shards-allocation-delay/90569/2 "2017-07-21T04:38:42Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
