-
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
[APM] Cancel requests (both server-side and browser-side) #81740
Comments
Pinging @elastic/apm-ui (Team:apm) |
@dgieselaar wouldn't this be handled for us if we used the kibana search service? |
Canceling the request server-side will be handled by #86594. Canceling the request browser-side, e.g. when a component unmounts or when a new request starts is a little more complicated: |
We've seen examples of a cluster becoming overwhelmed, or at least search tasks getting queued, when a search is slow and the user starts clicking around in the UI. One possible cause is that we don't cancel running searches, and ES starts queuing them up, resulting in an unresponsive UI (at least in terms of data).
ES will cancel a search when a connection closes. We can leverage this mechanism if we cancel requests browser side, and close the connection to ES when the browser request is closed.
We can look at the search strategy service for an example of how to do this.
The text was updated successfully, but these errors were encountered: