# Fixed search thread\_pool, unbounded queue\_size, but "rejected" increases

**URL:** https://discuss.elastic.co/t/fixed-search-thread-pool-unbounded-queue-size-but-rejected-increases/12379
**Category:** Elasticsearch
**Created:** [June 12, 2013, 12:23pm UTC](https://discuss.elastic.co/t/fixed-search-thread-pool-unbounded-queue-size-but-rejected-increases/12379 "2013-06-12T12:23:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Peter\_Bourgon](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@Peter\_Bourgon](https://discuss.elastic.co/u/Peter_Bourgon)
#### Post date: [June 12, 2013, 12:23pm UTC](https://discuss.elastic.co/t/fixed-search-thread-pool-unbounded-queue-size-but-rejected-increases/12379/1 "2013-06-12T12:23:12Z")

</div>

I'm attempting to diagnose an increase in overall latency and error rates  
during periods of high traffic. I'm looking at my thread\_pool settings  
right now.

Here are my node settings (\_cluster/nodes?clear=true&thread\_pool=true):

> <https://gist.github.com/peterbourgon/c01be2b7f7ff7b3e8766>

Specifically, please note thread\_pool.search.type: fixed, and  
thread\_pool.search.capacity: -1. I understand this means an unbounded  
queue, which means no request may be rejected, merely delayed.

Here are my node stats (\_cluster/nodes/stats?clear=true&thread\_pool=true):

> <https://gist.github.com/peterbourgon/242c579b17ebd2a0a589>

Specifically, please look at thread\_pool.search.rejected:

> <https://gist.github.com/peterbourgon/242c579b17ebd2a0a589#file-gistfile1-txt-L78>

And the same output a few minutes later:

> <https://gist.github.com/peterbourgon/1a18d63444c52aaad1a1#file-gistfile1-txt-L78>

What is causing these search requests to get rejected? From my  
understanding, this should be impossible. Or, is this a red herring?

Cheers,  
Peter.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Casey\_Jones](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casey_jones/32/9203_2.png) [@Casey\_Jones](https://discuss.elastic.co/u/Casey_Jones)
#### Post date: [April 15, 2016, 8:06pm UTC](https://discuss.elastic.co/t/fixed-search-thread-pool-unbounded-queue-size-but-rejected-increases/12379/2 "2016-04-15T20:06:34Z")

</div>

Hi,

I'm looking at this gist and it looks like you issued this command on an older version of ES. I am on 1.7.3 and this API looks gone. Has it been replaced with another command?

I am trying to clear my search queue as it is jammed up with 6000+ queries.

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 5, 2017, 10:58pm UTC](https://discuss.elastic.co/t/fixed-search-thread-pool-unbounded-queue-size-but-rejected-increases/12379/3 "2017-07-05T22:58:51Z")

</div>


