summaryrefslogtreecommitdiff
path: root/TWA-PIC/zookeeper/conf/zoo.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'TWA-PIC/zookeeper/conf/zoo.cfg')
-rw-r--r--TWA-PIC/zookeeper/conf/zoo.cfg51
1 files changed, 51 insertions, 0 deletions
diff --git a/TWA-PIC/zookeeper/conf/zoo.cfg b/TWA-PIC/zookeeper/conf/zoo.cfg
new file mode 100644
index 0000000..3b757fb
--- /dev/null
+++ b/TWA-PIC/zookeeper/conf/zoo.cfg
@@ -0,0 +1,51 @@
+# The number of milliseconds of each tick
+# Zookeeper 服务器之间或客户端与服务器之间维持心跳的时间间隔,也就是每个 tickTime 时间就会发送一个心跳。tickTime以毫秒为单位。
+tickTime=9000
+
+# The number of ticks that the initial synchronization phase can take
+# 集群中的follower服务器(F)与leader服务器(L)之间初始连接时能容忍的最多心跳数(tickTime的数量)。
+initLimit=10
+
+# The number of ticks that can pass between sending a request and getting an acknowledgement
+# 集群中的follower服务器与leader服务器之间请求和应答之间能容忍的最多心跳数(tickTime的数量)。
+syncLimit=5
+
+#ZooKeeper将会对客户端进行限流,系统中未处理的请求数量不超过设置的值。(default:1000)
+globalOutstandingLimit=1000
+
+# the maximum number of client connections.increase this if you need to handle more clients
+# socket级别限制单个客户端到ZooKeeper集群中单台服务器的并发连接数量.(default:60)
+maxClientCnxns=5000
+
+#忽略ACL验证,可以减少权限验证的相关操作,提升性能
+skipACL=yes
+
+#yes:每次写请求的数据都要从pagecache中固化到磁盘上,才算成功返回.后续写请求会等待前面写请求.
+#no:数据写到pagecache后就返回,提升性能,但是机器断电的时候,pagecache中的数据有可能丢失。
+forceSync=yes
+
+#当事务日志(WAL)中的fsync时间超过此值时,将向日志输出警告消息,需要forceSync为yes。
+fsync.warningthresholdms=20
+
+# the directory where the snapshot is stored.
+# do not use /tmp for storage, /tmp here is just example sakes.
+# Zookeeper保存数据的目录,默认情况下,Zookeeper将写数据的日志文件也保存在这个目录里。
+dataDir=/home/tsg/olap/zookeeper-3.4.10/data
+
+#Zookeeper保存日志文件的目录。
+dataLogDir=/home/tsg/olap/zookeeper-3.4.10/logs
+
+# the port at which the clients will connect
+#客户端连接 Zookeeper 服务器的端口
+clientPort=2181
+
+#指定需要保留的文件数目(default:3)
+autopurge.snapRetainCount=3
+
+#指定清理频率,单位为小时(default:0 表示不开启自动清理)
+autopurge.purgeInterval=1
+
+#the servers
+server.1=192.168.30.193:2888:3888
+server.2=192.168.30.194:2888:3888
+server.3=192.168.30.195:2888:3888