Skip to content

Commit ef95688

Browse files
committed
set sentinel failover-timeout longer (120000 ms)
* failover-timeout 60000 (ms) always success with local machine ** but sometimes failed with Travis CI
1 parent cee792d commit ef95688

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ daemonize yes
8686
sentinel monitor mymaster 127.0.0.1 6379 1
8787
sentinel auth-pass mymaster foobared
8888
sentinel down-after-milliseconds mymaster 2000
89-
sentinel failover-timeout mymaster 60000
89+
sentinel failover-timeout mymaster 120000
9090
sentinel parallel-syncs mymaster 1
9191
pidfile /tmp/sentinel1.pid
9292
logfile /tmp/sentinel1.log
@@ -99,7 +99,7 @@ sentinel monitor mymaster 127.0.0.1 6381 1
9999
sentinel auth-pass mymaster foobared
100100
sentinel down-after-milliseconds mymaster 2000
101101
sentinel parallel-syncs mymaster 1
102-
sentinel failover-timeout mymaster 60000
102+
sentinel failover-timeout mymaster 120000
103103
pidfile /tmp/sentinel2.pid
104104
logfile /tmp/sentinel2.log
105105
endef
@@ -110,7 +110,7 @@ daemonize yes
110110
sentinel monitor mymasterfailover 127.0.0.1 6385 1
111111
sentinel auth-pass mymasterfailover foobared
112112
sentinel down-after-milliseconds mymasterfailover 2000
113-
sentinel failover-timeout mymasterfailover 60000
113+
sentinel failover-timeout mymasterfailover 120000
114114
sentinel parallel-syncs mymasterfailover 1
115115
pidfile /tmp/sentinel4.pid
116116
logfile /tmp/sentinel4.log

0 commit comments

Comments
 (0)