Hello,

I have been reading about consistent hashing and the minimal disruptions 
thus expected when adding/removing a server. However there are disruptions, 
even if small, and one needs to migrate items from one server to another.

When moving big items, I understand it is possible to "mark" them as being 
in migration and copy them over to the new location. As long as they are 
always gets/sets, I am guaranteed consistency and the reader will realize 
it is interacting with a stale copy and check to see where the new one is.

The question is: how do you move small items, I am typically thinking of 
counters only ever accessed through incr/decr ?

- I cannot add a special "mark" field to those counters, because the 
clients only ever interact through incr/decr so would miss it.
- I can get it and delete it, but there is no telling that nobody would 
have modified the value in-between, so the value I have may be stale 
already.

I did not find a "rename" operation as I combed the docs, which would have 
been my savior here, so I would like to know how everyone else handles this 
situation.

Thanks,
-- Matthieu

Reply via email to