-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Aggs] Apply hard_bounds to prevent ES circuit breaker when dealing with open-ended ranges #93622
Comments
Pinging @elastic/kibana-app-services (Team:AppServices) |
Thank you for contributing to this issue, however, we are closing this issue due to inactivity as part of a backlog grooming effort. If you believe this feature/bug should still be considered, please reopen with a comment. |
I'm re-opening this because there is currently a bug with the Lens visualization when visualizing open ended Here is an example you can run in the Dev Console:
Both |
Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations) |
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
Hi @ppisljar, can you explain why this issue was moved from Visualizations to Data Discovery? It's not clear to me. |
I think AggConfigs (which this issue will affect) are owned by data-discovery ? |
We own aggs (as we are the only consimers) and data discovery owns search, I will transfer again the ownership. It is a bit vague which teams owns what, I totally get the confusion. :) |
For date histogram aggregations, we need to set the
hard_bounds
parameter when dealing with anydate_range
data type. Unlikeextended_bounds
,hard_bounds
is exclusive, which means that to get the same results we will need to sethard_bounds
to be larger than the possible time range by up to one bucket length on either side.For example, if the date range is "now-7d" to "now", with an interval of 3 hours, then we need to set
hard_bounds
tonow-7d-3h
tonow+3h
to be accurate.For
histogram
aggregations, we can't sethard_bounds
automatically. This means that open-ended ranges inhistogram
aggregations can easily cause circuit breakers, so we should require users to provide ahard_bounds
setting in this case.This issue was originally found here: #76971
cc @ppisljar
The text was updated successfully, but these errors were encountered: