skip to Main Content

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


  1. Chosen as BEST ANSWER

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

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


Please signup or login to give your own answer.
Back To Top
Search