Elasticsearch shards relocation is an incident type that occurs when Elasticsearch is moving its data shards from one node to another, which could cause temporary unavailability of data or increase in query latency. This may happen due to various reasons like node failure, hardware maintenance, or rebalancing of data.
Parameters
Debug
Check if the Elasticsearch pod is running
Check the logs of the Elasticsearch pod to see if there are any error messages related to shards relocation
Check if the Elasticsearch cluster is healthy
Check the status of all Elasticsearch indices
Check the status of all Elasticsearch shards
Check the status of the Elasticsearch nodes
A node failure or shutdown can trigger Elasticsearch to relocate shards from the affected node to other nodes in the cluster.
Rebalancing of data across the cluster due to node addition or removal can trigger Elasticsearch to relocate shards from one node to another.
Check the Elasticsearch logs to identify the reason for shard relocation and the status of the relocation process.
Repair
Rebalance the shards manually or use Elasticsearch's auto-rebalancing feature to redistribute the shards evenly across the cluster nodes.
Learn more
Related Runbooks
Check out these related runbooks to help you debug and resolve similar issues.