In https://github.com/spring-projects/spring-boot/issues/15630 some Lettuce specific options were added:

spring.redis.lettuce.cluster.refresh.adaptive
spring.redis.lettuce.cluster.refresh.period

Please add a similar configuration option to disable the dynamicRefreshSources. Maybe spring.redis.lettuce.cluster.refresh.dynamic-sources ?

To set this option we have to currently implement a LettuceClientConfigurationBuilderCustomizer, which also needs to set the previously mentioned clientOptions.

The option is needed to be able to (re-)connect to Redis using DNS names (in case nodes are restarted and get new IP addresses) (see https://github.com/lettuce-io/lettuce-core/issues/1343)

Comment From: wilkinsona

This sounds like a good idea to me, @DamianFekete. Thanks for the suggestion. @mp911de do you agree?

Comment From: mp911de

Makes sense.

Comment From: wilkinsona

Thanks, @mp911de.

Comment From: snicoll

Closing in favour of PR #22571