liveBook · Manning

Quorum

As explained in Elasticsearch in Action, Second Edition

A quorum is the minimum number of eligible participants whose acknowledgments are required to authorize an operation in a distributed system.

A quorum is a carefully selected majority of master-eligible nodes whose acknowledgments allow a cluster to reach agreement. Elasticsearch uses this group when electing a master and committing cluster-state changes. section 14.6.4 section 14.6.3

During a cluster-state update:

  • The master computes and publishes the proposed changes. section 14.6.3
  • Master-eligible nodes acknowledge that they received the update. section 14.6.3
  • The master commits the change after receiving quorum acknowledgments; it does not need to wait for every node. section 14.6.3

Eight master-eligible nodes

In a 20-node cluster with eight master-eligible nodes, the quorum is five: 8 / 2 + 1 = 5. A cluster therefore needs at least five eligible nodes for quorum-based decisions in this example. As a practical rule, configure at least three master-eligible nodes to help avoid split-brain behavior. section 14.6.4 section 14.7

Minimum number of master-eligible nodes = (number of master-eligible nodes / 2) + 1

Use the quorum formula to estimate the minimum number of master-eligible nodes required for consensus. section 14.6.4

How Elasticsearch in Action, Second Edition covers it

How deep it goes
Explains quorum membership, acknowledgment-based commits, the majority formula, and split-brain mitigation.
Examples
Demonstrates quorum with a 20-node cluster containing eight master-eligible nodes and a five-node quorum.
What you can do after
Evaluate cluster layouts by calculating quorum size and recognizing why three master-eligible nodes are recommended.
How it connects
Connects quorum with master nodes, master-eligible nodes, cluster state, master elections, node failures, and split-brain.

Also explained in

Compare how 5 books explain quorum →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Elasticsearch in Action, Second Edition. The section links point to the parts of the book it draws on.