How to send a large number of bool query conditions at a time and ES's java stack memory overflow?
Today to talk to you about a large number of bool query conditions and ES java stack memory overflow how to do, many people may not understand, in order to make you better understand, Xiaobian summarized the following content, I hope you can get something according to this article.
Record: sending a large number of query conditions (100000 bool query conditions) at a time, querying the ES of a single node will initially lead to ES query timeout; later, it will lead to no available nodes; persistence will lead to memory overflow of ES's java stack.
Solution:
1. Control the number of bool query conditions generated each time from the source
two。 Only a limited number of bool query conditions (10240, default 1024) are allowed, and requests exceeding the limit are discarded (limited in the elasticsearch.yml configuration file).
Indices.query.bool.max_clause_count: 10240 after reading the above, do you have any further understanding of how to send a large number of bool query conditions at a time and what to do about ES's java stack memory overflow? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.