Skip to content

Commit ea7a799

Browse files
authored
Fix default value of primary-reboot-down-after-period in sentinel.conf (valkey-io#1040)
Since in here the monitor value is mymaster, we need to make sure the primary name is the same, otherwise the default configuration cannot start sentinel. ``` sentinel monitor mymaster 127.0.0.1 6379 2 ``` The following error occurs when the default configuration is started: ``` *** FATAL CONFIG FILE ERROR (Version 255.255.255) *** Reading the configuration file, at line 358 >>> 'SENTINEL primary-reboot-down-after-period myprimary 0' No such master with specified name. ``` Introduced in valkey-io#647. Signed-off-by: Binbin <binloveplay1314@qq.com>
1 parent d9c41e9 commit ea7a799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentinel.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,4 +355,4 @@ SENTINEL announce-hostnames no
355355
# accept a -LOADING response after a primary has been rebooted, before failing
356356
# over.
357357

358-
SENTINEL primary-reboot-down-after-period myprimary 0
358+
SENTINEL primary-reboot-down-after-period mymaster 0

0 commit comments

Comments
 (0)