Implementing Cross-Cluster Replication in Elasticsearch 7.13

1.5 hours
  • 3 Learning Objectives

About this Hands-on Lab

Data replication is the answer to a lot of potential problems in data engineering. In this hands-on lab, you will get to configure Elasticsearch clusters for cross-cluster replication.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

On the Follower Cluster, Configure the accounts_leader Remote Cluster

From the Kibana console on es2, configure the es1 cluster as the remote cluster accounts_leader.

On the Follower Cluster, Create the accounts-1 Follower

From the Kibana console on es2, create the accounts-1 follower index to follow the accounts-1 index on the accounts_leader remote cluster.

On the Follower Cluster, Configure the accounts Auto-Follow Pattern

From the Kibana console on es2, create the accounts auto-follow pattern to follow any accounts-* index on the accounts_leader remote cluster.

Additional Resources

Logging In to the Elastic Environment

  1. Open 2 new browser tabs and navigate to the public IP address of the es1 and es2 nodes provided on the lab page (e.g., http://public_ip).
  2. Log in using the username elastic and password elastic_acg.

Lab Scenario

You work as a site reliability engineer for an e-commerce company that uses Elasticsearch to store account information for customers' rewards points. You've been tasked with replicating the current accounts-1 index and all future accounts-* indices to a remote cluster. The leader cluster is es1, which is where the accounts data currently resides. The follower cluster is es2, which is where the indices need to be replicated to. The es2 cluster will need to be configured with a remote cluster called accounts_leader that references the es1 cluster. Then, the accounts-1 cluster should be replicated without changing the original index name from the accounts_leader remote cluster to the es2 cluster. Finally, the es2 cluster needs to be configured to auto-follow any accounts-* indices on the accounts_leader remote cluster.

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?