
zookeeper
码基
码基
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
基于zookeeper的分布式锁 示意
package pers.machi.ZookeeperDistributedLock; import org.apache.zookeeper.KeeperException; import org.apache.zookeeper.WatchedEvent; import org.apache.zookeeper.Watcher; import org.apache.zookeeper.ZooKeeper; import org.omg.PortableInterceptor.SYSTEM_EXCEP原创 2020-07-27 12:08:09 · 191 阅读 · 0 评论 -
zookeeper watcher原理 搬运来的
转载 2020-01-05 00:07:59 · 140 阅读 · 0 评论 -
ZooKeeper Recipes and Solutions 两段式提交和选主
Two-phased Commit 二阶段提交 A two-phase commit protocol is an algorithm that lets all clients in a distributed system agree either to commit a transaction or abort. 二阶段提交协议算法,可以实现分布式系统中所有的客户端要么全部提交一个事务,要么...翻译 2019-07-18 15:05:18 · 358 阅读 · 0 评论 -
Zookeeper的原子广播协议
Zookeeper Atomic Broadcast (ZAB) 目的 ZooKeeper通过原子广播协议: 保证ZooKeeper复制行为的执行的先后顺序; 管理leader的选举,以及leader和node宕机后的恢复。 定义 leader和followers(领导者和跟从者)— 在ZooKeeper集群中,一个节点从当leader角色,其余的从当followers角色。leader负责...翻译 2019-07-17 14:32:08 · 879 阅读 · 0 评论 -
ZooKeeper选主的过程
ZooKeeper - Leader Election Zookeeper—选主 Let us analyze how a leader node can be elected in a ZooKeeper ensemble. Consider there are N number of nodes in a cluster. The process of leader election is a...翻译 2019-07-17 18:52:02 · 586 阅读 · 0 评论 -
Getting to Grips with ZooKeeper(Zookeeper入门必备,深入浅出)
The previous chapter discussed the requirements of distributed applications at a high level and argued that they often have common requirements for coordination. We used the master-worker example, whi...翻译 2019-08-04 14:31:25 · 730 阅读 · 0 评论