Skip to content

Conversation

velimir
Copy link

@velimir velimir commented Aug 28, 2025

Previously, managed hash rings always used a hardcoded weight of 128 for all nodes, preventing operators from tuning the ring's distribution characteristics. The number of virtual nodes (weight) affects distribution smoothness - higher weights create smoother distribution, while lower weights may create less uniform distribution.

This change allows operators to configure a custom default weight via node_weight, enabling them to optimize for their specific requirement.

The configured node_weight applies consistently to all nodes added without explicit weights: initial configuration nodes, automatically monitored nodes, and nodes added via the API without specifying a weight.

Backward compatibility is maintained - node_weight defaults to 128 when not specified.

Previously, managed hash rings always used a hardcoded weight of 128 for
all nodes, preventing operators from tuning the ring's distribution
characteristics. The number of virtual nodes (weight) affects
distribution smoothness - higher weights create smoother distribution,
while lower weights may create less uniform distribution.

This change allows operators to configure a custom default weight via node_weight,
enabling them to optimize for their specific requirement.

The configured node_weight applies consistently to all nodes added without explicit
weights: initial configuration nodes, automatically monitored nodes, and nodes added
via the API without specifying a weight.

Backward compatibility is maintained - node_weight defaults to 128 when not specified.
the tests uses clustering, which can be difficult to test in async
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