Bird
Raised Fist0

If an Elasticsearch cluster has 3 nodes and an index has number_of_replicas set to 2, what is the maximum number of shard copies that can be allocated per shard?

medium📝 Predict Output Q5 of Q15
Elasticsearch - Performance and Scaling

If an Elasticsearch cluster has 3 nodes and an index has number_of_replicas set to 2, what is the maximum number of shard copies that can be allocated per shard?

A3
B2
C1
D4
Step-by-Step Solution
Solution:
  1. Step 1: Understand shard allocation rules

    Each shard copy (primary + replicas) must be on different nodes to avoid data loss.
  2. Step 2: Calculate max shard copies per shard

    With 3 nodes, max copies = 3 (1 primary + 2 replicas), matching cluster nodes.
  3. Final Answer:

    3 -> Option A
  4. Quick Check:

    Max shard copies ≤ number of nodes [OK]
Quick Trick: Shard copies cannot exceed number of nodes [OK]
Common Mistakes:
MISTAKES
  • Ignoring node count limits
  • Assuming replicas can be on same node
  • Confusing replicas count with total copies

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes