0
0
Redisquery~10 mins

Sentinel configuration in Redis - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the name of the monitored master in the Sentinel configuration.

Redis
sentinel monitor [1] 127.0.0.1 6379 2
Drag options to blanks, or click blank then click option'
Amymaster
Bmaster1
Credis-master
Dprimary
Attempts:
3 left
💡 Hint
Common Mistakes
Using IP address instead of a name
Using a name with spaces
Omitting the master name
2fill in blank
medium

Complete the code to set the quorum for the Sentinel to 3.

Redis
sentinel set [1] quorum 3
Drag options to blanks, or click blank then click option'
Aredis-master
Bmaster1
Cprimary
Dmymaster
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong master name
Setting quorum without specifying master name
Confusing quorum number with master name
3fill in blank
hard

Fix the error in the Sentinel configuration command to set the failover timeout to 15000 milliseconds.

Redis
sentinel set mymaster [1] 15000
Drag options to blanks, or click blank then click option'
Afailovertimeout
Bfailover_timeout
Cfailover-timeout
DfailoverTimeout
Attempts:
3 left
💡 Hint
Common Mistakes
Using underscores instead of hyphens
Using camelCase
Misspelling the option name
4fill in blank
hard

Fill both blanks to configure Sentinel to notify a script and set the client reconfiguration timeout.

Redis
sentinel set mymaster [1] /path/to/notify.sh
sentinel set mymaster [2] 10000
Drag options to blanks, or click blank then click option'
Anotification-script
Bclient-reconfig-script
Cclient-reconfig-timeout
Dnotification-timeout
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up script and timeout options
Using incorrect option names
Using underscores instead of hyphens
5fill in blank
hard

Fill all three blanks to configure Sentinel with master name, IP, port, and quorum.

Redis
sentinel monitor [1] [2] [3] 2
Drag options to blanks, or click blank then click option'
Amymaster
B192.168.1.100
C6379
Dlocalhost
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping IP and port positions
Using 'localhost' instead of IP address
Using wrong master name