首页 > 其他 > 详细

Zookeeper

时间:2015-07-11 16:26:19      阅读:136      评论:0      收藏:0      [点我收藏+]

1. Zookeeper客户端

Zookeeper
    |
    |--- ClientCnxn
    |           |
    |           |----SendThread  
    |           | 
    |           |----EventThread  
    |
    |--- ZkWatchManager

  在客户端中,SendThread和EventThread均使用BlockingQueue方式进行异步处理。

2. Zookeeper服务端

   ZookeeperServer
        |
        |--- QuorumCnxManager
        |           |
        |           |---- RecvWorker
        |           |
        |           |---- SendWorker
        |
        |--- ZkWatcherManager
        |
        |--- RequestProcessors
        |
        |--- ZkDataBase(All in Memory)
                    |
                    |---- Load Data from Snapshot
                    |
                    |---- Sync Data from Leader
                    |
                    |---- Dump Data into disk

  服务器中移除处理是通过阻塞队列完成。

3. 客户端与服务端交互

 

技术分享

Zookeeper

原文:http://www.cnblogs.com/life91/p/4638746.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!