# Action.search.shard\_count.limit appears to be cluster scoped rather than node scoped

**URL:** <https://discuss.elastic.co/t/action-search-shard-count-limit-appears-to-be-cluster-scoped-rather-than-node-scoped/104141>\
**Category:** Elasticsearch\
**Created:** [October 16, 2017, 9:04pm UTC](https://discuss.elastic.co/t/action-search-shard-count-limit-appears-to-be-cluster-scoped-rather-than-node-scoped/104141 "2017-10-16T21:04:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emilie\_Lavigne](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@Emilie\_Lavigne](https://discuss.elastic.co/u/Emilie_Lavigne)\
**Post date:** [October 16, 2017, 9:04pm UTC](https://discuss.elastic.co/t/action-search-shard-count-limit-appears-to-be-cluster-scoped-rather-than-node-scoped/104141/1 "2017-10-16T21:04:24Z")

</div>

I'm confused about the property `action.search.shard_count.limit`. I assumed it was a node property, but we have started encountering it when querying time series data spread across multiple nodes. The total goes over the default of 1000, but none of the nodes hold 1000 shards on their own.

This line seems to suggest that it was intended to be a limit per node (Property.NodeScope).

> <https://github.com/elastic/elasticsearch/blob/5.6/core/src/main/java/org/elasticsearch/action/search/TransportSearchAction.java#L70-L71>

But the following compares the property value to the total number of shards on local and remote:

> <https://github.com/elastic/elasticsearch/blob/5.6/core/src/main/java/org/elasticsearch/action/search/TransportSearchAction.java#L277-L280>

I'm thinking of configuring that property by multiplying it by the number of nodes in the cluster. Does that make sense or is there another recommended approach?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 13, 2017, 9:04pm UTC](https://discuss.elastic.co/t/action-search-shard-count-limit-appears-to-be-cluster-scoped-rather-than-node-scoped/104141/2 "2017-11-13T21:04:32Z")

</div>

Closed on November 13, 2017, 9:04pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
