Reader small image

You're reading from  Learning Elasticsearch

Product typeBook
Published inJun 2017
PublisherPackt
ISBN-139781787128453
Edition1st Edition
Right arrow
Author (1)
Abhishek Andhavarapu
Abhishek Andhavarapu
author image
Abhishek Andhavarapu

Abhishek Andhavarapu is a software engineer at eBay who enjoys working on highly scalable distributed systems. He has a master's degree in Distributed Computing and has worked on multiple enterprise Elasticsearch applications, which are currently serving hundreds of millions of requests per day. He began his journey with Elasticsearch in 2012 to build an analytics engine to power dashboards and quickly realized that Elasticsearch is like nothing out there for search and analytics. He has been a strong advocate since then and wrote this book to share the practical knowledge he gained along the way.
Read more about Abhishek Andhavarapu

Right arrow

Primary and Replica shards

As you know the data in an index is split across one or more shards. By splitting your data across multiple shards, Elasticsearch can scale beyond what a single machine can do. Elasticsearch is a distributed system, and system failures are bound to happen. Since each shard is an independent Lucene index that can live on any node in the cluster, Elasticsearch provides a way to maintain a copy of the primary shard in a different node of the cluster. In case the node containing the primary shard fails, the replica shard (copy), which exists in a different node, is promoted to primary. For more information, please refer to the Failure Handling section in Chapter 1, Introduction to Elasticsearch.

In this section, we will talk about how the data between primary and replica is synchronized:

Let's say we have a cluster of two nodes as shown in the preceding...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learning Elasticsearch
Published in: Jun 2017Publisher: PacktISBN-13: 9781787128453

Author (1)

author image
Abhishek Andhavarapu

Abhishek Andhavarapu is a software engineer at eBay who enjoys working on highly scalable distributed systems. He has a master's degree in Distributed Computing and has worked on multiple enterprise Elasticsearch applications, which are currently serving hundreds of millions of requests per day. He began his journey with Elasticsearch in 2012 to build an analytics engine to power dashboards and quickly realized that Elasticsearch is like nothing out there for search and analytics. He has been a strong advocate since then and wrote this book to share the practical knowledge he gained along the way.
Read more about Abhishek Andhavarapu