Max number of shards per elasticsearch data node


(MJay) #1

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


(Christian Dahlqvist) #2

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.


(MJay) #3

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


#4

42, it depends


(Christian Dahlqvist) #5

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.


(system) #6

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