100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace
Elasticsearch

Elasticsearch Cluster Architecture

How Elasticsearch nodes join together into a cluster, elect a master, and coordinate to store and serve data reliably.

Cluster & ScalingIntermediate9 min readJul 10, 2026
Analogies

What Is an Elasticsearch Cluster?

An Elasticsearch cluster is a collection of one or more nodes (server processes) that share the same cluster.name, hold your data collectively, and provide unified search and indexing capability across all the data. Each node runs a copy of the Elasticsearch software, joins the cluster by discovering other nodes, and takes on one or more roles that determine what work it does. Even a single-node deployment is technically a cluster of size one, but production systems typically run three or more nodes so that data and workload can be distributed and the loss of one machine does not take the whole system down.

🏏

Cricket analogy: Just as an IPL franchise fields eleven players who each specialize (opener, spinner, keeper) but all wear the same team jersey and share one scoreboard, Elasticsearch nodes share one cluster.name and one cluster state while each specializing in a role.

Node Roles

Elasticsearch nodes are configured with roles in elasticsearch.yml or via node.roles: master-eligible nodes (master) participate in cluster-level decisions like creating indices and tracking which nodes are alive; data nodes (data, or the finer-grained data_hot, data_warm, data_cold, data_frozen) actually store shards and execute CRUD and search operations against them; ingest nodes run ingest pipelines to pre-process documents before indexing; and coordinating-only nodes (no special role) route requests, merge results from data nodes, and can act as a lightweight smart load balancer. A single node can hold multiple roles simultaneously, which is common in small clusters, while large production clusters deliberately separate roles onto dedicated hardware profiles.

🏏

Cricket analogy: Splitting master-eligible, data, and ingest roles across nodes is like a franchise separating its captain (decision-making), its all-rounders (heavy lifting), and its analyst who preps pitch reports before the match, rather than asking one player to do everything.

Master Node Election

Master-eligible nodes participate in a quorum-based election (built on a Raft-like consensus protocol since Elasticsearch 7.x) to choose exactly one active master, which is responsible for maintaining cluster state, creating or deleting indices, and tracking shard allocation. The cluster requires a majority of master-eligible nodes to be reachable to elect and retain a master; this is why production clusters use an odd number of master-eligible nodes (commonly 3) and rely on the cluster.initial_master_nodes setting during bootstrap. If fewer than a quorum of master-eligible nodes can communicate, the cluster refuses to elect a master rather than risk two masters disagreeing about state, a scenario known as split-brain that older versions were more vulnerable to.

🏏

Cricket analogy: Choosing a captain by a majority vote among senior players, and refusing to proceed with a match if quorum isn't present, mirrors master election requiring a majority of master-eligible nodes to agree.

yaml
# elasticsearch.yml on a dedicated master-eligible node
cluster.name: prod-search-cluster
node.name: es-master-01
node.roles: [ master ]
cluster.initial_master_nodes:
  - es-master-01
  - es-master-02
  - es-master-03
discovery.seed_hosts:
  - es-master-01.internal:9300
  - es-master-02.internal:9300
  - es-master-03.internal:9300

# elasticsearch.yml on a dedicated data node
cluster.name: prod-search-cluster
node.name: es-data-hot-01
node.roles: [ data_hot, data_content ]
discovery.seed_hosts:
  - es-master-01.internal:9300
  - es-master-02.internal:9300
  - es-master-03.internal:9300

Cluster State and Discovery

The cluster state is a data structure, held in memory and replicated to every node, that describes the cluster's metadata: which indices exist, their mappings and settings, which nodes are in the cluster, and where every shard is currently allocated. Only the elected master publishes updates to cluster state, and every node applies those updates locally so all nodes have a consistent view. Nodes find each other through discovery, seeded by discovery.seed_hosts (a static list) or a hosts provider like EC2 or Azure discovery plugins; once nodes can talk to each other, the cluster's overall health is reported as green (all primary and replica shards allocated), yellow (all primaries allocated but some replicas are not), or red (some primary shards are unallocated, meaning data is unavailable).

🏏

Cricket analogy: The scoreboard operator broadcasting the official score to every stand in the stadium so fans, commentators, and players all see the same numbers is like cluster state being published consistently to every node.

Cluster health color is a quick triage signal, not a full diagnosis: green means fully healthy, yellow means primaries are safe but you've lost redundancy (often fine to leave briefly, e.g., during a single node restart), and red means some primary shards are unassigned and those indices will return incomplete or failing search results until resolved.

Scaling and High Availability

Elasticsearch scales horizontally: to handle more data or query load, you add data nodes, and the cluster rebalances shards across them automatically. For resilience, production topologies typically dedicate three master-eligible nodes (small, stable, not serving heavy search traffic) separately from data nodes (which can be scaled up and down more freely), and often adopt a hot-warm-cold-frozen architecture where recently written, frequently queried data lives on fast hot nodes (NVMe SSD, more CPU) while older data ages onto cheaper warm and cold nodes with less powerful hardware, controlled by Index Lifecycle Management policies. This separation of concerns means a spike in search traffic or a noisy re-indexing job doesn't jeopardize the cluster's ability to make basic coordination decisions.

🏏

Cricket analogy: A T20 franchise keeps its core selection committee small and stable across seasons while rotating squad players in and out based on form, just as dedicated master nodes stay fixed while data nodes scale elastically.

In small or cost-constrained clusters it's tempting to let every node be master-eligible and hold data, but this couples cluster-decision latency to data-node load: a data node under heavy indexing pressure can delay heartbeat responses, risking spurious master re-elections. For anything beyond a dev/test environment, dedicate at least three master-eligible-only nodes.

  • A cluster is a set of nodes sharing one cluster.name and one replicated cluster state.
  • Node roles include master-eligible, data (hot/warm/cold/frozen), ingest, and coordinating-only.
  • Exactly one master is active at a time, chosen via majority quorum election among master-eligible nodes.
  • Use an odd number (typically 3) of dedicated master-eligible nodes in production to avoid split-brain and keep quorum stable.
  • Cluster health is reported as green, yellow, or red based on primary and replica shard allocation.
  • Horizontal scaling means adding data nodes; the cluster automatically rebalances shards across them.
  • Hot-warm-cold-frozen architectures place data on hardware tiers matched to its access pattern and age.

Practice what you learned

Was this page helpful?

Topics covered

#Elasticsearch#ElasticsearchStudyNotes#Database#ElasticsearchClusterArchitecture#Cluster#Architecture#Node#Roles#StudyNotes#SkillVeris

Frequently Asked Questions

21 categories · pick one to explore

Where can I get free study notes for programming and tech subjects?
SkillVeris offers completely free study notes covering programming and tech subjects, with no signup fees or paywalls. The notes are structured by course and topic, written for quick understanding, and enriched with the Learn Through Hobbies analogy method, so you can revise concepts through cricket, music, gaming, cooking and more.
Are SkillVeris study notes good for exam revision?
Yes, the study notes are designed for efficient revision: each topic answers its heading immediately, keeps explanations concise, and links to related glossary terms and cheat sheets. Students preparing for university exams or certification tests use them as quick revision notes because they distil concepts without the padding of full textbooks.
What subjects do the free study notes cover?
The study notes span the platform's main domains, including AI and machine learning, Python and programming, web development, DevOps, cloud, security and databases. Coverage mirrors the 37 live courses, so notes exist for the topics you are actually studying, and new note sets are added as courses launch.
How are SkillVeris study notes different from regular textbooks?
The notes are answer-first, concise and free, whereas textbooks are long and often expensive. Each section explains one concept directly, then reinforces it through selectable hobby analogies like cricket or cooking. Notes also cross-link to the glossary, blog and cheat sheets, letting you jump to related material instantly instead of flipping pages.
Can I use the developer study material without creating an account?
The study notes are free to access, and SkillVeris does not charge anything for its developer study material at any point. Browsing notes is straightforward from the Study Notes section, and if you want progress tracking, certificates and AI Mentor conversations tied to your learning, a free account unlocks those extras.
Do the study notes explain concepts with analogies?
Yes, this is a signature SkillVeris feature. Study notes use the Learn Through Hobbies method, explaining technical concepts through analogies from twelve domains including cricket, music, gaming, photography, travel, movies, fitness, chess, cooking, finance, business and sports. You can switch the analogy domain instantly to whichever hobby makes the concept click.
Are the revision notes suitable for last-minute exam preparation?
Yes, revision notes on SkillVeris work well for last-minute preparation because every section states the answer in its first sentences, so skimming is genuinely effective. Pair them with the relevant cheat sheet for formulas and syntax, and use the glossary for any unfamiliar term you meet while cramming.
Is there free study material for AI and machine learning?
Yes, SkillVeris provides free study notes across its AI and ML catalogue, covering Python for AI, deep learning frameworks like PyTorch and TensorFlow, Hugging Face Transformers, Large Language Models, RAG, AI agents and MLOps. All of it is free, making it a strong resource for Indian students and global learners alike.
Can beginners understand the study notes, or are they for experts?
Beginners can absolutely use them. The notes are written in plain language, define terms as they appear, and lean on hobby analogies to make abstract ideas concrete. Difficulty scales with the underlying course level, so beginner-course notes stay gentle while advanced-course notes go deeper, and the glossary supports you throughout.
How do study notes connect with SkillVeris courses?
Study notes are organised by course and topic, so they map directly to the structured courses and their 24–40-lesson curriculum. Many learners study a lesson first, then use the matching notes for revision before module assessments and the final exam, where 80 percent is required to pass and earn the certificate.
Are there study notes for Python specifically?
Yes, Python is well covered through notes tied to the Python-focused courses, including Python for AI and ML. Topics span fundamentals through applied machine learning usage. You can reinforce the notes with Python practice in Code Lab, which runs code in your browser with no installation required.
Do the study notes include code examples?
Yes, study notes include code examples wherever a concept is best shown in code, alongside explanations, key points and analogies. Reading a snippet in the notes and then reproducing it yourself in Code Lab is an effective loop, since Code Lab lets you run code in the browser across six languages.
How often is new study material added to SkillVeris?
Study material grows alongside the course catalogue. Whenever new courses join the platform's 37 live courses, matching study notes, glossary entries and cheat sheets are added so the resources stay in sync. Existing notes are also refined over time, so it is worth revisiting topics you studied earlier.
Can I use SkillVeris notes to prepare for technical interviews?
Yes, the notes make excellent interview revision because they compress each concept into direct, answer-first explanations, which mirrors how you should answer interview questions. Combine them with the SkillVeris interview questions feature, which includes readiness scoring, to test whether your revision has actually made you interview-ready.
Are the study notes mobile-friendly for studying on the go?
Yes, the study notes are built to load fast and read comfortably on mobile devices, so you can revise during a commute or between classes. Sections are short and answer-first, which suits small screens, and analogy switching works on mobile too, letting you study anywhere without carrying books.
What is the difference between study notes and cheat sheets?
Study notes explain concepts in depth with context, examples and analogies, making them ideal for learning and revision. Cheat sheets are compact quick-reference summaries of syntax, commands and key facts, ideal once you already understand a topic. Most learners study the notes first, then keep the cheat sheet handy while coding.
Do study notes help if I am stuck on a course lesson?
Yes, reading the matching study notes often clarifies a lesson because the same concept is explained from a different angle, frequently with a different analogy. If you are still stuck, ask the AI Mentor, which answers 24/7 at Quick, Detailed or Deep-dive depth until the idea genuinely makes sense.
Is there free study material for DevOps and cloud topics?
Yes, SkillVeris carries free study notes for DevOps and cloud topics as part of its coverage across 37 live courses. The material suits learners following the DevOps Engineer or Cloud Engineer paths, and it links to related glossary terms and cheat sheets so you can revise the whole toolchain in one place.
Can school or college students in India use these notes for projects?
Yes, students across India and worldwide use SkillVeris notes for coursework, projects and exam preparation, and everything is free, which matters for student budgets. The notes explain concepts clearly enough to cite in project reports, and Code Lab lets you prototype the project code directly in your browser.
How should I combine study notes with other SkillVeris resources?
A proven loop: learn from a course lesson, revise with the matching study notes, look up unfamiliar terms in the glossary, keep the cheat sheet open while practising in Code Lab, and quiz yourself with interview questions. The AI Mentor fills any remaining gaps 24/7, at whatever depth you need.

What Learners Say

Real journeys from the SkillVeris community — swipe for more.

SkillVeris taught me Python through Cricket. Now I’m building real projects and feeling confident!
Arjun S. · B.Tech Student
The best platform for hobby-based learning. Concepts finally stick.
Priya R. · Data Analyst
I went from zero coding to a portfolio of projects — all by learning through my love for gaming. Landed my first internship!
Kabir M. · CS Undergraduate
Trending Topics50 popular tags — tap to explore
Trending CoursesAll 37 free courses — tap to browse