【问题标题】:Lettuce can't figure out multilevel replication topology生菜无法弄清楚多级复制拓扑
【发布时间】:2019-05-22 15:59:03
【问题描述】:

我有一种情况,我有以下设置:Redis A (Master) -> Redis B (Slave of A) -> Redis C (Slave of B)。我正在为此拓扑配置 redis 模板。当您在 Lettuce Master-Slave 配置中指定主机 (A) 或从机 (B) 的主机时,它将起作用,但是当我指定 C 的 IP 时,它会因以下异常而中断。

org.springframework.data.redis.RedisSystemException: Redis exception; nested exception is io.lettuce.core.RedisException: Cannot determine a node to read (Known nodes: []) with setting io.lettuce.core.ReadFromImpl$ReadFromSlave@4b80c7ea

这是我在状态为“DOWN”的redis 的connectionFactory bean 上点击执行器/健康端点时遇到的错误。

是不是Lettuce在这种多级情况下无法检测到master,如果是这样,即使我指定了A的IP,它也能发现“C”吗?谁能告诉这里发生了什么?

【问题讨论】:

    标签: java redis spring-data-redis lettuce


    【解决方案1】:

    显然,Lettuce 不支持多级 redis 设置的拓扑发现。 Find the Github issue here

    【讨论】:

      猜你喜欢
      • 2014-04-01
      • 2013-05-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多