# How to use "index.allocation.max\_retries"

**URL:** <https://discuss.elastic.co/t/how-to-use-index-allocation-max-retries/81894>\
**Category:** Elasticsearch\
**Created:** [April 11, 2017, 12:25am UTC](https://discuss.elastic.co/t/how-to-use-index-allocation-max-retries/81894 "2017-04-11T00:25:08Z")\
**Posts on this page:** 4\
**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 11, 2017, 12:25am UTC](https://discuss.elastic.co/t/how-to-use-index-allocation-max-retries/81894/1 "2017-04-11T00:25:08Z")

</div>

Hi,

How do I set "index.allocation.max.retries" ?  
([https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cluster-reroute.html#\_retry\_failed\_shards](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cluster-reroute.html#_retry_failed_shards))

What is the time unit in seconds or minutes?

Also, how do I use '?retry\_failed' in the '\_reroute' API?

---

<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 18, 2017, 8:18am UTC](https://discuss.elastic.co/t/how-to-use-index-allocation-max-retries/81894/2 "2017-04-18T08:18:46Z")

</div>

> [@ABChocolate](#):
>
> ?retry\_failed

see [https://www.elastic.co/guide/en/elasticsearch/reference/5.3/cluster-reroute.html#\_retry\_failed\_shards](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/cluster-reroute.html#_retry_failed_shards)[quote="ABChocolate, post:1, topic:81894"]  
How do I set "index.allocation.max.retries" ?([Cluster Reroute | Elasticsearch Guide [5.0] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cluster-reroute.html#_retry_failed_shards))  
[/quote]

see [https://www.elastic.co/guide/en/elasticsearch/reference/5.3/indices-update-settings.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/indices-update-settings.html)

---

<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 18, 2017, 8:19am UTC](https://discuss.elastic.co/t/how-to-use-index-allocation-max-retries/81894/3 "2017-04-18T08:19:12Z")

</div>

> [@ABChocolate](#):
>
> What is the time unit in seconds or minutes?

it's retries, ie how many retries until it stops trying 🙂

---

<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 16, 2017, 8:30am UTC](https://discuss.elastic.co/t/how-to-use-index-allocation-max-retries/81894/4 "2017-05-16T08:30:50Z")

</div>

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