zookeeper单机部署的配置及简单健康检查
2017-01-07 10:29
411 查看
单机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
相关文章推荐
- Zookeeper单机安装部署与配置(二)
- Windows 环境下 Zookeeper 单机 下载、配置、启动和简单命令
- Windows环境下solrCloud 6.x的配置安装(单机模拟多服务器) - zookeeper部署
- Zookeeper单机安装部署与配置(二)
- Zookeeper单机安装部署与配置(二)
- zookeeper的部署与配置(单机、模拟分布式、真正分布式)
- WDS+MDT+WAIK简单部署Win7之服务器端配置
- WDS+MDT+WAIK简单部署Win7之客户端配置
- Windows Mobile6.5开发(二)--配置环境,数据库访问,部署简单实例
- zookeeper入门(1)在单机上实现ZooKeeper伪机群/伪集群部署
- Hadoop HBase 单机环境简单配置教程
- ZooKeeper 的安装和配置---单机和集群
- AX负载均衡配置经验漫谈(1) - 健康检查 推荐
- 应用程序虚拟化初体验APP-V Management Server简单部署和配置
- zookeeper单机伪集群配置
- keepalived健康检查方式配置笔记
- openstack单机ubuntu虚拟机环境安装部署经验及源码结构简单介绍(适合入门者)
- Windows Mobile6.5开发(二)--配置环境,数据库访问,部署简单实例
- 应用程序虚拟化初体验 App-V Management Server简单部署与配置
- Windows Mobile6.5开发(二)--配置环境,数据库访问,部署简单实例