Bird
0
0

Consider an Elasticsearch cluster with 3 nodes and an index configured with 5 primary shards and 1 replica per shard. How many total shards will be in the cluster?

medium📝 Predict Output Q13 of 15
Elasticsearch - Basics and Architecture
Consider an Elasticsearch cluster with 3 nodes and an index configured with 5 primary shards and 1 replica per shard. How many total shards will be in the cluster?
A5 shards
B10 shards
C6 shards
D15 shards
Step-by-Step Solution
Solution:
  1. Step 1: Calculate total shards per primary and replica

    Each primary shard has 1 replica, so total shards = primary shards + replicas = 5 + 5 = 10 shards.
  2. Step 2: Understand shard distribution across nodes

    Since there are 3 nodes, shards are distributed but total shards remain 10. However, the question asks total shards in cluster, including replicas.
  3. Step 3: Re-check options

    15 shards says 15 shards, which is incorrect. The correct total is 10 shards.
  4. Final Answer:

    10 shards -> Option B
  5. Quick Check:

    Total shards = primary + replica = 5 + 5 = 10 [OK]
Quick Trick: Total shards = primary shards x (1 + replicas) [OK]
Common Mistakes:
MISTAKES
  • Counting only primary shards
  • Adding nodes to shard count incorrectly
  • Confusing replicas with nodes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes