# Reindexing Performance

**URL:** <https://discuss.elastic.co/t/reindexing-performance/119166>\
**Category:** Elasticsearch\
**Created:** [February 9, 2018, 5:38am UTC](https://discuss.elastic.co/t/reindexing-performance/119166 "2018-02-09T05:38:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![olanamramoj2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/olanamramoj2/32/27587_2.png) [@olanamramoj2](https://discuss.elastic.co/u/olanamramoj2)\
**Post date:** [February 9, 2018, 5:38am UTC](https://discuss.elastic.co/t/reindexing-performance/119166/1 "2018-02-09T05:38:05Z")

</div>

Hi,

We are having problems with reindexing our data. Can you advice what to do on how to reindex while not affecting search speed of other indices? reindexing takes alot of resource.

Thanks!

---

<div class="post-metadata">

**Author:** ![Shaoranlaos](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Shaoranlaos](https://discuss.elastic.co/u/Shaoranlaos)\
**Post date:** [February 9, 2018, 10:45am UTC](https://discuss.elastic.co/t/reindexing-performance/119166/2 "2018-02-09T10:45:36Z")

</div>

you could use the requests\_per\_second parameter of the reindex request to controll how much documents are reindexed per second.  
([https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html#\_url\_parameters\_3](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html#_url_parameters_3))  
That will logically reduce the speed of the reindexing

```auto
POST _reindex?wait_for_completion=false&requests_per_second=3000&refresh=true
{
  "source": {
    "index": "test-2018.01"
  },
  "dest": {
    "index": "test-2018"
  }
}

```

---

<div class="post-metadata">

**Author:** ![olanamramoj2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/olanamramoj2/32/27587_2.png) [@olanamramoj2](https://discuss.elastic.co/u/olanamramoj2)\
**Post date:** [February 12, 2018, 12:51am UTC](https://discuss.elastic.co/t/reindexing-performance/119166/3 "2018-02-12T00:51:31Z")

</div>

Hi Shaoranlaos, thank you very much! Will try this out 🙂

---

<div class="post-metadata">

**Author:** ![olanamramoj2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/olanamramoj2/32/27587_2.png) [@olanamramoj2](https://discuss.elastic.co/u/olanamramoj2)\
**Post date:** [February 13, 2018, 11:43pm UTC](https://discuss.elastic.co/t/reindexing-performance/119166/4 "2018-02-13T23:43:17Z")

</div>

Hi Shao,

I have another concern, after re indexing, how can we throttle populating the replica shards? because this also takes resource and affects our search performance.

---

<div class="post-metadata">

**Author:** ![Shaoranlaos](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Shaoranlaos](https://discuss.elastic.co/u/Shaoranlaos)\
**Post date:** [February 14, 2018, 6:03am UTC](https://discuss.elastic.co/t/reindexing-performance/119166/5 "2018-02-14T06:03:09Z")

</div>

sorry i haven't found anything for this  
i myself work only with one node so this was never a concern

---

<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:** [March 14, 2018, 6:03am UTC](https://discuss.elastic.co/t/reindexing-performance/119166/6 "2018-03-14T06:03:38Z")

</div>

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