Slide 38
Slide 38 text
● Use (hash % number-of-backends) as backend id ?
○ When the number of backends changes, almost every keys remaps
■ Typical example: Node Failure / Installation
○ More sophisticated way -> Consistent Hashing
■ Bound of remapped keys is keys/backends
● Two Consistent Hashing algorithms in Envoy/lb_policy
Consistent Hashing
55
Backend
1
Backend
3
Backend
2
Backend
4
Hash
(10)
Backend 1
● {1, 6, 10}
Backend 2
● {2, 5, 11}
Backend 3
● {7, 8, 9}
Backend 4
● {3, 4, 12}
Hash
(10)
RING_HASH MAGLEV