Recommanded shards size includes replicas or not?


Documentation says : Aim for shard sizes between 10GB and 50GB but does not specifiy if it concerns only primary or primary AND replicas

I mean, I have an index of 200GB and wants 1 replica. So total index size will be 400GB.

Formula will be 400GB/50 or 200GB/50 ?

In the first case, I would set 4 primary shards and 1 replica (8 shards per inex), and in the second case I would set 2 primaries and 1 replica (4 shards per index)

Thanks !

It is the size of each individual shard so you would base this on primary shard size.

1 Like

Perfect. Thanks @Christian_Dahlqvist