# Write queue increasing

**URL:** https://discuss.elastic.co/t/write-queue-increasing/302153
**Category:** Elasticsearch
**Created:** [April 11, 2022, 7:45pm UTC](https://discuss.elastic.co/t/write-queue-increasing/302153 "2022-04-11T19:45:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![elephant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elephant/32/103014_2.png) [@elephant](https://discuss.elastic.co/u/elephant)
#### Post date: [April 11, 2022, 7:45pm UTC](https://discuss.elastic.co/t/write-queue-increasing/302153/1 "2022-04-11T19:45:17Z")

</div>

Hi,

We have upgraded our cluster to the latest Elastic 8 version but have hit a strange bug twice in two weeks; The write queue is filling up and write tasks are very slow to complete.

This monitoring screenshots clearly shows that the problem started on April 8th.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/6/f649db946a62f6144ac058844c0e9977900b908e.png)

Each indexing task only contains few documents. I can't understand were the bottleneck is and why the tasks are so slow to process (cluster is indexing at less than 10 doc/s).

```auto
$ docker-compose exec app curl 'http://es:9200/_cat/thread_pool/resh?v=true&h=node_name,active,queue,rejected,completed&s=node_name'
node_name active queue rejected completed
global.admin 0 0 0 0
global.data01 0 0 0 66940588
global.data02 0 0 0 66557132
global.data03 0 0 0 66746973

$ docker-compose exec app curl 'http://es:9200/_cat/thread_pool/write?v=true&h=node_name,active,queue,rejected,completed&s=node_name'
node_name active queue rejected completed
global.admin 0 0 0 1159665
global.data01 16 2444 0 693213
global.data02 0 0 0 674059
global.data03 3 0 0 683521

```

Thanks

---

<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: [May 9, 2022, 7:45pm UTC](https://discuss.elastic.co/t/write-queue-increasing/302153/2 "2022-05-09T19:45:46Z")

</div>

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