# How to settings threadpool on elastic cloud?

**URL:** <https://discuss.elastic.co/t/how-to-settings-threadpool-on-elastic-cloud/245544>\
**Category:** Elasticsearch\
**Created:** [August 19, 2020, 8:17am UTC](https://discuss.elastic.co/t/how-to-settings-threadpool-on-elastic-cloud/245544 "2020-08-19T08:17:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chautm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chautm/32/73148_2.png) [@chautm](https://discuss.elastic.co/u/chautm)\
**Post date:** [August 19, 2020, 8:17am UTC](https://discuss.elastic.co/t/how-to-settings-threadpool-on-elastic-cloud/245544/1 "2020-08-19T08:17:05Z")

</div>

My project using elastic cloud but reject error:  
EsThreadPoolExecutor[name = instance-0000000003/write, queue capacity = 200

On breaking change description "Thread pool settings are now node-level settings. As such, it is not possible to update thread pool settings via the cluster settings API."  
link here: [https://www.elastic.co/guide/en/elasticsearch/reference/5.1/breaking\_50\_settings\_changes.html#\_forbid\_changing\_of\_thread\_pool\_types](https://www.elastic.co/guide/en/elasticsearch/reference/5.1/breaking_50_settings_changes.html#_forbid_changing_of_thread_pool_types)

So, how to setting queue size on my elastic cloud?  
Thanks.

---

<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:** [August 19, 2020, 8:24am UTC](https://discuss.elastic.co/t/how-to-settings-threadpool-on-elastic-cloud/245544/2 "2020-08-19T08:24:44Z")

</div>

What is the full error you are seeing? Why do you think you need to change this setting? Are you by any chance indexing into a large number of indices and shards concurrently and as a result suffer from [this](https://www.elastic.co/blog/why-am-i-seeing-bulk-rejections-in-my-elasticsearch-cluster)?

---

<div class="post-metadata">

**Author:** ![chautm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chautm/32/73148_2.png) [@chautm](https://discuss.elastic.co/u/chautm)\
**Post date:** [August 19, 2020, 9:14am UTC](https://discuss.elastic.co/t/how-to-settings-threadpool-on-elastic-cloud/245544/3 "2020-08-19T09:14:10Z")

</div>

Hi Christian,  
Thanks for reply.

This is full error:  
{  
"error": {  
"root\_cause": [  
{  
"type": "es\_rejected\_execution\_exception",  
"reason": "rejected execution of processing of [193927725][indices:data/write/update[s]]: update {[comments][\_doc][...], doc\_as\_upsert[true], doc[index {[null][\_doc][null], source[...]}], scripted\_upsert[false], detect\_noop[true]} on EsThreadPoolExecutor[name = instance-0000000003/write, queue capacity = 200, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@788f8d44[Running, pool size = 16, active threads = 16, queued tasks = 200, completed tasks = 70440089]]"  
}  
],  
"type": "es\_rejected\_execution\_exception",  
"reason": "rejected execution of processing of [193927725][indices:data/write/update[s]]: update {[comments][\_doc][...], doc\_as\_upsert[true], doc[index {[null][\_doc][null], source[...]}], scripted\_upsert[false], detect\_noop[true]} on EsThreadPoolExecutor[name = instance-0000000003/write, queue capacity = 200, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@788f8d44[Running, pool size = 16, active threads = 16, queued tasks = 200, completed tasks = 70440089]]"  
},  
"status": 429  
}

My app listens to data from Facebook, therefore depends on traffic from Facebook.  
My app usually has to write a lot of data at once from FB.

---

<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:** [August 19, 2020, 9:19am UTC](https://discuss.elastic.co/t/how-to-settings-threadpool-on-elastic-cloud/245544/4 "2020-08-19T09:19:22Z")

</div>

How many indices and shards are you actively indexing into? What is the size of your bulk requests?

---

<div class="post-metadata">

**Author:** ![chautm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chautm/32/73148_2.png) [@chautm](https://discuss.elastic.co/u/chautm)\
**Post date:** [August 20, 2020, 3:07am UTC](https://discuss.elastic.co/t/how-to-settings-threadpool-on-elastic-cloud/245544/5 "2020-08-20T03:07:24Z")

</div>

This is the current my system info:  
Nodes: 2  
Indices: 66  
Primary Shards: 150  
Documents: 497m

App reveive data from FB and write by API /\_updates, not using bulk request.

---

<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:** [August 20, 2020, 5:11am UTC](https://discuss.elastic.co/t/how-to-settings-threadpool-on-elastic-cloud/245544/6 "2020-08-20T05:11:55Z")

</div>

How many concurrent clients/threads do you have adding or modifying data in Elasticsearch?

Note that updating or indexing documents individually rather than in bulk will add a lot of overhead and result in lower performance compared to using bulk requests.

---

<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:** [September 17, 2020, 5:11am UTC](https://discuss.elastic.co/t/how-to-settings-threadpool-on-elastic-cloud/245544/7 "2020-09-17T05:11:56Z")

</div>

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