“1”指明当有1个sentinel认为一个master失效时,master才算真正失效就发起投票换选新主机
- 启动哨兵
[root@achang bin]# redis-sentinel achangConfig/sentinel.conf
[root@achang bin]# redis-sentinel achangConfig/sentinel.conf
2627:X 11 Jan 2021 13:49:42.470 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
2627:X 11 Jan 2021 13:49:42.470 # Redis version=5.0.7, bits=64, commit=00000000, modified=0, pid=2627, just started
2627:X 11 Jan 2021 13:49:42.470 # Configuration loaded
.
.-``_ ‘’-._
.-`` .
. ‘’-._ Redis 5.0.7 (00000000/0) 64 bit
( ’ , .- |
, ) Running in sentinel mode
|-._
-…- __...-.``-._|'
_.-'| Port: 26379
| -._
._ / _.-’ | PID: 2627
-._
-._ `-./ _.-’ _.-’
|-._
-._ `-.__.-’ .-'.-'|
| -._
-._ .-'.-’ | http://redis.io
-._
-.`-.__.-'.-’ _.-’
|-._
-._ `-.__.-’ .-'.-'|
| -._
-._ .-'.-’ |
-._
-.`-.__.-'.-’ _.-’
-._
-.__.-’ _.-’
`-._ _.-’
`-.__.-’
2627:X 11 Jan 2021 13:49:42.472 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
2627:X 11 Jan 2021 13:49:42.480 # Sentinel ID is 6a16196babb2259f1bc1105ae6d67f06bcd25786
2627:X 11 Jan 2021 13:49:42.480 # +monitor master my