Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When vnodes get larger, will the link I get change? #53

Open
aopstudio opened this issue Nov 12, 2020 · 0 comments
Open

When vnodes get larger, will the link I get change? #53

aopstudio opened this issue Nov 12, 2020 · 0 comments

Comments

@aopstudio
Copy link

For example, first time my config is
var ring = new HashRing({
'127.0.0.1:11211': { vnodes: 50 },
'127.0.0.2:11211': { vnodes: 200 },
});

And assumed ring.get('a') == '127.0.0.1:11211'

Next time, my config is
var ring = new HashRing({
'127.0.0.1:11211': { vnodes: 200 },
'127.0.0.2:11211': { vnodes: 50 },
});

Now is ring.get('a') == '127.0.0.1:11211'? Or it could be '127.0.0.2:11211' ?

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

No branches or pull requests

1 participant