Skip to main content
InterviewHubPRO
Section Overview
Q27

Question 27 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

54%
Elasticsearch & Lucene (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

How does Elasticsearch achieve Master Node Consensus and prevent Split-Brain?

senior LevelelasticsearchAdvanced Internals

In Simple Words: In Elasticsearch 7.x+, split-brain is prevented using a Raft-inspired master election algorithm:

  • Requires a strict quorum: floor(N / 2) + 1 master-eligible nodes must agree.
  • Master nodes maintain voting configurations that automatically adapt during node scale-up or maintenance.
  • Eliminates the legacy discovery.zen.minimum_master_nodes configuration error.