Update search.max_buckets in elasticsearch

nole picture nole · Jun 11, 2019 · Viewed 9k times · Source

I have a doubt about update search.max_buckets, because I have some warning due that an aggregation creates too many buckets, so my doubt is if I update this value over 10000, I will improve the performance. Now I have some times that I would like to improve.

Thanks in advance.

Answer

SHUHAIB AREEKKAN picture SHUHAIB AREEKKAN · Oct 3, 2019

Do note that search.max_buckets is a safety soft-limit designed to prevent bad aggregations from hurting nodes. So be careful about making the limit too high. If you're tripping the limit often it might mean your aggregations need to be reconsidered or made smaller.