# Thread pool queue size is not updating in elasticsearch 5.x

**URL:** https://discuss.elastic.co/t/thread-pool-queue-size-is-not-updating-in-elasticsearch-5-x/92741
**Category:** Elasticsearch
**Created:** [July 12, 2017, 1:06am UTC](https://discuss.elastic.co/t/thread-pool-queue-size-is-not-updating-in-elasticsearch-5-x/92741 "2017-07-12T01:06:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![murman](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@murman](https://discuss.elastic.co/u/murman)
#### Post date: [July 12, 2017, 1:06am UTC](https://discuss.elastic.co/t/thread-pool-queue-size-is-not-updating-in-elasticsearch-5-x/92741/1 "2017-07-12T01:06:28Z")

</div>

Hi,

I'm setting up elasticsearch 5.4.2 version, i'm trying to configure thread pool queue size in elasticsearch.yml file. I'm using below properties in **elasticsearch.ym** l file:

`thread_pool.bulk.queue_size: 5000`

After restarting all nodes, if I validate in all nodes - this value is not updated.

`GET _cluster/settings`

This is returning as empty response:

```
{
   "persistent": {},
   "transient": {}
}

```

Can someone please help what I'm doing wrong here or am I missing anything?

Appreciate your help in advance!

Thanks!

---

<div class="post-metadata">

### Author: ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)
#### Post date: [July 14, 2017, 6:43am UTC](https://discuss.elastic.co/t/thread-pool-queue-size-is-not-updating-in-elasticsearch-5-x/92741/2 "2017-07-14T06:43:43Z")

</div>

Hi @murman,

the cluster settings API shows only settings that you've changed via the API itself, not settings from `elasticsearch.yml`. You can use the [nodes info API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-info.html) though:

```auto
curl http://YOUR_HOST:9200/_nodes/thread_pool\?pretty

```

should show the relevant info. Here is the relevant snippet:

```auto
        "bulk" : {
          "type" : "fixed",
          "min" : 8,
          "max" : 8,
          "queue_size" : 5000
        }

```

I see that you want to increase the length of the bulk queue. Note that increasing the queue length is seldom the solution if the system is overwhelmed. You should either increase the system's capacity or throw less load at it.

Just think of a coffee shop with just one barista. If you, as the owner, see a constantly large queue of customers you should _not_ think: Hey, let's move to a building with a longer hallway so all the customers will fit in my shop. You should rather hire a second barista because customers don't want to wait for hours to get one coffee. I hope the analogy makes my point a bit clearer.

Daniel

---

<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: [August 11, 2017, 6:43am UTC](https://discuss.elastic.co/t/thread-pool-queue-size-is-not-updating-in-elasticsearch-5-x/92741/3 "2017-08-11T06:43:57Z")

</div>

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