# Search requests still get rejected at the same number of queued requests despite having increased \`queue\_size\`

**URL:** https://discuss.elastic.co/t/search-requests-still-get-rejected-at-the-same-number-of-queued-requests-despite-having-increased-queue-size/346716
**Category:** Elasticsearch
**Created:** [November 8, 2023, 2:28pm UTC](https://discuss.elastic.co/t/search-requests-still-get-rejected-at-the-same-number-of-queued-requests-despite-having-increased-queue-size/346716 "2023-11-08T14:28:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JvSPV](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@JvSPV](https://discuss.elastic.co/u/JvSPV)
#### Post date: [November 8, 2023, 2:28pm UTC](https://discuss.elastic.co/t/search-requests-still-get-rejected-at-the-same-number-of-queued-requests-despite-having-increased-queue-size/346716/1 "2023-11-08T14:28:27Z")

</div>

We have a cluster of five nodes. For a lot of processing, our system sends search requests to Elasticsearch 7.17 in bursts, which fill up its `queue_size` and Elasticsearch will start rejecting requests.

However, our system is set up such that, although there are multiple instances running of the service that sends these requests in bursts, each of these still has to wait for a burst to finish before sending a new one. Moreover, the individual requests in these bursts do finish rather quickly. Therefore, the number of requests cannot grow unboundedly.

Hence, the solution appeared simple, simply increase the `queue_size` and let Elasticsearch process these when it is ready to do so. So we did this and verified it using `GET /_cat/thread_pool/search?v=true&h=id,node_name,name,active,queue,rejected,completed,host,largest,pool_size,queue_size,type`, but somehow requests still get rejected at the exact same moment, i.e. when there are 1000 requests in the queue. Why is this happening and what can I do about it?

---

<div class="post-metadata">

### Author: ![JvSPV](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@JvSPV](https://discuss.elastic.co/u/JvSPV)
#### Post date: [November 29, 2023, 10:43am UTC](https://discuss.elastic.co/t/search-requests-still-get-rejected-at-the-same-number-of-queued-requests-despite-having-increased-queue-size/346716/2 "2023-11-29T10:43:06Z")

</div>

I'm not quite sure why, but increasing `min_queue_size` to make it once more equal to `queue_size` solved this problem.

---

<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: [December 27, 2023, 10:43am UTC](https://discuss.elastic.co/t/search-requests-still-get-rejected-at-the-same-number-of-queued-requests-despite-having-increased-queue-size/346716/3 "2023-12-27T10:43:41Z")

</div>

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