Bird
Raised Fist0

After setting cluster.routing.allocation.awareness.attributes to 'zone', you observe that replica shards are still placed on nodes within the same zone. What is the most probable reason?

medium📝 Debug Q6 of Q15
Elasticsearch - Cluster Management
After setting cluster.routing.allocation.awareness.attributes to 'zone', you observe that replica shards are still placed on nodes within the same zone. What is the most probable reason?
AThe cluster has only one zone configured, so replicas must be on the same zone.
BThe nodes do not have the 'zone' attribute properly defined in their settings.
CThe replicas are disabled in the index settings.
DShard allocation awareness only works for primary shards, not replicas.
Step-by-Step Solution
Solution:
  1. Step 1: Check attribute configuration

    Shard allocation awareness relies on nodes having the specified attribute (here, 'zone') set correctly.
  2. Step 2: Identify cause of replicas on same zone

    If nodes lack the 'zone' attribute, Elasticsearch cannot distinguish zones and may allocate replicas on the same zone.
  3. Final Answer:

    The nodes do not have the 'zone' attribute properly defined in their settings. -> Option B
  4. Quick Check:

    Are node attributes set correctly? If no, problem found [OK]
Quick Trick: Nodes must have the awareness attribute set to enable proper allocation [OK]
Common Mistakes:
MISTAKES
  • Assuming replicas are disabled
  • Believing awareness only applies to primary shards
  • Ignoring node attribute configuration

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes