-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate search.max_buckets
?
#51731
Comments
Pinging @elastic/es-analytics-geo (:Analytics/Aggregations) |
I agree that #46751 should change the perception of the |
Been thinking about this a bit. I agree that the setting is still helpful from a "soft limit" standpoint, in that it helps prevent abusive aggs even if they would technically execute without breaking anything. It helps prevent users from adding It also offers a convenient place to actually limit agg response size, so that clients aren't expected to handle unreasonably large responses. Now that the memory-safety implications are
I'm not sure what to do about these problem cases, or if we should do anything. I guess I see a few options:
Or some combination of the above :) |
Ruminated on this a bit more, leaning towards the dual approach of:
|
This sounds like a plan to me. |
It seems that we have a plan here, is it okay to remove the discuss label or do we think that broader input would be helpful? |
I think it is, I just removed it. |
If we do set a new limit for |
+1 on @nickpeihl's suggestion. If |
👍 seems reasonable to me. Related note, I'll bring this up in our team meeting because we probably want to talk through if we can increase the limit in a 7.x minor, or if that would count as a "break". E.g. if a client is using that to limit responses sizes, it could potentially break clients by now receiving a very large response, which they weren't expecting. If we decide it's a breaking change, a potential plan could be:
|
wrt (3) Being able to override the limit on a per-request setting would be useful for Maps in the 7.x time-frame. There are two ongoing efforts on the Maps-side in 7.x that really could use this:
|
Increases the default search.max_buckets limit to 65,535, and only counts buckets during reduce phase. Closes elastic#51731
Increases the default search.max_buckets limit to 65,535, and only counts buckets during reduce phase. Closes #51731
Increases the default search.max_buckets limit to 65,535, and only counts buckets during reduce phase. Closes elastic#51731
Increases the default search.max_buckets limit to 65,535, and only counts buckets during reduce phase. Closes #51731
How does someone (using e.g: v. 6.6.2) prevent unreasonably large aggregations from hobbling the cluster without returning misleading results to clients (due to the limits on buckets)? |
PR #46751 introduces circuit breaking for the reduce phase and raises the question of whether we can get rid of
search.max_buckets
, which served a similar purpose by enforcing a limit on the number of buckets rather than their memory usage.The text was updated successfully, but these errors were encountered: