After doing some monitoring using
_cat/thread_pool, I've been noticing that some of my search queries spawn a huge number of entries in the
search.queue, which leads to a bunch of rejected searches.
The numbers in
search.active seems to be correct (they seem to be the number of search queries that I'm executing), but what is the number
search.queue? Why is it so big (~800) for a single query?
Is the number of elements in the queue larger for queries with more indices or that need to hit more shards?
How can I change my queries to reduce this number?
(I'm using elasticsearch 2.2.0)