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": [
        "accounts_3": {
          "seeds": [
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.

Sign In
Welcome Back!

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

Get Started
Who’s going to be learning?