The problem is that during peak load most of the search requests are
getting rejected. So I was thinking if I should switch to "caller" reject
policy. But I have some questions for "caller" policy:
Which thread would be the "caller" who would execute the searches when
the queue is full. Is it the Netty connector?
If its the Netty connector what would happen to other clients who are
making requests when the Netty "caller" thread is executing the search? In
my local tests they are not failing/rejected. Where would such requests get
queued (client/network)?
Would this guarantee every search request is eventually served (not
rejected)?
What is the downside to using "caller", can this lead to network
congestion or have any other issue with the ES node/cluster in case the
there are too many concurrent searches for prolonged duration?
The problem is that during peak load most of the search requests are
getting rejected. So I was thinking if I should switch to "caller" reject
policy. But I have some questions for "caller" policy:
Which thread would be the "caller" who would execute the searches when
the queue is full. Is it the Netty connector?
If its the Netty connector what would happen to other clients who are
making requests when the Netty "caller" thread is executing the search? In
my local tests they are not failing/rejected. Where would such requests get
queued (client/network)?
Would this guarantee every search request is eventually served (not
rejected)?
What is the downside to using "caller", can this lead to network
congestion or have any other issue with the ES node/cluster in case the
there are too many concurrent searches for prolonged duration?
you can use the nodes statistics to find out which thread pool contains all
those rejected tasks, before trying to tune. If it is the search thread
pool, you can try to increase the size or the queue, alternatively add
another node to scale out your search load or try to improve your queries.
Wondering where you found the reject_policy setting (I think it has been
removed with 0.90.0).
Still before tuning, find out which threadpool has capacity issues.
The default setting of elasticsearch is to drop single requests in order to
retain performance for the remaining ones and keep the system stable
instead of overwhelming it with more and more requests.
The problem is that during peak load most of the search requests are
getting rejected. So I was thinking if I should switch to "caller" reject
policy. But I have some questions for "caller" policy:
Which thread would be the "caller" who would execute the searches when
the queue is full. Is it the Netty connector?
If its the Netty connector what would happen to other clients who are
making requests when the Netty "caller" thread is executing the search? In
my local tests they are not failing/rejected. Where would such requests get
queued (client/network)?
Would this guarantee every search request is eventually served (not
rejected)?
What is the downside to using "caller", can this lead to network
congestion or have any other issue with the ES node/cluster in case the
there are too many concurrent searches for prolonged duration?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.