Reference · Cheat sheet
The compressed essence. Print it, pin it.
A small set of large shards uses fewer resources than many small shards.
| Guideline | Value |
|---|---|
| Shard size | 10–50 GB (50 GB rollover, 10 GB floor) |
| Docs per shard | < 200M |
| Shards per data node | ≤ ~1,000 (non-frozen) |
| Master heap | ~1 GB / 3,000 indices |
Retired: the “20 shards per GB of heap” rule — deprecated in ES 8.3.
primaries ≈ ceil(total_GB / 40) → 300 GB ≈ 8 primaries. Then check per-node cap & docs headroom. Benchmark before committing.
_reindex to consolidate · _shrink to cut primaries · ILM rollover at size, not per-day.GET /_cluster/health // shard counts
GET /_cat/nodes?v&h=name,heap.percent,node.role
GET /_cat/shards?v&s=index // size + node per shard
← lesson 0008 · Source: Size your shards