Tag: zookeeper
All the articles with the tag "zookeeper".
-
分布式锁深挖 · Redis Redlock vs ZooKeeper/etcd
深挖分布式锁:从互斥/防死锁/容错/可重入四条正确性出发,拆 Redis SET NX + Lua 释放 + 看门狗续期、Redlock 与 fencing token 质疑、ZooKeeper 顺序节点、etcd lease+CAS 及 CP/AP 取舍。
-
ZooKeeper 与 etcd 深挖 · ZAB、Raft、Watch 与租约
深挖两大协调服务:ZooKeeper 的 znode 模型、会话与临时节点、一次性 Watch 与 ZAB 协议,etcd 的 Raft、MVCC/revision、lease 租约与可回放 Watch,并对比 ZAB 与 Raft 的选主与配置用法。