![](/img/trans.png)
[英]Is there a way to auto discover new cluster node IP in Redis Cluster with Lettuce
[英]Redis Cluster with Lettuce does not update IP list after nodes reboot
我有一個 Redis 集群(3 個領導者和 3 個追隨者),當我重新啟動所有集群節點時,我希望應用程序自動識別發生了 IP 交換。
在應用程序中,我使用 spring 應用以下設置:
spring.redis.cluster.nodes: redis:6379 spring.lettuce.cluster.refresh.adaptive: true
就好像應用程序正在緩存舊的 ip 地址,我需要以某種方式更新此節點列表,我正在連接到 dns。
在我的情況下,“刷新自適應”設置拼寫錯誤,缺少“redis”一詞。
正確設置為:spring.redis.lettuce.cluster.refresh.adaptive
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.