Configure Elasticsearch Clusters for Cross-Cluster Search

1 hour
  • 2 Learning Objectives

About this Hands-on Lab

It often makes more sense to use multiple Elasticsearch clusters instead of a single behemoth cluster, particularly when you are working with different types of data. When you use multiple clusters, Elasticsearch still allows you to search all of your data at once using cross-cluster search. In this hands-on lab, you will:

* Configure cross-cluster search between 3 clusters
* Execute searches against multiple clusters in a single request

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Configure cross-cluster search on the “accounts_1” cluster.

Use the Kibana console tool to execute the following:

PUT _cluster/settings
{
  "persistent": {
    "cluster": {
      "remote": {
        "accounts_2": {
          "seeds": [
            "10.0.1.103:9300"
          ]
        },
        "accounts_3": {
          "seeds": [
            "10.0.1.105:9300"
          ]
        }
      }
    }
  }
}
Search all 3,000 documents across the 3 clusters without returning any documents.

Use the Kibana console tool to execute the following:

GET bank,accounts_2:bank,accounts_3:bank/_search?size=0

Additional Resources

You work for an online banking company that is considering using Elasticsearch as a NoSQL database to store account data. To make the decision, your company first wants to conduct a proof of concept to evaluate Elasticsearch and determine if it meets your company's strict requirements. One such requirement is the ability to search across multiple Elasticsearch clusters in the event that data is spread out across separate clusters.

You have been given three 2-node Elasticsearch clusters: accounts_1, accounts_2, and accounts_3. You have been asked to configure cross-cluster search on the accounts_1 cluster to enable it to search across the other two clusters.

Once the cross-cluster search is configured, you will need to demonstrate its functionality by searching against all 3,000 documents spread across the 3 clusters in a single search request.

To use Kibana, navigate to the public IP address of the coordinator-1, coordinator-2, or coordinator-3 node in your web browser and login with:

  • Username: elastic
  • Password: la_elastic_409

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!

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