# Thread\_pools increase value

**URL:** <https://discuss.elastic.co/t/thread-pools-increase-value/80295>\
**Category:** Elasticsearch\
**Created:** [March 28, 2017, 12:30pm UTC](https://discuss.elastic.co/t/thread-pools-increase-value/80295 "2017-03-28T12:30:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cfifua](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@cfifua](https://discuss.elastic.co/u/cfifua)\
**Post date:** [March 28, 2017, 12:30pm UTC](https://discuss.elastic.co/t/thread-pools-increase-value/80295/1 "2017-03-28T12:30:16Z")

</div>

Hello!

I am getting an errors:  
Caused by: org.elasticsearch.common.util.concurrent.EsRejectedExecutionException: rejected execution of org.elasticsearch.transport.TcpTransport$RequestHandler@670e2606 on EsThreadPoolExecutor[search, queue capacity = 1000, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@71540818[Running, pool size = 13, active threads = 13, queued tasks = 1000, completed tasks = 5097151]]

Also i have a lot of "rejected" bulk and search operations in \_cat/thread\_pool?v:

bulk 244  
fetch\_shard\_started 0  
fetch\_shard\_store 0  
flush 0  
force\_merge 0  
generic 0  
get 0  
index 0  
listener 0  
management 0  
refresh 0  
search 11373  
snapshot 0  
warmer 0

We have a cluster with 7 nodes:  
8 cpu  
30 RAM

Elasticsearch v5.1

I found that i can increase number of threadpool.search.queue\_size, but i think that i should increase the number of threads and pool size, but i am not really sure which number should be there.  
Probably i should increase something else.  
I am hoping for your support.

Best regards.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [March 28, 2017, 1:36pm UTC](https://discuss.elastic.co/t/thread-pools-increase-value/80295/2 "2017-03-28T13:36:35Z")

</div>

See my [previous comments](https://discuss.elastic.co/t/any-idea-what-these-errors-mean-version-2-4-2/70690/4) on this subject.

---

<div class="post-metadata">

**Author:** ![cfifua](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@cfifua](https://discuss.elastic.co/u/cfifua)\
**Post date:** [March 28, 2017, 2:14pm UTC](https://discuss.elastic.co/t/thread-pools-increase-value/80295/3 "2017-03-28T14:14:47Z")

</div>

Thank you, for fast reply, yeah it's definitely make sense.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [March 28, 2017, 2:56pm UTC](https://discuss.elastic.co/t/thread-pools-increase-value/80295/4 "2017-03-28T14:56:24Z")

</div>

You're welcome.

---

<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:** [April 25, 2017, 2:56pm UTC](https://discuss.elastic.co/t/thread-pools-increase-value/80295/5 "2017-04-25T14:56:29Z")

</div>

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