# This action would add \[2\] total shards, but this cluster currently has \[2000\]/\[2000\] maximum shards open;

**URL:** <https://discuss.elastic.co/t/this-action-would-add-2-total-shards-but-this-cluster-currently-has-2000-2000-maximum-shards-open/248255>\
**Category:** Elasticsearch\
**Created:** [September 11, 2020, 3:33am UTC](https://discuss.elastic.co/t/this-action-would-add-2-total-shards-but-this-cluster-currently-has-2000-2000-maximum-shards-open/248255 "2020-09-11T03:33:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maricar\_Laygo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maricar_laygo/32/75407_2.png) [@Maricar\_Laygo](https://discuss.elastic.co/u/Maricar_Laygo)\
**Post date:** [September 11, 2020, 3:33am UTC](https://discuss.elastic.co/t/this-action-would-add-2-total-shards-but-this-cluster-currently-has-2000-2000-maximum-shards-open/248255/1 "2020-09-11T03:33:50Z")

</div>

Invalid Bulk items: operation[0]: index returned 400 \_index: transactions-es-nfnxl530-20200911 \_type: \_doc \_id: 909090892 \_version: 0 error: Type: validation\_exception Reason: Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [2000]/[2000] maximum shards open;

Any help is appreciated

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 11, 2020, 5:12am UTC](https://discuss.elastic.co/t/this-action-would-add-2-total-shards-but-this-cluster-currently-has-2000-2000-maximum-shards-open/248255/2 "2020-09-11T05:12:05Z")

</div>

You have too many shards in your cluster and should rethink how you index data in order to reduce this. You can increase the limit, but having lots of small shards is very inefficient and will eventually cause problems which is why this limit was introduced.

I would recommend reading [this blog post](https://www.elastic.co/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster) for more details. [This post](https://discuss.elastic.co/t/how-do-i-increase-or-reduce-the-shard-count-of-an-existing-index/242704) may also be helpful.

---

<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:** [October 9, 2020, 5:12am UTC](https://discuss.elastic.co/t/this-action-would-add-2-total-shards-but-this-cluster-currently-has-2000-2000-maximum-shards-open/248255/3 "2020-10-09T05:12:23Z")

</div>

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