Runbook

Elasticsearch unassigned shards incident on Kubernetes

Back to Runbooks

Overview

This incident type refers to a situation where Elasticsearch has unassigned shards. Shards are the basic building blocks of Elasticsearch indexes, and they contain the actual data that is stored in Elasticsearch. When a shard is unassigned, it means that Elasticsearch cannot find a node in the cluster that can hold the shard replicas. This can cause data loss and reduce the performance of the Elasticsearch cluster. Therefore, it is important to address this incident as soon as possible to prevent any potential data loss and maintain the optimal performance of the Elasticsearch cluster.

Parameters

Debug

Check if Elasticsearch pods are running

Check if Elasticsearch service is running

Check if Elasticsearch deployment is running

Check if Elasticsearch nodes are healthy

Check if Elasticsearch shards are assigned

Check if Kubernetes nodes have enough resources

Check if there are any pod evictions or disruptions

The Elasticsearch cluster may have insufficient resources such as CPU, memory, or storage space, leading to unassigned shards.

Repair

Scale the Elasticsearch deployment to add more pods

Learn more

Related Runbooks

Check out these related runbooks to help you debug and resolve similar issues.