Challenge - 5 Problems
Sentinel Client Discovery Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ query_result
intermediate2:00remaining
Discovering the current master address using Sentinel
Given a Redis Sentinel setup monitoring a master named mymaster, which command returns the IP and port of the current master node?
Redis
SENTINEL get-master-addr-by-name mymaster
Attempts:
2 left
💡 Hint
The command returns a two-element array with IP and port.
✗ Incorrect
The SENTINEL get-master-addr-by-name command returns the IP address and port of the current master monitored by Sentinel as a two-element array.
🧠 Conceptual
intermediate1:30remaining
Understanding Sentinel's role in client discovery
What is the primary purpose of Redis Sentinel in client discovery?
Attempts:
2 left
💡 Hint
Sentinel helps clients find the right master after failover.
✗ Incorrect
Redis Sentinel monitors Redis servers and provides clients with the current master address so they can connect to the right node even after failover.
📝 Syntax
advanced2:00remaining
Correct syntax for querying Sentinel for master info
Which of the following commands correctly queries Sentinel to get detailed information about the master named mymaster?
Attempts:
2 left
💡 Hint
The command is singular and uses the exact master name.
✗ Incorrect
The correct command to get detailed info about a specific master is SENTINEL master .
🔧 Debug
advanced2:00remaining
Identifying error in Sentinel client discovery command
A client runs the command
SENTINEL get-master-addr-by-name mymaster but receives an empty array []. What is the most likely cause?Attempts:
2 left
💡 Hint
Check if the master name matches exactly what Sentinel monitors.
✗ Incorrect
If Sentinel returns an empty array, it means it does not recognize the master name provided, so it is not monitoring a master with that name.
❓ optimization
expert2:30remaining
Optimizing client discovery in a multi-Sentinel environment
In a Redis setup with multiple Sentinel instances, what is the best practice for a client to discover the current master efficiently and reliably?
Attempts:
2 left
💡 Hint
Multiple Sentinels provide redundancy; use it to avoid delays.
✗ Incorrect
Querying multiple Sentinels in parallel ensures faster and more reliable discovery of the current master, avoiding delays if one Sentinel is down or slow.