Max number of shards per elasticsearch data node

Is there any limitation on the number of shards a data node can have?

There is no hard limit and it does depend on how much heap you have available. I would generally recommend having hundreds of shards per node rather than thousands.

1 Like

Thanks. As the recommended heap size is 30GB, whether the maximum number of shards per node can be determined?

42, it depends

With a 30 GB heap I would still recommend having hundreds of shards per node. Whether that is low or high hundreds will depend on your use case. In order to be able to hold as much data on the node as possible, make sure that your average shard size is in the range a few GB to a few tens of GB.

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