# How to check, when replicas are really created

**URL:** <https://discuss.elastic.co/t/how-to-check-when-replicas-are-really-created/202335>\
**Category:** Elasticsearch\
**Created:** [October 4, 2019, 11:36am UTC](https://discuss.elastic.co/t/how-to-check-when-replicas-are-really-created/202335 "2019-10-04T11:36:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MMH](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mmh/32/54449_2.png) [@MMH](https://discuss.elastic.co/u/MMH)\
**Post date:** [October 4, 2019, 11:36am UTC](https://discuss.elastic.co/t/how-to-check-when-replicas-are-really-created/202335/1 "2019-10-04T11:36:04Z")

</div>

I use ElasticSeach 6.5  
To change index mappings I am issuing reindexing operation.  
For faster reindexing, I set `number_of_replicas` to 0 for a new index (that I am reindexing into).  
After reindexing is finished I set `number_of_replicas` to 1. But this operation (setting of index parameter) returns immediately. Because of that, I think, that right after this post replicas are not created fully. It's too fast for big index.  
How to check if replicas are really fully created and populated, so I can delete the old index and be sure, that data is safe in case of some of the node's failure?

---

<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:** [October 7, 2019, 5:30am UTC](https://discuss.elastic.co/t/how-to-check-when-replicas-are-really-created/202335/2 "2019-10-07T05:30:34Z")

</div>

> [@MMH](#):
>
> How to check if replicas are really fully created and populated, so I can delete the old index and be sure, that data is safe in case of some of the node's failure?

You should wait for the [cluster health](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html) to report `green`, indicating that all replicas have been successfully allocated.

---

<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:** [November 4, 2019, 5:30am UTC](https://discuss.elastic.co/t/how-to-check-when-replicas-are-really-created/202335/3 "2019-11-04T05:30:39Z")

</div>

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