mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
Node level can match action (#78765)
Changes can-match from a shard-level to a node-level action, which helps avoid an explosion of shard-level can-match subrequests in clusters with many shards, that can cause stability issues. Also introduces a new search_coordination thread pool to handle the sending and handling of node-level can-match requests.
This commit is contained in:
parent
b1c3f5579e
commit
13487b1ed6
20 changed files with 1180 additions and 445 deletions
|
@ -724,7 +724,11 @@ public class CCSDuelIT extends ESRestTestCase {
|
|||
private static SearchRequest initSearchRequest() {
|
||||
List<String> indices = Arrays.asList(INDEX_NAME, "my_remote_cluster:" + INDEX_NAME);
|
||||
Collections.shuffle(indices, random());
|
||||
return new SearchRequest(indices.toArray(new String[0]));
|
||||
final SearchRequest request = new SearchRequest(indices.toArray(new String[0]));
|
||||
if (randomBoolean()) {
|
||||
request.setPreFilterShardSize(between(1, 20));
|
||||
}
|
||||
return request;
|
||||
}
|
||||
|
||||
private static void duelSearch(SearchRequest searchRequest, Consumer<SearchResponse> responseChecker) throws Exception {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue