Skip to main content

Diagnose and Repair Elasticsearch Indices

Hands-On Lab

 

Photo of Myles Young

Myles Young

BigData Training Architect II in Content

Length

01:30:00

Difficulty

Intermediate

When configured correctly, Elasticsearch clusters are highly available and fault tolerant. That doesn't necessarily mean they are impervious to failure. Human error and hardware failure are always a possibility. Troubleshooting data availability issues on a distributed system can be a challenge. In this hands-on lab, we will use the cluster allocation explain API to demystify the troubleshooting process of shard allocation issues in Elasticsearch.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

Diagnose and Repair Elasticsearch Indices

Introduction

When configured correctly, Elasticsearch clusters are highly available and fault tolerant. That doesn't necessarily mean they are impervious to failure. Human error and hardware failure are always a possibility. Troubleshooting data availability issues on a distributed system can be a challenge. In this hands-on lab, we will use the cluster allocation explain API to demystify the troubleshooting process of shard allocation issues in Elasticsearch.

Solution

To get to the Kibana console:

Navigate to http://<PUBLIC_IP_ADDRESS_OF_MASTER-1>:80/80

Username: elastic

Password: elastic_566

Troubleshoot any red-state indices.

PUT logs-02/_settings
{
  "number_of_replicas": 1
}

Troubleshoot any yellow-state indices.

PUT logs-01/_settings
{
  "number_of_replicas": 1
}

Conclusion

Congratulations — you've completed this hands-on lab!