我有这样一种情况: Redis A(主) -> Redis B(A的从属) Redis C(B的从属)。我正在为这个拓扑配置redis模板。当您在Lettuce Master-Slave配置中指定主(A)或从(B)的主机时,它将工作,但当我指定IP为C时,它会中断,并出现以下异常。
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“吗?有人能说出这里发生了什么吗?
发布于 2019-05-24 21:54:34
显然,Lettuce不支持多级redis设置的拓扑发现。 Find the Github issue here
https://stackoverflow.com/questions/56260844
复制相似问题