mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
Support CCS minimize round trips in async search (#96012)
* Support CCS minimize round trips in async search This commit makes the smallest set of changes to allow async-search based cross-cluster search to work with the CCS minimize_round_trips feature without changing the internals/architecture of the search action. When ccsMinimizeRoundtrips is set to true on SubmitAsyncSearchRequest, the AsyncSearchTask on the primary CCS coordinator sends a synchronous SearchRequest to all to clusters for a remote coordinator to orchestrate and return the entire result set to the CCS coordinator as a single response. This is the same functionality provided by synchronous CCS search using minimize_roundtrips. Since this is an async search, it means that the async search coordinator has no visibility into search progress on the remote clusters while they are running the search, thus losing one of the key features of async search. However, this is a good first approach for improving overall search latency for cross cluster searches that query a large number of shards on remote clusters, since Kibana does not currently expose incremental progress of an async search to users. Relates #73971
This commit is contained in:
parent
ff9c0aab37
commit
8b1cd47455
15 changed files with 774 additions and 177 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue