Redis sentinel 在 raid-check 运行时进入 TILT 模式?

标签 redis redis-sentinel raid

我正在使用 redis sentinel (Redis v3.0.7),一切正常。但是在 /var/log/sentinel.log 每个星期日凌晨 1:00 - 4:29 进入了 TILT 模式:

4036:X 12 Nov 01:03:16.607 # +tilt #tilt mode entered
4036:X 12 Nov 01:03:46.622 # -tilt #tilt mode exited
4036:X 12 Nov 01:07:20.246 # +tilt #tilt mode entered
4036:X 12 Nov 01:07:50.401 # -tilt #tilt mode exited
.....
4036:X 12 Nov 04:29:13.825 # +tilt #tilt mode entered
4036:X 12 Nov 04:29:43.860 # -tilt #tilt mode exited

当时我检查了一下,发现 raid_check 也在同时运行:

cat /etc/cron.d/raid-check
Run system wide raid-check once a week on Sunday at 1am by default
0 1 * * Sun root /usr/sbin/raid-check

我不知道为什么。

最佳答案

From the docs:

However if the computer time changes in an unexpected way, or if the computer is very busy, or the process blocked for some reason, Sentinel may start to behave in an unexpected way.

听起来 Redis 注意到服务器由于 RAID 重建而负载过重,并切换到倾斜模式,因此它不会提供不正确的数据,这是所需的行为。

关于Redis sentinel 在 raid-check 运行时进入 TILT 模式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47282085/

相关文章:

java - Spring-Boot:使用 Redis 作为 Session Store 时出现异常

join - webdis 服务器端加入

amazon-ec2 - Redis 故障转移,哨兵不工作

backup - 为什么RAID 1被认为不利于备份?

linux - 当组件设备可能已经包含 ext2 文件系统时编写 mdadm 脚本

Redis.conf for slave with sentinel

php - 在 Redis 中存储对象数组并检索它

Docker Swarm Redis 和 Sentinel with master-slave replication IP resolution client failure

java - Redisson + redis 哨兵。如何处理故障转移并写入redis?