Challenge - 5 Problems
Redis Cluster Resharding Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ query_result
intermediate2:00remaining
What is the output of the resharding command status?
After initiating a resharding operation in Redis Cluster, you run the command
CLUSTER RESHARDING STATUS. What output do you expect if the resharding is currently moving slots?Attempts:
2 left
💡 Hint
Think about what information you want to see during resharding progress.
✗ Incorrect
The
CLUSTER RESHARDING STATUS command does not exist in Redis. Resharding progress is typically monitored via redis-cli or external tools.🧠 Conceptual
intermediate2:00remaining
Why is resharding hash slots necessary in Redis Cluster?
Which of the following best explains why you would perform resharding of hash slots in a Redis Cluster?
Attempts:
2 left
💡 Hint
Think about cluster scaling and data distribution.
✗ Incorrect
Resharding moves hash slots between nodes to balance data and load, especially when nodes are added or removed.
📝 Syntax
advanced2:00remaining
Which command syntax correctly moves 50 hash slots from one node to another?
You want to move 50 hash slots from node A to node B in a Redis Cluster. Which command syntax is correct?
Attempts:
2 left
💡 Hint
Consider the official redis-cli cluster management commands.
✗ Incorrect
The
redis-cli --cluster reshard command with appropriate flags is the correct way to reshard slots between nodes.🔧 Debug
advanced2:00remaining
Why does the resharding command fail with 'MOVED' error?
You run the resharding command to move slots but get an error:
MOVED 1234 10.0.0.2:7002. What is the most likely cause?Attempts:
2 left
💡 Hint
The MOVED error indicates a redirection in Redis Cluster.
✗ Incorrect
The MOVED error means the command was sent to a node that does not own the requested slot, so you must connect to the correct node to reshard.
❓ optimization
expert3:00remaining
How to minimize downtime during resharding in a large Redis Cluster?
You have a large Redis Cluster and want to reshard hash slots with minimal downtime. Which approach is best?
Attempts:
2 left
💡 Hint
Think about gradual data movement and client availability.
✗ Incorrect
Moving slots in small batches with redis-cli reshard allows the cluster to remain available and reduces downtime.