Diagnose and Repair Elasticsearch Indices

1.5 hours
  • 2 Learning Objectives

About this Hands-on Lab

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.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Troubleshoot any red-state indices.

Using the Secure Shell (SSH), log in to the data-1node ascloud_user` via the public IP address.

Start the elasticsearch node with:

sudo systemctl start elasticsearch

Use the Kibana console tool to execute the following:

PUT logs-02/_settings
{
  "number_of_replicas": 1
}
Troubleshoot any yellow-state indices.

Use the Kibana console tool to execute the following:

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

Additional Resources

You are the new administrator for a 3-node Elasticsearch cluster. Upon taking ownership of the cluster, you find that several indexes which are not in a green state. You are being asked by your superiors to prioritize the troubleshooting of the index allocation issues above all other work. All indices will need to be allocated with a green state and any indices that were previously red should be configured to fail to a yellow state should the same failures happen again.

Your master-1 node has a Kibana instance which can be accessed in your local web browser by navigating to the public IP address of the master-1 node over port 8080 (example: http://public_ip:8080). To log in, use the elastic user with the password elastic_566.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?