首页  

zookeeper四字命令conf结果说明     所属分类 zookeeper 浏览量 990
telnet 之后输入 conf 或 echo conf|nc localhost 2181

clientPort=2182
dataDir=/Users/dugang/soft/apps/zkcluster/z1/data/version-2
dataLogDir=/Users/dugang/soft/apps/zkcluster/z1/data/version-2
tickTime=2000
maxClientCnxns=60
minSessionTimeout=4000
maxSessionTimeout=40000
serverId=1
initLimit=10
syncLimit=5
electionAlg=3
electionPort=4182
quorumPort=3182
peerType=0


客户端端口
数据以及日志路径
间隔单位时间
单台server与单个client端的连接数限制
超时时间
serverId 

initLimit 
follower(F)与leader(L)之间初始连接时能容忍的最多心跳数(tickTime个数)
Follower从Leader同步所有数据后才能提供服务
initLimitTime =  tickTime * initLimit

syncLimit
Leader向Follower发送心跳 , syncLimit 个 tickTime 时间之后未收到响应 ,认为 Follower 已经挂了
syncLimitTime = tickTime * syncLimit

electionPort 选举端口
quorumPort  仲裁端口 leader 才会启动

peerType 节点类型  
leader follower  0 
observer 1
public enum LearnerType {
        PARTICIPANT, OBSERVER;
    }

PARTICIPANT 参与投票的  0
OBSERVER 1



mntr 四字命令
zk_server_state 
standalone leader followerobserver  

 zookeeper常用运维命令  

上一篇     下一篇
Jedis的几种使用方式

zookeeper节点属性中的三个zxid

Springboot注入ApplicationContext的几种方式

Zookeeper四字命令

降级 限流 熔断 简单理解

kafka在zookeeper中的元数据