Challenge - 5 Problems
Elasticsearch Rolling Upgrade Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
Output of rolling upgrade cluster health status
Consider a rolling upgrade process in Elasticsearch where nodes are upgraded one by one. After upgrading the first node, the cluster health is checked with the following command:
What is the expected value of the
GET /_cluster/healthWhat is the expected value of the
status field in the response during the upgrade?Elasticsearch
GET /_cluster/health
Attempts:
2 left
💡 Hint
During rolling upgrades, some shards may be temporarily unassigned.
✗ Incorrect
During a rolling upgrade, some replicas may be temporarily unavailable while nodes are restarted. This causes the cluster health to be "yellow" because primary shards are available but some replicas are not yet assigned.
🧠 Conceptual
intermediate2:00remaining
Understanding shard allocation during rolling upgrades
During a rolling upgrade in Elasticsearch, what happens to shard allocation on the node that is being upgraded?
Attempts:
2 left
💡 Hint
Think about how Elasticsearch maintains data availability during node restarts.
✗ Incorrect
Elasticsearch keeps shards on the node until it is stopped. When the node stops, replicas on other nodes serve the data to keep the cluster available during the upgrade.
❓ Predict Output
advanced2:00remaining
Result of incompatible index during rolling upgrade
You attempt a rolling upgrade from Elasticsearch 7.10 to 8.0. One index uses a deprecated mapping feature incompatible with 8.0. What will happen when the node with that index restarts?
Attempts:
2 left
💡 Hint
Elasticsearch enforces strict index compatibility during major version upgrades.
✗ Incorrect
If an index uses deprecated or incompatible features, the node will fail to start and log errors until the index is fixed or deleted.
🔧 Debug
advanced2:00remaining
Identify the cause of cluster red status during rolling upgrade
During a rolling upgrade, the cluster health status unexpectedly turns red. Which of the following is the most likely cause?
Attempts:
2 left
💡 Hint
Red status means some primary shards are missing or unassigned.
✗ Incorrect
If a node is shut down before its shards are safely replicated, primary shards become unavailable, causing the cluster to turn red.
🚀 Application
expert3:00remaining
Planning a rolling upgrade with zero downtime
You need to perform a rolling upgrade on a 5-node Elasticsearch cluster with critical uptime requirements. Which sequence of steps ensures zero downtime?
Attempts:
2 left
💡 Hint
Think about how shard allocation affects data availability during node restarts.
✗ Incorrect
Disabling shard allocation before stopping each node for upgrade prevents unnecessary shard relocations, allowing faster recovery. After the node restarts and shards start, re-enabling allocation and waiting for green status ensures zero downtime.