# Updating threadpool settings in ES

**URL:** <https://discuss.elastic.co/t/updating-threadpool-settings-in-es/20654>\
**Category:** Elasticsearch\
**Created:** [November 9, 2014, 5:22pm UTC](https://discuss.elastic.co/t/updating-threadpool-settings-in-es/20654 "2014-11-09T17:22:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxim\_Fedchyshyn](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@Maxim\_Fedchyshyn](https://discuss.elastic.co/u/Maxim_Fedchyshyn)\
**Post date:** [November 9, 2014, 5:22pm UTC](https://discuss.elastic.co/t/updating-threadpool-settings-in-es/20654/1 "2014-11-09T17:22:45Z")

</div>

Hello Everyone  
I would like to get an advice about ES river and queue capacity increasing

I'm getting such an error:

[\_river][1]: failed to execute [get [\_river][database\_name][\_meta]: routing  
[null]]  
org.elasticsearch.common.util.concurrent.EsRejectedExecutionException:  
rejected execution (queue capacity 1000) on  
org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction$AsyncSingleAction$1@31beb3a4

Looking for that issue solution I came to  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-threadpool.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-threadpool.html)

And here is shown an example:  
threadpool:  
index:  
type:cached

How to run it properly against cluster?

I tried the following command:  
curl -XPUT localhost:9200/\_cluster/settings -d  
'{"threadpool.index":{"type": "cached"}}'  
and  
curl -XPUT localhost:9200/\_cluster/settings -d  
'{"threadpool":{"index":{"type": "cached"}}}'  
as per  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-update-settings.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-update-settings.html)

but it returned an error:  
{"error":"ActionRequestValidationException[Validation Failed: 1: no  
settings to update;]","status":400}

Please guide me how to apply those settings properly and how to specify it  
in config file, as threadpool.bulk.queue\_size: 50000 did work as well.

Thank you in advance!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a9db613e-4a00-4841-8c5f-25300a1f601d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a9db613e-4a00-4841-8c5f-25300a1f601d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [November 9, 2014, 10:04pm UTC](https://discuss.elastic.co/t/updating-threadpool-settings-in-es/20654/2 "2014-11-09T22:04:47Z")

</div>

I read "database\_name " - do you use JDBC river?

If so, please increase max\_bulk\_actions parameter in JDBC plugin 1.3.4.4 to  
a large value, like 5000 or 10000.

Changing threadpool.bulk is wrong and is not a solution. Where did you find  
this "solution"?

Jörg

On Sun, Nov 9, 2014 at 6:22 PM, Maxim Fedchyshyn [sevmax@gmail.com](mailto:sevmax@gmail.com) wrote:

> Hello Everyone  
> I would like to get an advice about ES river and queue capacity increasing
> 
> I'm getting such an error:
> 
> [\_river][1]: failed to execute [get [\_river][database\_name][\_meta]:  
> routing [null]]  
> org.elasticsearch.common.util.concurrent.EsRejectedExecutionException:  
> rejected execution (queue capacity 1000) on  
> org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction$AsyncSingleAction$1@31beb3a4
> 
> Looking for that issue solution I came to  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-threadpool.html)
> 
> And here is shown an example:  
> threadpool:  
> index:  
> type:cached
> 
> How to run it properly against cluster?
> 
> I tried the following command:  
> curl -XPUT localhost:9200/\_cluster/settings -d  
> '{"threadpool.index":{"type": "cached"}}'  
> and  
> curl -XPUT localhost:9200/\_cluster/settings -d  
> '{"threadpool":{"index":{"type": "cached"}}}'  
> as per  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-update-settings.html)
> 
> but it returned an error:  
> {"error":"ActionRequestValidationException[Validation Failed: 1: no  
> settings to update;]","status":400}
> 
> Please guide me how to apply those settings properly and how to specify it  
> in config file, as threadpool.bulk.queue\_size: 50000 did work as well.
> 
> Thank you in advance!
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/a9db613e-4a00-4841-8c5f-25300a1f601d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a9db613e-4a00-4841-8c5f-25300a1f601d%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/a9db613e-4a00-4841-8c5f-25300a1f601d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a9db613e-4a00-4841-8c5f-25300a1f601d%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEBN1C-PNYAOQR14aZ6Ay%3D%2BF8bLkjwfpWHNvWfR-ib8nA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEBN1C-PNYAOQR14aZ6Ay%3D%2BF8bLkjwfpWHNvWfR-ib8nA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:51am UTC](https://discuss.elastic.co/t/updating-threadpool-settings-in-es/20654/3 "2017-07-06T00:51:15Z")

</div>


