# Indexing rate fluctuates

**URL:** <https://discuss.elastic.co/t/indexing-rate-fluctuates/92167>\
**Category:** Elasticsearch\
**Created:** [July 6, 2017, 8:44pm UTC](https://discuss.elastic.co/t/indexing-rate-fluctuates/92167 "2017-07-06T20:44:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hding](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@hding](https://discuss.elastic.co/u/hding)\
**Post date:** [July 6, 2017, 8:44pm UTC](https://discuss.elastic.co/t/indexing-rate-fluctuates/92167/1 "2017-07-06T20:44:48Z")

</div>

Why does my indexing rate fluctuate between 4k doc/sec to 7k doc/sec?

And it does not fluctuate frequently. It keeps at 7k doc/sec for a few minutes, then drops for a few minutes, then goes up again.

I tried to disable swapping by set "bootstrap.memory\_lock: true", but failed (I'm using Mac). Is it because of this?

Thanks!

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 6, 2017, 8:58pm UTC](https://discuss.elastic.co/t/indexing-rate-fluctuates/92167/2 "2017-07-06T20:58:58Z")

</div>

Is this happening at the same time as merge of segments? Do you monitor with xpack?

---

<div class="post-metadata">

**Author:** ![hding](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@hding](https://discuss.elastic.co/u/hding)\
**Post date:** [July 6, 2017, 9:11pm UTC](https://discuss.elastic.co/t/indexing-rate-fluctuates/92167/3 "2017-07-06T21:11:44Z")

</div>

I think it's probably not happening during merging of segments, since I set "index.refresh\_interval" to "1h".

And yes, I'm monitoring with X-Pack.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 6, 2017, 9:30pm UTC](https://discuss.elastic.co/t/indexing-rate-fluctuates/92167/4 "2017-07-06T21:30:11Z")

</div>

Anything obvious in the graphs when indexing rate falls down?

---

<div class="post-metadata">

**Author:** ![hding](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@hding](https://discuss.elastic.co/u/hding)\
**Post date:** [July 6, 2017, 9:43pm UTC](https://discuss.elastic.co/t/indexing-rate-fluctuates/92167/5 "2017-07-06T21:43:07Z")

</div>

It's weird that I no longer observe long-term drops (only short-term drops).

I will update if I observe them again.

Thank you!

---

<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 3, 2017, 9:43pm UTC](https://discuss.elastic.co/t/indexing-rate-fluctuates/92167/6 "2017-08-03T21:43:28Z")

</div>

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