-
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
[Monitoring] telemetry fetchers use broken pagination logic #91654
Comments
Pinging @elastic/kibana-telemetry (Team:KibanaTelemetry) |
Ping @elastic/stack-monitoring-ui |
We don't have anything like that, AFAIK. It seems like it'd come up more but I honestly can't recall the last time I encountered someone with an issue around this |
This is about collecting telemetry, so any errors will silently fail and simply not send telemetry. I don't think anyone would actually notice. I also think it's an edge case. That would mean we are dealing with massive clusters with more than 10k Beasts instances, Logstash instances or Logstash's pipelines ephemeral IDs. |
Makes sense. I meant we don't hear issues from customers that they aren't able to see their 10k+ beats in the SM UI, so I'm not sure how often this scenario comes up for anyone (where they exceed 10k instances of anything) so it seems like an isolated use case but maybe something worth noting in docs somewhere. |
I'm not sure what the issue is here. Are we trying to figure out if the UI can handle 10K+ logstash instances? |
@simianhacker The current logic to paginate over the indices does not work because the |
Pinging @elastic/kibana-core (Team:Core) |
Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI) |
@jasonrhodes in #127273 I removed the "broken" pagination logic: it basically doesn't paginate anymore. However, ideally, the requests in there should use PIT pagination to retrieve all the available data in a less expensive way. For more context of why we prefer PIT requests vs. |
Closing. If it's something we want to do we can start with:
|
As @robbavey pointed out, this is following the same approach as the get_beats_stats piece of logic.
@chrisronline, do you know if
.monitoring-*
indices have a customindex.max_result_window
setting that allows pagination for more than 10k docs? Or if it's even possible that we reach 10k docs on these types of queries?Originally posted by @afharo in #90850 (comment)
Let's revisit the pagination logics for Beats and Logstash to make sure they work for 10k+ docs. We can use either the Scroll or the Search After approaches.
The text was updated successfully, but these errors were encountered: