Bird
Raised Fist0

Which setting helps achieve this?

hard🚀 Application Q9 of Q15
Elasticsearch - Cluster Management
You have a cluster with nodes labeled by 'zone' and 'rack'. You want to prevent shard allocation on a zone that is temporarily down but keep replicas balanced across racks in other zones. Which setting helps achieve this?
AUse cluster.routing.allocation.awareness.force.zone with the list of available zones
BDisable shard allocation awareness temporarily
CSet cluster.routing.allocation.awareness.attributes to only 'rack'
DIncrease replica count to cover all racks
Step-by-Step Solution
Solution:
  1. Step 1: Understand forced awareness

    Forced awareness allows specifying which attribute values must have shards allocated, preventing allocation on missing or down zones.
  2. Step 2: Analyze options

    Use cluster.routing.allocation.awareness.force.zone with the list of available zones uses forced awareness for 'zone' to exclude down zones while keeping rack awareness active. Other options either disable awareness or do not address the problem.
  3. Final Answer:

    Use cluster.routing.allocation.awareness.force.zone with the list of available zones -> Option A
  4. Quick Check:

    Forced awareness excludes down zones from allocation [OK]
Quick Trick: Use forced awareness to exclude unavailable attribute values [OK]
Common Mistakes:
MISTAKES
  • Disabling awareness instead of forcing
  • Ignoring forced awareness setting
  • Relying on replica count alone

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes