# Increasing the search queue size error(s)

**URL:** <https://discuss.elastic.co/t/increasing-the-search-queue-size-error-s/90068>\
**Category:** Elasticsearch\
**Created:** [June 20, 2017, 9:26am UTC](https://discuss.elastic.co/t/increasing-the-search-queue-size-error-s/90068 "2017-06-20T09:26:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![barry1](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@barry1](https://discuss.elastic.co/u/barry1)\
**Post date:** [June 20, 2017, 9:26am UTC](https://discuss.elastic.co/t/increasing-the-search-queue-size-error-s/90068/1 "2017-06-20T09:26:30Z")

</div>

Hello,

I'm getting this error:

> rejected execution of org.elasticsearch.transport.TransportService$7@4dfdde91 on EsThreadPoolExecutor[search, queue capacity = 1000, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@158535d6[Running, pool size = 7, active threads = 3, queued tasks = 1000, completed tasks = 20055757]]

So I'm trying to increase the queue\_size for search. First I tried this through the console:

> PUT \_cluster/settings  
> {  
> "persistent": {  
> "thread\_pool.search.queue\_size": 2000  
> }  
> }

But then I got this message:

> {  
> "error": {  
> "root\_cause": [  
> {  
> "type": "illegal\_argument\_exception",  
> "reason": "persistent setting [thread\_pool.search.queue\_size], not dynamically updateable"  
> }  
> ],  
> "type": "illegal\_argument\_exception",  
> "reason": "persistent setting [thread\_pool.search.queue\_size], not dynamically updateable"  
> },  
> "status": 400  
> }

I also tried doing it through the user settings on the configuration page

> thread\_pool.search.queue\_size: 2000

But then I got the message:

> Illegal user settings

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [June 20, 2017, 8:39pm UTC](https://discuss.elastic.co/t/increasing-the-search-queue-size-error-s/90068/2 "2017-06-20T20:39:26Z")

</div>

Thread pool settings are now node-level settings and not dynamically updateable anymore. You'll have to set it in the per-node config. More details in the migration docs: [https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking\_50\_settings\_changes.html#\_threadpool\_settings](https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_50_settings_changes.html#_threadpool_settings)

> But then I got the message:
> 
> > Illegal user settings

Could you post your complete `elasticsearch.yml`? It should work when added to your config, so it may be a syntax error.

---

<div class="post-metadata">

**Author:** ![barry1](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@barry1](https://discuss.elastic.co/u/barry1)\
**Post date:** [June 21, 2017, 9:23am UTC](https://discuss.elastic.co/t/increasing-the-search-queue-size-error-s/90068/3 "2017-06-21T09:23:05Z")

</div>

We are running in the elastic cloud, so I don't have an `elasticsearch.yml` and the user settings on the configuration page are empty.

I only try to add this setting to it:

> thread\_pool.search.queue\_size: 2000

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [June 21, 2017, 1:27pm UTC](https://discuss.elastic.co/t/increasing-the-search-queue-size-error-s/90068/4 "2017-06-21T13:27:07Z")

</div>

Ah, I'm not sure how you adjust that setting in Elastic Cloud (I'm not overly familiar with configuration there). I'd suggest opening a support ticket, the Elastic Cloud support engineers would know better than me 🙂

---

<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 19, 2017, 1:27pm UTC](https://discuss.elastic.co/t/increasing-the-search-queue-size-error-s/90068/5 "2017-07-19T13:27:08Z")

</div>

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