Complete the code to get the master address from Sentinel.
redis-cli -p 26379 sentinel get-master-addr-by-name [1]
The default master name in Sentinel configuration is mymaster. This command asks Sentinel for the current master address.
Complete the command to check the number of Sentinel monitors.
redis-cli -p 26379 sentinel [1]
The masters command lists all masters monitored by Sentinel, which helps check how many masters are monitored.
Fix the error in the command to list slaves of a master.
redis-cli -p 26379 sentinel [1] mymaster
The correct Sentinel command to list slaves of a master is slaves. Other options are invalid commands.
Fill both blanks to create a command that lists all Sentinel instances monitoring the master.
redis-cli -p 26379 sentinel [1] [2]
The command sentinels mymaster lists all Sentinel instances monitoring the master named 'mymaster'.
Fill all three blanks to create a command that gets the master address by name on a custom Sentinel port.
redis-cli -p [1] sentinel [2] [3]
This command connects to Sentinel on port 26379 and asks for the master address of mymaster using the get-master-addr-by-name command.