Zookeeper???????????ù??????????
???????????? ???????[ 2015/11/17 13:33:38 ] ?????????????????? ???ù???
????1??????????
?????ο?http://www.ibm.com/developerworks/cn/opensource/os-cn-zookeeper/index.html????????????????ù???????
???????????ù????Configuration Management??
???????????????????????????????????????????÷?????仯???????????е???????????л??????ó???????????????ó????????????????
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????
???????ù??????Щ?????“???????????”?????????????????????zk?????????????????????????????????????????????????????????????????????????б?????????á?
???????????????
????1. ????????????л?????????????zk???Щ??????????????????????á? 2. ???????????????????洢????Щ??????2-3????????
????3. ???????????Щ??????????й????????????????????????????Σ?????????????????Watcher?????????????и??£?????????????????????????
????4. ?????????????????Щ?????????????Щ????м???????????????и?offset?????offset?????zk???????????????????????????????????????
????5. ??????Щ???????????????????????????????????????????????????????????????JMX????????zk????????Щ???????zk???????ɡ?
????2?????????
????a???????????????????????
????b????????????????????????????????????????????????????????????????
????3?????????
????????zookeeper??????????????????????????? Zookeeper ???????????У????????????????????????????????????????????????????仯??????????????? Zookeeper ?????????? Zookeeper ????μ???????????????С?
????a??znode??·?????????????????????
????b??znode???????????????????????????????У?????????
????c??znode?????????????????????????????????????????????????
????zookeeper??е?????????????洢?????????????watch??????????????????????????????——????????????????????????????????????
????a?????е?Web?????????????????????????????????????????????
????b??Java????????????????
????c??C++??????????????
????4???????
????5 ????洢??
????3 ????xml????????????
????5??????
????a??????????????????????
????b???????????????
????c?????÷????洢??????????
????6?????
??????????ConfMng??????xml?????????zk????????????????map?????????????????????????????
????// ????xml??keyvalue????Map
????abstract public Map<??? ?> parserXML();
?????????????÷??????£?
???????ConfMng?????parserXML();??????????????
?????????????????ù??????????????xml????????????????????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11