简体   繁体   中英

Redis Cluster with Lettuce does not update IP list after nodes reboot

I have a Redis Cluster (3 leaders and 3 followers), when I restart all cluster nodes I would like the application to automatically identify that an IP exchange has happened.

In the application I'm using spring applying the following settings:

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

It's as if the application was caching the old ip addresses, I need to somehow get this list of nodes updated, I'm connecting to a dns.

"Refresh adaptive" setting in my case is misspelled, lacking the term "redis".

Correct setting is: spring.redis.lettuce.cluster.refresh.adaptive

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM