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.
2
Answers
"Refresh adaptive" setting in my case is misspelled, lacking the term "redis".
Correct setting is: spring.redis.lettuce.cluster.refresh.adaptive
This maybe help you I think.
https://lettuce.io/core/release/reference/#clientoptions.cluster-specific-options