# Is it possible to replicate the index WITHOUT yellow status? (replication disabled due to faster reindex)

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-replicate-the-index-without-yellow-status-replication-disabled-due-to-faster-reindex/272308>\
**Category:** Elasticsearch\
**Created:** [May 6, 2021, 2:20pm UTC](https://discuss.elastic.co/t/is-it-possible-to-replicate-the-index-without-yellow-status-replication-disabled-due-to-faster-reindex/272308 "2021-05-06T14:20:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![astrodi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/astrodi/32/117732_2.png) [@astrodi](https://discuss.elastic.co/u/astrodi)\
**Post date:** [May 6, 2021, 2:20pm UTC](https://discuss.elastic.co/t/is-it-possible-to-replicate-the-index-without-yellow-status-replication-disabled-due-to-faster-reindex/272308/1 "2021-05-06T14:20:33Z")

</div>

Hi there,

due to speedup of re-indexing, I'm setting "number\_of\_replicas": 0 while re-indexing is running.  
Once finished, than I'm setting 1 replica:

```
PUT bmpf_claim_docs_v2/_settings
{
    "number_of_replicas": 1
}

```

Until the replicas will be created and distributed, ES cluster is in yellow state, it will create the ticket etc.

So my question is: Is it possible to replicate index with some advanced command to avoid yellow state? (still being able to re-index same speed like when replicas set to 0)

Note: with replicas indexing speed ~1000/s, without 1500/s (re-indexing in same cluster, 13M docs, 500GB primary, 15shards, cluster has 15 data nodes)

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [May 6, 2021, 2:32pm UTC](https://discuss.elastic.co/t/is-it-possible-to-replicate-the-index-without-yellow-status-replication-disabled-due-to-faster-reindex/272308/2 "2021-05-06T14:32:35Z")

</div>

> [@astrodi](#):
>
> Until the replicas will be created and distributed, ES cluster is in yellow state, it will create the ticket etc.

That's the expected behaviour, and no you cannot bypass it. Yellow health is expected sometimes and will normally resolve to green automatically, there's no need to create a ticket when it happens.

---

<div class="post-metadata">

**Author:** ![astrodi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/astrodi/32/117732_2.png) [@astrodi](https://discuss.elastic.co/u/astrodi)\
**Post date:** [May 6, 2021, 2:42pm UTC](https://discuss.elastic.co/t/is-it-possible-to-replicate-the-index-without-yellow-status-replication-disabled-due-to-faster-reindex/272308/3 "2021-05-06T14:42:15Z")

</div>

ticket in case of "yellow state" is created automatically as part of monitoring for similar cases like that:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/0/f08f3c5155d84a02e5ef5c8055387308b9024738.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/b/bb57cc08dc3b9cf15c355081d89b05eecce69b26.png)

Maybe we should monitor only "red status".

Anyway, thanks for the quick answer

---

<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:** [June 3, 2021, 2:42pm UTC](https://discuss.elastic.co/t/is-it-possible-to-replicate-the-index-without-yellow-status-replication-disabled-due-to-faster-reindex/272308/4 "2021-06-03T14:42:18Z")

</div>

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