# WRITE threadpool rejected stats

**URL:** <https://discuss.elastic.co/t/write-threadpool-rejected-stats/227306>\
**Category:** Elasticsearch\
**Created:** [April 9, 2020, 11:40am UTC](https://discuss.elastic.co/t/write-threadpool-rejected-stats/227306 "2020-04-09T11:40:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kernelpanic](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@kernelpanic](https://discuss.elastic.co/u/kernelpanic)\
**Post date:** [April 9, 2020, 11:40am UTC](https://discuss.elastic.co/t/write-threadpool-rejected-stats/227306/1 "2020-04-09T11:40:36Z")

</div>

Hello all, I'm using Elasticsearch 7.6.1 - I was looking at the indexing stats with the following command:

> GET /\_cat/thread\_pool/write?v&h=id,name,active,queue,rejected,completed

Which gives the following output:

```
id name active queue rejected completed
ch-dgJaQS7mT5cIfsxB7PA write 0 0 7838 355028363
Hz4uMmZdTQSY11W--ZpaDw write 0 0 7695 354988134
nHjK8IN-Rxi2B-VoH4pcHQ write 0 0 1735 354961006

```

Is this an unusually high number of rejections?

I'm using Logstash to send the data to Elasticsearch and am occasionally seeing response code 429 (rejected BulkshardRequests) in the Logstash log, however these messages are only occasional and they don't seem to last more than a second so I've assumed everything has just sorted itself out - do I need to look into this more or are these only transient problems that can be ignored?

Thanks.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [April 9, 2020, 12:58pm UTC](https://discuss.elastic.co/t/write-threadpool-rejected-stats/227306/2 "2020-04-09T12:58:53Z")

</div>

They sound transient to me, and a few thousand rejections in a few hundred million requests sounds ok. Logstash should react correctly to rejections by backing off and retrying after a bit.

---

<div class="post-metadata">

**Author:** ![kernelpanic](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@kernelpanic](https://discuss.elastic.co/u/kernelpanic)\
**Post date:** [April 9, 2020, 1:38pm UTC](https://discuss.elastic.co/t/write-threadpool-rejected-stats/227306/3 "2020-04-09T13:38:15Z")

</div>

Thanks David, I thought that'd be the case.

---

<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 7, 2020, 1:47pm UTC](https://discuss.elastic.co/t/write-threadpool-rejected-stats/227306/4 "2020-05-07T13:47:36Z")

</div>

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