[Meta][Search] Cancel search requests #113423
Labels
Feature:Search Sessions
Feature:Search
Querying infrastructure in Kibana
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
performance
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Search service provides API for canceling search requests.
Search service, SearchSource, and expressions consumers should explicitly search in the following scenarios:
Client-side usage:
Server-side usage:
KibnaRequest
abortskibana/src/core/server/http/router/request.ts
Line 67 in 7f2dbe5
Why this is important:
Dashboard use-case (
bsearch
cancelation)Assume there are 2 visualizations on a dashboard that use search service, one can cancel requests and another can't.
Search services batch their requests into a single network request. Our batch search has a limitation that the underlying network request is canceled only when all included search requests are canceled. In this dashboard scenario, there is no performance benefit until all visualization that search through search plugin can properly cancel request
Server side search requests
Some visualization (e.g. Timelion and TSVB) use search service on the server.
Consider the following:
api/metrics/vis/data
data.search()
api/metrics/vis/data
is aborted, but server-sidedata.search()
keeps running server-sideIn the scope of this issue:
The text was updated successfully, but these errors were encountered: