Bird
0
0

An index has 5 primary shards and 1 replica. You add a new node to the cluster. What happens to the shard allocation?

hard🚀 Application Q9 of 15
Elasticsearch - Basics and Architecture
An index has 5 primary shards and 1 replica. You add a new node to the cluster. What happens to the shard allocation?
AThe new node becomes master automatically
BAll shards remain on original nodes until manually moved
CElasticsearch rebalances shards to distribute them evenly across all nodes
DReplicas are deleted to save space
Step-by-Step Solution
Solution:
  1. Step 1: Understand shard allocation behavior

    Elasticsearch automatically rebalances shards to optimize resource use when nodes change.
  2. Step 2: Analyze impact of adding a node

    Adding a node triggers shard reallocation to spread shards evenly, improving performance and fault tolerance.
  3. Final Answer:

    Elasticsearch rebalances shards to distribute them evenly across all nodes -> Option C
  4. Quick Check:

    Shard rebalancing occurs on cluster changes [OK]
Quick Trick: New nodes trigger shard rebalancing [OK]
Common Mistakes:
MISTAKES
  • Assuming shards stay fixed without manual action
  • Thinking new node becomes master automatically
  • Believing replicas are deleted on node addition

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes