Sentinel cannot detect slave, slave = 0

Time:2020-8-1

If a password is set for the master, the master auth must be filled in after the monitor. Otherwise, the slave cannot be monitored.

port 26379
daemonize yes
logfile "26379.log"
dir "./"

sentinel deny-scripts-reconfig yes
Sentinel monitor mymaster fill in the IP of master and port 1 of master
sentinel down-after-milliseconds mymaster 10000
Masterauth "fill in the password"

sentinel failover-timeout mymaster 600000
bind 0.0.0.0

#Generated by config rewrite
protected-mode no
#... briefly

Recommended Today

ASP.NET Example of core MVC getting the parameters of the request

preface An HTTP request is a standard IO operation. The request is I, which is the input; the responsive o is the output. Any web development framework is actually doing these two things Accept the request and parse to get the parameters Render according to the parameters and output the response content So let’s learn […]