Challenge - 5 Problems
Redis Cluster Failover Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
What happens during a Redis cluster failover?
In a Redis cluster, when a master node fails, what is the expected behavior during failover?
Attempts:
2 left
💡 Hint
Think about how Redis maintains availability when a master fails.
✗ Incorrect
During failover, Redis promotes a slave node to master to keep the cluster available without data loss.
❓ query_result
intermediate2:00remaining
Identify the output of the failover status command
What is the output of the Redis CLI command `CLUSTER FAILOVER` when executed on a slave node during failover?
Redis
CLUSTER FAILOVER
Attempts:
2 left
💡 Hint
The command is used to trigger manual failover from a slave.
✗ Incorrect
The command returns "OK" when the slave node successfully starts the failover process.
📝 Syntax
advanced2:00remaining
Which command syntax triggers a manual failover with force?
Select the correct Redis command syntax to force a manual failover on a slave node.
Attempts:
2 left
💡 Hint
The TAKEOVER option bypasses some checks during failover.
✗ Incorrect
The correct syntax to force failover is `CLUSTER FAILOVER TAKEOVER`.
❓ optimization
advanced2:00remaining
Optimizing failover detection time in Redis cluster
Which configuration change will reduce the time Redis cluster takes to detect a master node failure and start failover?
Attempts:
2 left
💡 Hint
Failover detection depends on how quickly nodes consider others unreachable.
✗ Incorrect
Lowering `cluster-node-timeout` makes nodes detect failures faster, triggering quicker failover.
🔧 Debug
expert2:00remaining
Why does manual failover fail with ERR when forced on a master node?
You run `CLUSTER FAILOVER TAKEOVER` on a Redis node that is currently a master. The command returns an error: `ERR This node is not a slave`. Why does this happen?
Attempts:
2 left
💡 Hint
Failover means promoting a slave to master, so the command must run on a slave.
✗ Incorrect
Only slave nodes can initiate failover to become master; forcing failover on a master causes this error.