EsRejectedExecutionException in elasticsearch for parallel search

后端 未结 4 1959
小鲜肉
小鲜肉 2020-12-12 19:09

I am querying elasticsearch for multiple parallel requests using single transport client instance in my application.

I got the below exception for the parallel execu

4条回答
  •  一整个雨季
    2020-12-12 19:35

    I don't know what was your node configuration but your queue size (1000) is already on a higher side. As others have explained already, your search requests are queued in the Elasticsearch thread pool queue. Even after such a high queue size, if you are getting rejections, that gives some hint that you need to revisit your query pattern.

    Like many other designs, even in this case, there is no one-size-fits-all solution. I found this is a very good post about how this queue works and different ways to do a performance test to find out what suits best for your use case.

    HTH!

提交回复
热议问题