Skip to content

Change NodeSelectionDelegate signature to allow more flexible strategies#12

Closed
pracucci wants to merge 3 commits intomasterfrom
more-flexible-node-selection
Closed

Change NodeSelectionDelegate signature to allow more flexible strategies#12
pracucci wants to merge 3 commits intomasterfrom
more-flexible-node-selection

Conversation

@pracucci
Copy link

@pracucci pracucci commented Nov 26, 2025

Description

I want to improve the zone-aware routing implemented in dskit but to do so I need to have the full view over the available nodes when selecting the ones to gossip to. For this reason, in this PR I'm changing NodeSelectionDelegate signature to take in input the entire list of nodes, and then filter them, allowing to select 1 (optional) preferred node.

Look at grafana/dskit#800 to see why I need this change.

Related Issue

N/A

Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant