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