【问题标题】:Who rewrites redis configuration slaveof of slave redis instances?谁重写了slave redis实例的redis配置slaveof?
【发布时间】:2023-03-12 09:07:01
【问题描述】:

考虑一个有 5 台机器的 redis sentinel 设置。每台机器都有sentinel process(s1,s2,s3,s4,s5)和redis instance(r1,r2,r3,r4,r5)在运行。一个是主控(r1),另一个是从属(r2...r5)。在 master r1 的故障转移期间,必须用新的 master r3 覆盖 redis 配置 slaveof。

谁来覆盖slave redis(r2,r4,r5)的redis配置? Elected sentinel responsible for failover(assuming s2 is elected sentinel) s2 will override the redis configuration at r2,r4,r5 or sentinel running at their respective machine will override the local redis configuration(sn will override configuration of rn)?

【问题讨论】:

    标签: redis-sentinel


    【解决方案1】:

    Elected Sentinel 将更新配置。这是 Sentinel 高级功能的完整列表:

    监控:Sentinel 不断检查您的主从实例是否按预期工作。

    通知:Sentinel 可以通过 API 通知系统管理员、另一个计算机程序,其中一个受监控的 Redis 实例出现问题。

    自动故障转移:如果一个主服务器没有按预期工作,Sentinel 可以启动一个故障转移过程,其中一个从服务器被提升为主服务器,其他额外的从服务器被重新配置为使用新的主服务器,并且使用 Redis 服务器的应用程序会在连接时通知要使用的新地址。

    配置提供者:Sentinel 充当客户端服务发现的权威来源:客户端连接到 Sentinel 以请求负责给定服务的当前 Redis 主机的地址。如果发生故障转移,Sentinels 将报告新地址。

    更多详情请参考docs

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-12-17
      • 1970-01-01
      • 2020-12-16
      • 2017-03-16
      • 1970-01-01
      • 2020-08-30
      • 2023-03-19
      • 1970-01-01
      相关资源
      最近更新 更多