Skip to main content
InterviewHubPRO
Section Overview
Q46

Question 46 of 50

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

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

Circuit Breakers in Elasticsearch: Fielddata circuit breaker, Parent circuit breaker, and preventing OOM heap crashes.

senior LevelMemory ManagementData Structures

In Simple Words: Circuit breakers protect nodes from running out of JVM heap memory and crashing during aggressive queries:

  • Parent Circuit Breaker (indices.breaker.total.use_real_memory: true): Trips if total allocated JVM memory exceeds 95% of heap, rejecting incoming queries with a CircuitBreakingException.
  • Fielddata Circuit Breaker (indices.breaker.fielddata.limit: 40%): Trips if an aggregation on text fields attempts to load more than 40% of heap.
  • Ensures one rogue developer running an unbounded aggregation will not crash the entire cluster for other services.