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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!
Thanks for reaching out!

You’ll hear from us shortly. In the meantime, why not check out what our customers have to say about ACG?