diff --git a/server/src/main/java/org/elasticsearch/action/search/TransportSearchAction.java b/server/src/main/java/org/elasticsearch/action/search/TransportSearchAction.java index 46207b94c3af4..ac9248ef98d41 100644 --- a/server/src/main/java/org/elasticsearch/action/search/TransportSearchAction.java +++ b/server/src/main/java/org/elasticsearch/action/search/TransportSearchAction.java @@ -346,7 +346,8 @@ private void executeSearch(SearchTask task, SearchTimeProvider timeProvider, Sea * it sane. A single search request that fans out to lots of shards should not hit a cluster too hard while 256 is already a * lot. */ - searchRequest.setMaxConcurrentShardRequests(Math.min(256, nodeCount)); + // we use nodeCount * 5 as we used to default this to the default number of shard which used to be 5. + searchRequest.setMaxConcurrentShardRequests(Math.min(256, nodeCount * 5)); } boolean preFilterSearchShards = shouldPreFilterSearchShards(searchRequest, shardIterators); searchAsyncAction(task, searchRequest, shardIterators, timeProvider, connectionLookup, clusterState.version(),