Skip to main content
InterviewHubPRO
Section Overview
Q48

Question 48 of 50

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

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

Elasticsearch Cluster Recovery and Peer Recovery: Translog retention, shard sync, and fast cluster restarts.

senior LevelHTTP & REST APIs

In Simple Words: When a node restarts or a shard moves between nodes:

  • Translog (Transaction Log): Lucene commits data to disk periodically (every 30 minutes or 512MB). Incoming writes are appended immediately to an fsynced Translog.
  • Peer Recovery: The primary shard transfers missing operations from its Translog to the replica shard over the network.
  • Synced Flush / Translog Retention: Allows the cluster to perform peer recovery without copying entire multi-gigabyte shard files, restoring cluster green state in seconds.