# Max number of shard a elastic node can hold

**URL:** https://discuss.elastic.co/t/max-number-of-shard-a-elastic-node-can-hold/277434
**Category:** Elasticsearch
**Created:** [June 30, 2021, 9:12am UTC](https://discuss.elastic.co/t/max-number-of-shard-a-elastic-node-can-hold/277434 "2021-06-30T09:12:39Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)
#### Post date: [June 30, 2021, 9:12am UTC](https://discuss.elastic.co/t/max-number-of-shard-a-elastic-node-can-hold/277434/1 "2021-06-30T09:12:39Z")

</div>

Hi all  
What is the max number of shard that an elastic node can hold.  
and i dont mean per index or anything i mean the max number of shard for all index that a node can hold.

---

<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: [June 30, 2021, 9:26am UTC](https://discuss.elastic.co/t/max-number-of-shard-a-elastic-node-can-hold/277434/2 "2021-06-30T09:26:28Z")

</div>

The default limit is set to 1000 but you should generally aim to be significantly below that if you can.

---

<div class="post-metadata">

### Author: ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)
#### Post date: [June 30, 2021, 9:29am UTC](https://discuss.elastic.co/t/max-number-of-shard-a-elastic-node-can-hold/277434/3 "2021-06-30T09:29:30Z")

</div>

Thanks for your replies,  
Is there a way to increase this limit.

> [@Christian\_Dahlqvist](#):
>
> you should generally aim to be significantly below that if you can.

Is there a reason for this recommendation

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [July 1, 2021, 12:26am UTC](https://discuss.elastic.co/t/max-number-of-shard-a-elastic-node-can-hold/277434/4 "2021-07-01T00:26:41Z")

</div>

Too many shards puts pressure on the JVM and can cause overload.

---

<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: [July 1, 2021, 3:48am UTC](https://discuss.elastic.co/t/max-number-of-shard-a-elastic-node-can-hold/277434/5 "2021-07-01T03:48:13Z")

</div>

Having lots of small shards is inefficient and can cause performance problems. In addition to affecting heap usage due to overhead per shard it can also cause the cluster state to be large and as a consequence be slow to update which can cause instability.

How many shards are looking to have? What would the average size be? What is the driver behind this large number of shards?

---

<div class="post-metadata">

### Author: ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)
#### Post date: [July 1, 2021, 4:17am UTC](https://discuss.elastic.co/t/max-number-of-shard-a-elastic-node-can-hold/277434/6 "2021-07-01T04:17:59Z")

</div>

> [@Christian\_Dahlqvist](#):
>
> How many shards are looking to have?

Currently in my system there is about 6 type of index that are daily indices and we have to store them for 6 month data so it is about close to 3500 shard for my system of 4 data node.

> [@Christian\_Dahlqvist](#):
>
> What would the average size be?

The size of each shard are quite small to about few dozen GB.

I could go to look into using index life cycle but our system is too far gone to setup the life cycle now. If i knew the life cycle from the start all of this would have been much easier.

---

<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: [July 29, 2021, 4:18am UTC](https://discuss.elastic.co/t/max-number-of-shard-a-elastic-node-can-hold/277434/7 "2021-07-29T04:18:48Z")

</div>

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