Bird
0
0

You want to optimize an index for search speed and fault tolerance. Which setting combination is best if you have 3 data nodes?

hard🚀 Application Q8 of 15
Elasticsearch - Index Management
You want to optimize an index for search speed and fault tolerance. Which setting combination is best if you have 3 data nodes?
Anumber_of_shards: 3, number_of_replicas: 0
Bnumber_of_shards: 1, number_of_replicas: 0
Cnumber_of_shards: 3, number_of_replicas: 2
Dnumber_of_shards: 5, number_of_replicas: 1
Step-by-Step Solution
Solution:
  1. Step 1: Consider node count and replica distribution

    With 3 nodes, setting replicas to 2 allows one primary and two replicas on separate nodes for fault tolerance.
  2. Step 2: Balance shards and replicas for speed and safety

    3 shards allow parallel search; 2 replicas ensure high availability.
  3. Final Answer:

    number_of_shards: 3, number_of_replicas: 2 -> Option C
  4. Quick Check:

    Replicas = nodes - 1 for max fault tolerance [OK]
Quick Trick: Set replicas to nodes minus one for max safety [OK]
Common Mistakes:
MISTAKES
  • Setting replicas to zero losing fault tolerance
  • Too many shards causing overhead
  • Ignoring node count for replicas

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes