You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Kubernetes环境下Redis Sentinel主节点所在工作节点重启后无法稳定选主的问题求助

Kubernetes环境下Redis Sentinel主节点所在工作节点重启后无法稳定选主的问题求助

各位大佬好,我最近在Kubernetes集群部署Redis Sentinel时碰到了一个头疼的问题:当Redis主节点所在的底层K8s Worker节点重启后,Sentinel根本没法稳定选出新的主节点,一直在循环切换主节点,同时写操作会抛出如下错误:

RedisReadOnlyException: READONLY You can’t write against a read only replica.

下面是容器里重复打印的Sentinel日志内容:

try-failover master mymaster redis-node-3.redis-headless.test.svc.cluster.local 6379
failover-abort-not-elected master mymaster
new-epoch 731
vote-for-leader
Next failover delay: I will not start a failover before Thu May 4

现在系统彻底陷入了无法执行任何写操作的状态,只有把所有节点都重启才能恢复。有没有大佬能给点处理这个问题的思路?麻烦大家了!

备注:内容来源于stack exchange,提问作者John

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 11:54:37