【问题标题】:Redis Cluster with Lettuce does not update IP list after nodes rebootRedis Cluster with Lettuce 在节点重启后不更新 IP 列表
【发布时间】:2022-01-26 18:35:39
【问题描述】:

我有一个 Redis 集群(3 个领导者和 3 个追随者),当我重新启动所有集群节点时,我希望应用程序自动识别发生了 IP 交换。

在我使用 spring 的应用程序中应用以下设置:

spring.redis.cluster.nodes: redis:6379 spring.lettuce.cluster.refresh.adaptive: true

好像应用程序正在缓存旧的 IP 地址,我需要以某种方式更新这个节点列表,我正在连接到一个 dns。

【问题讨论】:

    标签: redis spring-data-redis redis-cluster


    【解决方案1】:

    在我的情况下,“刷新自适应”设置拼写错误,缺少“redis”一词。

    正确的设置是:spring.redis.lettuce.cluster.refresh.adaptive

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-08-16
      • 2020-04-21
      • 2016-08-10
      • 2016-11-09
      • 2021-11-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多