-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
Feature Request
Is your feature request related to a problem? Please describe
With dynamicRefreshSources(true), Lettuce queries all discovered nodes during topology refresh. In our 256-node cluster, this causes unnecessary load and connection churn.
Current options are all-or-nothing:
true: Query all 256 nodesfalse: Query only initial seed nodes (loses dynamic discovery)
Describe the solution you'd like
Add option to limit/sample the number of nodes queried:
ClusterTopologyRefreshOptions.builder()
.dynamicRefreshSources(true)
.maxTopologyRefreshSources(5) // Only query up to 5 nodes
.build()Describe alternatives you've considered
dynamicRefreshSources(false): Works but loses dynamic node discovery- Longer refresh intervals: Delays failover detection
Teachability, Documentation, Adoption, Migration Strategy
// For large clusters (100+ nodes), limit topology refresh sources
ClusterTopologyRefreshOptions.builder()
.dynamicRefreshSources(true)
.maxTopologyRefreshSources(10)
.build()