# Is it possible or (and) a good practice to change queue\_size of bulk to unlimited?

**URL:** <https://discuss.elastic.co/t/is-it-possible-or-and-a-good-practice-to-change-queue-size-of-bulk-to-unlimited/134547>\
**Category:** Elasticsearch\
**Created:** [June 5, 2018, 7:34am UTC](https://discuss.elastic.co/t/is-it-possible-or-and-a-good-practice-to-change-queue-size-of-bulk-to-unlimited/134547 "2018-06-05T07:34:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)\
**Post date:** [June 5, 2018, 7:34am UTC](https://discuss.elastic.co/t/is-it-possible-or-and-a-good-practice-to-change-queue-size-of-bulk-to-unlimited/134547/1 "2018-06-05T07:34:22Z")

</div>

HI,

I am running a 3 node ELK GA 5.0.0 cluster. I have the below setting (that I have queried using API).

```
"bulk": {
	"type": "fixed",
	"min": 10,
	"max": 10,
	"queue_size": 50
},

```

Each vm has 10 cores. Acording to the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/modules-threadpool.html), it has taken default values. My CPU usage is ~10%, so that I am running one Logstash instance also on each. Is it possible to change the `queue_size` to `-1` (unlimited)? Is there any risk? Is there any perfomance improvement / compromise? How can I update the config using API POST?

Thank you.

---

<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 3, 2018, 7:34am UTC](https://discuss.elastic.co/t/is-it-possible-or-and-a-good-practice-to-change-queue-size-of-bulk-to-unlimited/134547/2 "2018-07-03T07:34:32Z")

</div>

Closed on July 3, 2018, 7:34am UTC

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