~/talk

Distributed Locking in Kubernetes

Talkat Developers Summit 2021 · 2021-02-18..02-19· [kubernetes, distributed-systems]
github:leszko
slides:none on file

Distributed locking in Kubernetes compares concrete implementations: single-instance cache (Hazelcast/Redis) for efficiency only, Hazelcast cluster and Redis Redlock for higher availability, and consensus-based CP/etcd/Zookeeper for stronger consistency. It states leases (Kubernetes Lease resource or ConfigMap) require renewal, shows Redlock needs clock sync and can still fail if a process stalls, and demonstrates a working fenced approach using monotonic fencing tokens with CP/raft to guarantee correctness at the cost of complexity and lower throughput.

AI-written summary · about

  1. 0:00Why distributed locks matter
  2. 5:02Single instance lock manager
  3. 10:25Clustered lock manager issues
  4. 17:15Redlock algorithm explained
  5. 23:24Consensus-based locking
  6. 28:01Kubernetes-native locking
  7. 31:15Fencing tokens for correctness
  8. 40:55Choosing the right strategy
  9. 42:39Resources and thanks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.