# High number of refresh threads

**URL:** https://discuss.elastic.co/t/high-number-of-refresh-threads/216135
**Category:** Elasticsearch
**Created:** [January 22, 2020, 9:05pm UTC](https://discuss.elastic.co/t/high-number-of-refresh-threads/216135 "2020-01-22T21:05:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Christophe\_Journel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christophe_journel/32/12534_2.png) [@Christophe\_Journel](https://discuss.elastic.co/u/Christophe_Journel)
#### Post date: [January 22, 2020, 9:06pm UTC](https://discuss.elastic.co/t/high-number-of-refresh-threads/216135/1 "2020-01-22T21:06:00Z")

</div>

Hello,  
Here is the result of  
GET /\_cat/thread\_pool/refresh/?v

node\_name name active queue rejected  
node-5203 refresh 0 0 0  
node-5202 refresh 10 13676 0  
node-5206 refresh 0 0 0  
node-5201 refresh 10 75341 0  
node-5205 refresh 1 0 0  
node-5204 refresh 10 3494 0

I have 6 nodes, and some of them have a huge number of refresh in queue.  
How can i get rid of them ?  
I already change the refresh\_interval from 10s to 60s, but i guess refresh in queue are now useless. is there a way to delete them ?  
Thanks

---

<div class="post-metadata">

### Author: ![DeeeFOX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deeefox/32/49566_2.png) [@DeeeFOX](https://discuss.elastic.co/u/DeeeFOX)
#### Post date: [January 23, 2020, 5:47am UTC](https://discuss.elastic.co/t/high-number-of-refresh-threads/216135/2 "2020-01-23T05:47:05Z")

</div>

Does the system load avg high in the nodes?  
And How the io util grows to each node when this happen?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [January 23, 2020, 6:25am UTC](https://discuss.elastic.co/t/high-number-of-refresh-threads/216135/3 "2020-01-23T06:25:14Z")

</div>

What type of storage do you have? Local SSDs? Are all nodes the same specification? Do you have any indices on these nodes for which you perform a lot of updates and/or use a lot of nested documents?

---

<div class="post-metadata">

### Author: ![Christophe\_Journel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christophe_journel/32/12534_2.png) [@Christophe\_Journel](https://discuss.elastic.co/u/Christophe_Journel)
#### Post date: [January 27, 2020, 2:11pm UTC](https://discuss.elastic.co/t/high-number-of-refresh-threads/216135/4 "2020-01-27T14:11:02Z")

</div>

Hello.  
Figured it out. A huge number of Spark threads updating the same document with a refresh\_interval set to 1sec... This was a misconfiguration where the elasticsearch document\_id was supposed to be different. Therefore instead of creating a huge number of different douments in ES, the cluster tried to update only one.

---

<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: [February 24, 2020, 2:11pm UTC](https://discuss.elastic.co/t/high-number-of-refresh-threads/216135/5 "2020-02-24T14:11:06Z")

</div>

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