master-work
2021-04-13 14:57:39 2 举报
master-work模式
作者其他创作
大纲/内容
ls -w /workers
Created /workers/w1
create -e /master \"m2:1111\"
[w1]
create -e /master \"m1:1111\"
quit
w1宕机
Node already exists: /master
W2
[w2]
WATCHER::WatchedEvent state:SyncConnected type:NodeDeleted path:/master
Created /master
stat -w /master
w2加入workers
M2
M1
Created /workers/w2
创建workers,并进行监听
W1
成为master
WATCHER::WatchedEvent state:SyncConnected type:NodeChildrenChanged path:/workers
Master-Workers
WATCHER::WatchedEvent state:SyncConnected type:NodeChildrenChanged path:/workers
create -e /workers/w1 \"w1:2222\"
w1加入workers
workers
create -e /workers/w2 \"w2:2222\"
[]
master宕机
create /workers
master选举失败,监听master
Created /workers
0 条评论
下一页