Failover in Redis means switching from the main server (master) to a backup server (replica) when the main server stops working.
Click to reveal answer
beginner
Why do we need a manual failover process in Redis?
Manual failover is needed when automatic failover does not happen or is disabled. It helps keep the system running by promoting a replica to master by hand.
Click to reveal answer
intermediate
Name the Redis command used to manually promote a replica to master.
The command is CLUSTER FAILOVER when using Redis Cluster or SLAVEOF NO ONE for standalone Redis replicas.
Click to reveal answer
beginner
What is the first step in a manual failover process in Redis?
First, check the health of the current master and replicas to confirm the master is down or unreachable.
Click to reveal answer
intermediate
After promoting a replica to master manually, what should you do next?
Update your application or clients to connect to the new master and reconfigure other replicas to follow the new master.
Click to reveal answer
Which Redis command promotes a replica to master in a standalone setup?
AMASTER REPLICA
BCLUSTER FAILOVER
CFAILOVER START
DSLAVEOF NO ONE
✗ Incorrect
In standalone Redis, SLAVEOF NO ONE promotes a replica to master.
What is the main reason to perform manual failover in Redis?
ATo backup data
BAutomatic failover failed or is disabled
CTo restart Redis server
DTo clear cache
✗ Incorrect
Manual failover is done when automatic failover does not work or is turned off.
Before manual failover, what should you verify?
AMaster server is down or unreachable
BReplica has more data
CNetwork speed is fast
DClients are disconnected
✗ Incorrect
You must confirm the master is not working before failover.
After manual failover, what must be updated?
AClient connections to point to new master
BRedis version
CDisk space
DFirewall rules
✗ Incorrect
Clients need to connect to the new master after failover.
Which Redis feature can automate failover without manual steps?
ARedis Backup
BRedis CLI
CRedis Sentinel
DRedis Cache
✗ Incorrect
Redis Sentinel monitors and automatically performs failover.
Describe the manual failover process in Redis step-by-step.
Think about what you do before, during, and after switching servers.
You got /4 concepts.
Explain why manual failover might be necessary even if Redis has automatic failover options.
Consider situations where automation does not work as expected.
You got /4 concepts.
Practice
(1/5)
1. What is the main purpose of performing a manual failover in a Redis cluster?
easy
A. To upgrade Redis to a new version automatically
B. To delete all data from the Redis cluster
C. To switch the Redis master to a backup to keep the service running
D. To backup Redis data to an external storage
Solution
Step 1: Understand failover purpose
Failover is used to switch the master node to a backup node when the master fails or needs maintenance.
Step 2: Identify the correct purpose
The goal is to keep the Redis service running without interruption by promoting a backup to master.
Final Answer:
To switch the Redis master to a backup to keep the service running -> Option C
Quick Check:
Failover = switch master to backup [OK]
Hint: Failover means switching master to backup to avoid downtime [OK]
Common Mistakes:
Confusing failover with data backup
Thinking failover upgrades Redis automatically
Assuming failover deletes data
2. Which command syntax is correct to trigger a manual failover on a Redis cluster node?
easy
A. redis-cli --failover cluster
B. redis-cli failover --cluster
C. redis-cli cluster --failover node
D. redis-cli --cluster failover
Solution
Step 1: Recall the correct command format
The correct syntax to trigger manual failover is using the cluster option with failover and the node ID.
Step 2: Match the syntax
Only redis-cli --cluster failover <node-id> matches the official Redis command format.
Final Answer:
redis-cli --cluster failover <node-id> -> Option D