zookeeper单机部署的配置及简单健康检查
来源:互联网 发布:java获取方法执行时间 编辑:程序博客网 时间:2024/05/21 09:00
单机zoo.cfg配置----------------
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/data/zookeeperdata
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
maxClientCnxns=10
crontab定时检测配置-------------
*/2 * * * * sh /root/script/startZK.sh
startZK.sh---------------------
if test $(pgrep -f zookeeper|wc -l) -eq 0
then
echo "zookeeper 未启动"
echo "zookeeper 启动中..."
cd /data/zookeeper/bin
./zkServer.sh start
echo "zookeeper 启动完成"
else
echo "zookeeper 已启动"
fi
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/data/zookeeperdata
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
maxClientCnxns=10
crontab定时检测配置-------------
*/2 * * * * sh /root/script/startZK.sh
startZK.sh---------------------
if test $(pgrep -f zookeeper|wc -l) -eq 0
then
echo "zookeeper 未启动"
echo "zookeeper 启动中..."
cd /data/zookeeper/bin
./zkServer.sh start
echo "zookeeper 启动完成"
else
echo "zookeeper 已启动"
fi
0 0
- zookeeper单机部署的配置及简单健康检查
- zookeeper单机部署
- zookeeper的部署与配置(单机、模拟分布式、真正分布式)
- Windows环境下solrCloud 6.x的配置安装(单机模拟多服务器) - zookeeper部署
- Zookeeper单机安装部署与配置(二)
- Dubbo的Zookeeper单机配置和Zookeeper集群配置
- 服务篇---zookeeper集群的部署及配置
- zookeeper配置单机版
- zookeeper 单机配置
- zookeeper单机部署伪集群
- zookeeper单机多实例和分布式部署的步骤
- Zookeeper介绍及简单配置
- centos6.5环境下zookeeper-3.4.6集群环境部署及单机部署详解
- zookeeper的单机多实例配置和分布式配置
- Zookeeper简单应用(单机)
- keepalived HTTP_GET健康检查配置
- Keepalived健康检查方式配置
- Tengine健康检查模块配置
- 多看代码
- qduoj 数组中出现最多的元素(补)
- App检测更新
- Tkinter的基本用法
- tomcat-jdbc Pool 源码实现简单分析
- zookeeper单机部署的配置及简单健康检查
- Android 多Module(组件)开发
- 使用http.sys,让delphi 的多层服务飞起来
- git常用命令
- 纯css使用transform实现同心圆导航栏菜单
- 如何使用 javascript 查找字符串中出现次数最多的字符
- Intellij 快捷键
- JDK动态代理
- Java设计模式(25)总结:结构型设计模式