Complete the code to start a Redis Sentinel instance monitoring the master named 'mymaster'.
sentinel monitor [1] 127.0.0.1 6379 2
The sentinel monitor command requires the master name as the first argument. 'mymaster' is the default example name.
Complete the code to configure the quorum for failover to 3 Sentinel instances.
sentinel set [1] quorum 3
The quorum setting is applied to the master name monitored by Sentinel, here 'mymaster'.
Fix the error in the command to add a new Sentinel instance to monitor the master 'mymaster'.
sentinel monitor [1] 127.0.0.1 6379 2
The sentinel monitor command requires exactly 4 arguments: master name, IP, port, and quorum. The quorum number is missing in the code, so the correct fix is to provide the master name only and add the quorum number after.
Fill both blanks to configure the failover timeout and parallel sync for 'mymaster'.
sentinel set [1] failover-timeout [2]
The first blank is the master name 'mymaster'. The second blank is the failover timeout value in milliseconds, here '10000' (10 seconds).
Fill all three blanks to create a dictionary of Sentinel instances with their IPs and ports.
sentinels = [1]: [2], [3]: 26379, '192.168.1.11': 26380}
The dictionary keys are IP addresses as strings, and values are port numbers. The first key is '192.168.1.10', the first value is 26378, and the second key is '192.168.1.10' (should be corrected to '192.168.1.11' in code), the second value is 26379.