-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Description
Summary
In #73281, we opened an RFC for background sessions. As part of the review/comments, we identified a possibly-problematic issue with the current design. The design calls for a few server-side polling mechanisms:
- For server-side implementations of background search, where each Kibana server needs to poll to see if a saved object for the given background session has been created (in order to update it with the current search)
- For polling on async searches in Elasticsearch to get the progress information (and ultimately update the saved object representing the background session when all async searches complete) (we plan on using task manager for this)
- While the end user is present, polling for partial results for the application implementing partial results
For (1), we don't plan to poll forever, but only until some threshold has been reached (5 mins has been proposed).
Particularly (1) and (2) may be problematic when there are many users executing multiple background searches/sessions. Since ll server-side processes must share the same event loop, adding these additional polling operations may affect other features such as alerting, task manager, etc. We need to come up with a baseline to compare against, then come up with some benchmarks to identify how problematic these polling operations are.