Complete the code to start a Redis Sentinel instance monitoring a master named 'mymaster'.
sentinel monitor [1] 127.0.0.1 6379 2
The sentinel monitor command requires the master name to monitor. 'mymaster' is the default example name.
Complete the code to configure the quorum for Sentinel to agree on a failover.
sentinel monitor mymaster 127.0.0.1 6379 [1]
The quorum number defines how many Sentinels need to agree a master is down before failover starts. Usually, 2 or more is recommended.
Fix the error in the Sentinel failover command to trigger failover for 'mymaster'.
sentinel failover [1]The failover command requires the exact master name monitored by Sentinel. 'mymaster' is the correct master name here.
Fill both blanks to configure Sentinel to notify a script and set the down-after-milliseconds timeout.
sentinel [1] mymaster /path/to/notify.sh sentinel [2] mymaster 5000
notification-script sets a script to run on events.
down-after-milliseconds sets how long Sentinel waits before marking master as down.
Fill all three blanks to create a Sentinel configuration snippet that sets the failover timeout, parallel syncs, and client reconfiguration script.
sentinel [1] mymaster 60000 sentinel [2] mymaster 1 sentinel [3] mymaster /path/to/reconfig.sh
failover-timeout sets max time for failover.
parallel-syncs sets how many slaves can sync at once.
client-reconfig-script sets script to reconfigure clients after failover.