Skip to content

Commit 32026b9

Browse files
committed
Update max_concurrent_shard_request parameter docs
Some of the docs were outdated as they did not mention that the limit is not per node. Also, The default value changed. Relates to elastic#31206
1 parent e700c4c commit 32026b9

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

docs/reference/search.asciidoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,11 @@ configure a soft limit, you can update the `action.search.shard_count.limit`
154154
cluster setting in order to reject search requests that hit too many shards.
155155

156156
The request parameter `max_concurrent_shard_requests` can be used to control the
157-
maximum number of concurrent shard requests the search API will execute for the
158-
request. This parameter should be used to protect a single request from
157+
maximum number of concurrent shard requests the search API will execute per node
158+
for the request. This parameter should be used to protect a single request from
159159
overloading a cluster (e.g., a default request will hit all indices in a cluster
160160
which could cause shard request rejections if the number of shards per node is
161-
high). This default is based on the number of data nodes in the cluster but at
162-
most `256`.
161+
high). This default value is `5`.
163162

164163
--
165164

docs/reference/search/multi-search.asciidoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,10 @@ the maximum number of concurrent searches the multi search api will execute.
8686
This default is based on the number of data nodes and the default search thread pool size.
8787

8888
The request parameter `max_concurrent_shard_requests` can be used to control the
89-
maximum number of concurrent shard requests the each sub search request will execute.
89+
maximum number of concurrent shard requests the each sub search request will execute per node.
9090
This parameter should be used to protect a single request from overloading a cluster
9191
(e.g., a default request will hit all indices in a cluster which could cause shard request rejections
92-
if the number of shards per node is high). This default is based on the number of
93-
data nodes in the cluster but at most `256`.In certain scenarios parallelism isn't achieved through
92+
if the number of shards per node is high). This default value is `5`.In certain scenarios searcparallelism isn't achieved through
9493
concurrent request such that this protection will result in poor performance. For
9594
instance in an environment where only a very low number of concurrent search requests are expected
9695
it might help to increase this value to a higher number.

rest-api-spec/src/main/resources/rest-api-spec/api/msearch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
},
3333
"max_concurrent_shard_requests" : {
3434
"type" : "number",
35-
"description" : "The number of concurrent shard requests each sub search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests",
36-
"default" : "The default grows with the number of nodes in the cluster but is at most 256."
35+
"description" : "The number of concurrent shard requests each sub search executes concurrently per node. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests",
36+
"default" : 5
3737
},
3838
"rest_total_hits_as_int" : {
3939
"type" : "boolean",

rest-api-spec/src/main/resources/rest-api-spec/api/search.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
"max_concurrent_shard_requests" : {
182182
"type" : "number",
183183
"description" : "The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests",
184-
"default" : "The default is 5."
184+
"default" : 5
185185
},
186186
"pre_filter_shard_size" : {
187187
"type" : "number",

0 commit comments

Comments
 (0)