Undersized shards

One or more shards are far below the recommended size range (roughly 10–50 GB). Too many tiny shards increase master metadata load and make searches fan out across more shard copies than the data volume needs.

Note

For a complete list of insights, refer to AutoOps insights.

Field Value
Component Elasticsearch
Severity Medium
Scope Index
Domains performance, index-management, shard-allocation

You can customize these settings to adjust when AutoOps detects this event and presents the insight. Refer to AutoOps event settings for details.

The default customization settings are:

Setting Type Default
Minimum optimal shard size in GB Integer 1
Exclude indices based on this pattern List of strings
Minimum indices size to match Integer 1

The following is an example of what you might see when this insight is triggered. Real insights use live data and links from your deployment or cluster.

Total number of indices with small shards: 12

The index that contains the smallest shard is: metrics-apm-000012, and the shard size is: 200 MB.

See a sample list: logs-prod-000045, logs-prod-000046.

Note

AutoOps shows different recommendations depending on how their conditions match your deployment or cluster.

Index data is partitioned into shards when the index is created. Shard size grows with the data you write into that index.

Shards that stay well below about 10 GB force the cluster to track more shard metadata than the data volume warrants. Searches fan out across more shards, and master-node cluster-state work grows with shard count. Defaults also cap shards per data node (1,000) and per index (1,024).

Keeping shards in a moderate size range helps the cluster recover faster and keeps search more predictable as index count grows.

Size your shards