node-hashring icon indicating copy to clipboard operation
node-hashring copied to clipboard

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

Open aopstudio opened this issue 5 years ago • 0 comments

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' ?

aopstudio avatar Nov 12 '20 07:11 aopstudio