var ring = new HashRing(['127.0.0.1:11211', '127.0.0.2:11211', '127.0.0.3:11211']);
And im geting 44 keys and match server to them (column one and two in big picture below)
Then im adding new node:
ring.add( '127.0.0.4:11211');
And getting servers for the same ids - column 3 and 4 in big picture below)
Now server 4 has got ids from all other servers: 1 and 2 and 3, why?
When i am reading about consistent hashing - it looks like, when adding new node, only data from one node should be migrated, not from all nodes. Or am i wrong? ;
First i have 3 servers:
And im geting 44 keys and match server to them (column one and two in big picture below) Then im adding new node:
And getting servers for the same ids - column 3 and 4 in big picture below)
Now server 4 has got ids from all other servers: 1 and 2 and 3, why?
When i am reading about consistent hashing - it looks like, when adding new node, only data from one node should be migrated, not from all nodes. Or am i wrong? ;
All data: