# How to fix shard routing delay when index is created in re-balancing?

**URL:** <https://discuss.elastic.co/t/how-to-fix-shard-routing-delay-when-index-is-created-in-re-balancing/82256>\
**Category:** Elasticsearch\
**Created:** [April 13, 2017, 7:54am UTC](https://discuss.elastic.co/t/how-to-fix-shard-routing-delay-when-index-is-created-in-re-balancing/82256 "2017-04-13T07:54:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ABChocolate](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@ABChocolate](https://discuss.elastic.co/u/ABChocolate)\
**Post date:** [April 13, 2017, 7:54am UTC](https://discuss.elastic.co/t/how-to-fix-shard-routing-delay-when-index-is-created-in-re-balancing/82256/1 "2017-04-13T07:54:16Z")

</div>

Hi,

Shard routing is delayed when index is created during re-balancing.

Is there a way to solve this problem?

If not, is index creation not possible until the entire shard is redistributed?

---

<div class="post-metadata">

**Author:** ![s1monw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s1monw/32/3637_2.png) [@s1monw](https://discuss.elastic.co/u/s1monw)\
**Post date:** [April 21, 2017, 7:27am UTC](https://discuss.elastic.co/t/how-to-fix-shard-routing-delay-when-index-is-created-in-re-balancing/82256/2 "2017-04-21T07:27:56Z")

</div>

can you explain more what your problem is? You create an index and it turns your cluster red because it can not be allocated? How many rebalancing shards do you have at that point in time? can you also provide some diagnostic outputs like `_cat/shards` as well as `/_cluster/allocation/explain` if you are on 5.x. Also please provide which version you are running.

---

<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:** [May 19, 2017, 7:36am UTC](https://discuss.elastic.co/t/how-to-fix-shard-routing-delay-when-index-is-created-in-re-balancing/82256/3 "2017-05-19T07:36:17Z")

</div>

Closed on May 19, 2017, 7:36am UTC

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