Large-Scale Key-Value Stores Eventual Consistency
Marco Serafini
COMPSCI 532 Lecture 15/16
Large-Scale Key-Value Stores Eventual Consistency Marco Serafini - - PowerPoint PPT Presentation
Large-Scale Key-Value Stores Eventual Consistency Marco Serafini COMPSCI 532 Lecture 15/16 Consistent Hashing 2 Consistent Hashing Each node has a membership set M When a node needs to access a key It hashes the IDs of the
COMPSCI 532 Lecture 15/16
2
3
3
6
1 2 3 4 5 6 7
1 2 successor(2) = 3 successor(6) = 0 successor(1) = 1
nodes In this example:
identity for simplicity
4
6
1 2 3 4 5 6 7
1 2 successor(2) = 3 successor(6) = 0 successor(1) = 1
4
55
THEOREM 1. For any set of nodes and keys, with high probability:
keys
node joins or leaves the network, respon- sibility for keys changes hands (and only to or from the joining or leaving node).
7
7
88
99
10
10
11
11
12
12
13
13
14
14
15
15
Figure 3: Version evolution of an object over time.