Complete the code to check the role of a Redis node.
[1]The ROLE command returns the role of the Redis node (master, slave, or sentinel).
Complete the command to failover a Redis slave to master.
SLAVEOF [1] [2]
The command SLAVEOF NO ONE makes the slave become master.
Fix the error in the command to trigger a manual failover in Redis Sentinel.
SENTINEL [1] mymasterThe correct command to trigger a manual failover in Redis Sentinel is SENTINEL failover <master-name>.
Fill both blanks to configure Redis Sentinel to monitor a master.
SENTINEL MONITOR [1] [2] 6379 2
The SENTINEL MONITOR command requires the master name and IP address. Here, 'mymaster' is the master name and '192.168.1.100' is the IP.
Fill all three blanks to check the current master of a monitored Redis master in Sentinel.
SENTINEL [1] | grep {{BLANK_3}}The command SENTINEL masters mymaster lists masters, and piping to grep name filters the master name.