Skip to content

Conversation

@KAKXA
Copy link
Contributor

@KAKXA KAKXA commented Sep 26, 2021

原文中的key一直都是键的意思

The problem with the mod N approach is that if the number of nodes N changes,
most of the keys will need to be moved from one node to another. For example, say
hash(key) = 123456. If you initially have 10 nodes, that key starts out on node 6
(because 123456 mod 10 = 6). When you grow to 11 nodes, the key needs to move to
node 3 (123456 mod 11 = 3), and when you grow to 12 nodes, it needs to move to
node 0 (123456 mod 12 = 0). Such frequent moves make rebalancing excessively
expensive.

@yingang yingang merged commit 9b2cf5d into Vonng:master Sep 26, 2021
@yingang
Copy link
Collaborator

yingang commented Sep 26, 2021

Thanks for your contribution!

@wizardforcel
Copy link

可能是翻译引擎的问题没查出来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants