当前位置:   article > 正文

Zookeeper集群搭建_zookeeper.request.timeout

zookeeper.request.timeout

本文为Zookeeper伪集群搭建,步骤如下

1、下载apache-zookeeper-3.6.2-bin.tar.gz安装包。放上连接:Zookeeper下载地址

2、上传到服务器并解压: tar -zxvf  apache-zookeeper-3.6.2-bin.tar.gz

3、创建配置文件:进入apache-zookeeper-3.6.2-bin/conf,复制zoo_sample.cfg为zoo.cfg(单机启动配置)

其内容主要如下:

# The number of milliseconds of each tick  心跳评率 默认为2s
tickTime=2000
# The number of ticks that the initial 
# synchronization phase can take    follower连接leader时,心跳次数 ,即2*10=20s,在20s以后都无法检测到正常连接,视为连接失败
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement   leader和follower进行心跳检测的延时,  2*5=10
syncLimit=5
# the directory wher

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/article/detail/54052
推荐阅读
相关标签
  

闽ICP备14008679号