Closed huxiaozhe closed 4 months ago
您好,请问您说的sentinel是pika自己设计的codis中集成的哨兵还是说redis原生的哨兵呢?我这边在搭建最基础的Master-Slave式的的pika服务时,发现配合redis原生sentinel不能实现故障转移。
Bot detected the issue body's language is not English, translate it automatically.
Hello, is the sentinel you are talking about the sentinel integrated in codis designed by pika itself, or the sentinel native to redis? When I was building the most basic Master-Slave-style pika service, I found that failover could not be achieved with redis's native sentinel.
@baixin01
Bot detected the issue body's language is not English, translate it automatically.
@baixin01
baixin:chengyu 多加了一个冒号导致了此问题。
Bot detected the issue body's language is not English, translate it automatically.
baixin: chengyu added an extra colon, which caused this problem.
这个问题已经修复解决了
Bot detected the issue body's language is not English, translate it automatically.
This problem has been fixed
Which PikiwiDB functionalities are relevant/related to the feature request?
No response
Description
pika 缺少 master_link_down_since_seconds 指标,含义为 slave 与 master 的链接出现异常之后,slave开始计时。 sentinel选主时就不会选择master_link_down_since_seconds > master宕机时间的 slave 节点,可以更加准确的进行选主。
offset 格式不同 redis :slave_repl_offset:
pika :db0 binlog_offset=0 0
是否可以抽象出一个 slave_repl_offset
Proposed solution
-
Alternatives considered
-