As the existing technologies of synchronizing data in distributed environment all lack of effective control to process against exceptions such as node failure, connection loss and so on, this paper suggests synchronizing data based on ZooKeeper service, which is capable of handling aforementioned exceptions automatically. This paper conducts experiments to evaluate ZooKeeper synchronizing performance and control capability, which demonstrates ZooKeeper service effectiveness in synchronizing data in distributed environment.%针对现有分布式环境下的数据同步技术缺乏有效控制机制来处理节点失效、同步失败等异常情况的特点,文章提出了基于ZooKeeper服务进行分布式环境下的数据同步架构.通过利用ZooKeeper提供的服务以自动处理上述同步异常.文章从同步速度、异常处理等方面进行了同步性能测试,实验数据分析表明该架构具有良好的控制机制,能较好地提高异常处理的自动化程度,从而获得较高的数据同步性能.
展开▼