Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

ring: Append Ketama nodes, not panic on small rings #263

Merged
merged 1 commit into from
Jun 14, 2016

Conversation

barakmich
Copy link
Contributor

The Ketama hash may not assign points to servers that are particularly
small compared to the total storage. This makes some sense -- they can't
cover much. However, this causes errors, and we need to return a full
permutation, so simply append the small ones as "overflow". Fixes #246.

Rings can also declare their replication factor as being higher than the
number of nodes they contain. This causes panics. Raise a warning when
such a ring is detected, but continue operation. Fixes #219.

The Ketama hash may not assign points to servers that are particularly
small compared to the total storage. This makes some sense -- they can't
cover much. However, this causes errors, and we need to return a full
permutation, so simply append the small ones as "overflow". Fixes coreos#246.

Rings can also declare their replication factor as being higher than the
number of nodes they contain. This causes panics. Raise a warning when
such a ring is detected, but continue operation. Fixes coreos#219.
@barakmich
Copy link
Contributor Author

Merging Sua Sponte

@barakmich barakmich merged commit 445f8da into coreos:master Jun 14, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant