
zookeeper
DavidSoCool
路漫漫其修远兮,吾将上下而求索
展开
-
zookeeper watch 实现原理笔记
zk三种注册监听方式:getData(),exists,getChildren。 客户端发送的监听请求会放到队列中(outgoingQueue),队列会有一个 sendThread 处理,sendThread 通过发送 path 路径和 watcher 为 true ,到 server 注册 watch 事件。 zk服务端会有一个 WatchManger 该类中有 HashMap<String,HashSet<Watcher>> watchTable ,key为path , Wa原创 2020-05-09 13:13:41 · 515 阅读 · 0 评论 -
虚拟机搭建zookeeper集群服务(Center OS 7)
操作系统:center os 7 软件:jdk8、zookeepe-3.5.5 jdk安装、关闭防火墙:https://blog.youkuaiyun.com/DavidSoCool/article/details/93491850 zookeeper下载地址:https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.5.5/ ...原创 2019-07-23 09:38:59 · 1058 阅读 · 0 评论 -
springboot + dubbo + zookeeper集群
准备工作:zookeeper集群部署https://blog.youkuaiyun.com/DavidSoCool/article/details/96431181 创建一个maven-archetype-quickstart 一直next,工程名和Artifactid一样就行了,直接finish 项目结构: 在新建一个maven-archetype-quickstart,用做接口jar...原创 2019-07-25 16:11:15 · 5543 阅读 · 4 评论 -
虚拟机搭建kafka集群(Center OS 7)
操作系统:center os 7 软件:jdk8、zookeepe-3.5.5、kafka2.2.0 zookeeper集群部署:https://blog.youkuaiyun.com/DavidSoCool/article/details/96431181 kafka下载地址:https://www.apache.org/dyn/closer.cgi?path=/kafka/2.2.0/kafka_2...原创 2019-08-21 13:28:45 · 808 阅读 · 0 评论