# Any relationship between refresh\_interval & bulk\_write task time?

**URL:** <https://discuss.elastic.co/t/any-relationship-between-refresh-interval-bulk-write-task-time/303112>\
**Category:** Elasticsearch\
**Created:** [April 25, 2022, 5:22am UTC](https://discuss.elastic.co/t/any-relationship-between-refresh-interval-bulk-write-task-time/303112 "2022-04-25T05:22:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![linkerc](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@linkerc](https://discuss.elastic.co/u/linkerc)\
**Post date:** [April 25, 2022, 5:22am UTC](https://discuss.elastic.co/t/any-relationship-between-refresh-interval-bulk-write-task-time/303112/1 "2022-04-25T05:22:07Z")

</div>

Is it normal to have longer bulk\_write time if I increase the refresh\_interval to say 300 seconds?  
I have noticed an index bulk\_write is taking more than 4 seconds. Not sure if this is normal or cause for concern.

I get the time from periodically calling GET /\_cat/tasks?v&detailed=true.

---

<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:** [April 26, 2022, 1:14am UTC](https://discuss.elastic.co/t/any-relationship-between-refresh-interval-bulk-write-task-time/303112/2 "2022-04-26T01:14:41Z")

</div>

> [@linkerc](#):
>
> I have noticed an index bulk\_write is taking more than 4 seconds. Not sure if this is normal or cause for concern.

Is that when you are increasing the refresh? Or is that just how long you are seeing the bulk take?

---

<div class="post-metadata">

**Author:** ![linkerc](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@linkerc](https://discuss.elastic.co/u/linkerc)\
**Post date:** [April 26, 2022, 1:49am UTC](https://discuss.elastic.co/t/any-relationship-between-refresh-interval-bulk-write-task-time/303112/3 "2022-04-26T01:49:38Z")

</div>

I'm seeing bulk write to an index with long completion time. That index happens to have refresh\_interval set to 300s.  
I did not see this before. We recently increase the refresh\_interval from 120 to 300.  
Hence this question.  
It might be something else, but just to check if this is a known behavior before going further.

---

<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:** [April 26, 2022, 1:52am UTC](https://discuss.elastic.co/t/any-relationship-between-refresh-interval-bulk-write-task-time/303112/4 "2022-04-26T01:52:58Z")

</div>

What version of Elasticsearch are you running?

---

<div class="post-metadata">

**Author:** ![linkerc](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@linkerc](https://discuss.elastic.co/u/linkerc)\
**Post date:** [April 27, 2022, 1:13am UTC](https://discuss.elastic.co/t/any-relationship-between-refresh-interval-bulk-write-task-time/303112/5 "2022-04-27T01:13:31Z")

</div>

7.15.0

---

<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:** [May 25, 2022, 1:14am UTC](https://discuss.elastic.co/t/any-relationship-between-refresh-interval-bulk-write-task-time/303112/6 "2022-05-25T01:14:16Z")

</div>

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