# Why my query got rejected

**URL:** https://discuss.elastic.co/t/why-my-query-got-rejected/83489
**Category:** Elasticsearch
**Created:** [April 25, 2017, 4:49am UTC](https://discuss.elastic.co/t/why-my-query-got-rejected/83489 "2017-04-25T04:49:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![weibin.wu](https://avatars.discourse-cdn.com/v4/letter/w/4491bb/32.png) [@weibin.wu](https://discuss.elastic.co/u/weibin.wu)
#### Post date: [April 25, 2017, 4:49am UTC](https://discuss.elastic.co/t/why-my-query-got-rejected/83489/1 "2017-04-25T04:49:17Z")

</div>

Hi Elasticsearch

I am using Datadog to monitor my ES cluster. Sometimes I see there is some rejected query. I also checked the threadpool.queue size and it never reach the default threshold 1000.  
"rejected The number of tasks rejected by the thread pool executor"

Can I know when the query will be rejected by ES? What other metric I can check in ES regarding this issue?

---

<div class="post-metadata">

### Author: ![weibin.wu](https://avatars.discourse-cdn.com/v4/letter/w/4491bb/32.png) [@weibin.wu](https://discuss.elastic.co/u/weibin.wu)
#### Post date: [April 27, 2017, 3:43am UTC](https://discuss.elastic.co/t/why-my-query-got-rejected/83489/2 "2017-04-27T03:43:34Z")

</div>

The next three columns show the active queue and rejected statistics for the bulk search pool.

search.active search.queue search.rejected  
0 0 0

When the search.rejected will be non-zero?

---

<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 25, 2017, 3:47am UTC](https://discuss.elastic.co/t/why-my-query-got-rejected/83489/3 "2017-05-25T03:47:38Z")

</div>

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