# Best way to reindex an ES index which is accepting updated

**URL:** https://discuss.elastic.co/t/best-way-to-reindex-an-es-index-which-is-accepting-updated/138994
**Category:** Elasticsearch
**Created:** [July 7, 2018, 1:16am UTC](https://discuss.elastic.co/t/best-way-to-reindex-an-es-index-which-is-accepting-updated/138994 "2018-07-07T01:16:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sharathr83](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@sharathr83](https://discuss.elastic.co/u/sharathr83)
#### Post date: [July 7, 2018, 1:16am UTC](https://discuss.elastic.co/t/best-way-to-reindex-an-es-index-which-is-accepting-updated/138994/1 "2018-07-07T01:16:54Z")

</div>

I have an ES index which is continuously receiving updates. Apart from inserts and deletes, my index accepts a lot of update operations. Over a period of time, I see a lot of disk IO performance issues because of which I am planning to reindex my cluster every 6 months or so.

I checked out the Reindex API, but this seems to use the current snapshot of the cluster to start copying data. What about the data that is continuously streaming in ? Whats the best way to handle that ?

Also, when you say ReIndex API copies data from one index to another, is it only the data that is copied ? Would disk defragments carry over to the new index ?

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [July 7, 2018, 7:23am UTC](https://discuss.elastic.co/t/best-way-to-reindex-an-es-index-which-is-accepting-updated/138994/2 "2018-07-07T07:23:04Z")

</div>

How does your application read from Elasticsearch?

> [@sharathr83](#):
>
> Would disk defragments carry over to the new index ?

Not sure what you mean there.

---

<div class="post-metadata">

### Author: ![sharathr83](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@sharathr83](https://discuss.elastic.co/u/sharathr83)
#### Post date: [July 7, 2018, 9:58am UTC](https://discuss.elastic.co/t/best-way-to-reindex-an-es-index-which-is-accepting-updated/138994/3 "2018-07-07T09:58:42Z")

</div>

- We have a python client which uses an index alias to read. So once the reindex completes, I am planning to just switch the alias.

- When you restore a snapshot from elastic, the deleted documents seem to carry over. Which means that my disk IO performance remains the same after a snapshot and restore. Will the same thing happen even if I reindex ?

---

<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: [August 4, 2018, 9:58am UTC](https://discuss.elastic.co/t/best-way-to-reindex-an-es-index-which-is-accepting-updated/138994/4 "2018-08-04T09:58:44Z")

</div>

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