|
| 1 | +# |
| 2 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 3 | +# or more contributor license agreements. See the NOTICE file |
| 4 | +# distributed with this work for additional information |
| 5 | +# regarding copyright ownership. The ASF licenses this file |
| 6 | +# to you under the Apache License, Version 2.0 (the |
| 7 | +# "License"); you may not use this file except in compliance |
| 8 | +# with the License. You may obtain a copy of the License at |
| 9 | +# |
| 10 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +# |
| 12 | +# Unless required by applicable law or agreed to in writing, |
| 13 | +# software distributed under the License is distributed on an |
| 14 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | +# KIND, either express or implied. See the License for the |
| 16 | +# specific language governing permissions and limitations |
| 17 | +# under the License. |
| 18 | +# |
| 19 | + |
| 20 | +# The number of milliseconds of each tick |
| 21 | +tickTime=2000 |
| 22 | + |
| 23 | +# The number of ticks that the initial |
| 24 | +# synchronization phase can take |
| 25 | +initLimit=10 |
| 26 | + |
| 27 | +# The number of ticks that can pass between |
| 28 | +# sending a request and getting an acknowledgement |
| 29 | +syncLimit=30 |
| 30 | + |
| 31 | +# the directory where the snapshot is stored. |
| 32 | +dataDir=data/zookeeper |
| 33 | + |
| 34 | +# where txlog are written |
| 35 | +dataLogDir=data/zookeeper/txlog |
| 36 | + |
| 37 | +# the port at which the clients will connect |
| 38 | +clientPort=2181 |
| 39 | + |
| 40 | +# the port at which the admin will listen |
| 41 | +adminPort=9990 |
| 42 | +zookeeper.admin.enableServer=true |
| 43 | + |
| 44 | +# limit on queued clients - default: 1000 |
| 45 | +globalOutstandingLimit=1000 |
| 46 | + |
| 47 | +# number of transactions before snapshots are taken - default: 100000 |
| 48 | +snapCount=100000 |
| 49 | + |
| 50 | +# the maximum number of client connections. |
| 51 | +# increase this if you need to handle more clients |
| 52 | +# |
| 53 | +# - 0==unlimited |
| 54 | +maxClientCnxns=100 |
| 55 | + |
| 56 | +# Election implementation to use. A value of "0" corresponds to the original |
| 57 | +# UDP-based version, "1" corresponds to the non-authenticated UDP-based |
| 58 | +# version of fast leader election, "2" corresponds to the authenticated |
| 59 | +# UDP-based version of fast leader election, and "3" corresponds to TCP-based |
| 60 | +# version of fast leader election. Currently, only 0 and 3 are supported, |
| 61 | +# 3 being the default |
| 62 | +electionAlg=3 |
| 63 | + |
| 64 | +# Leader accepts client connections. Default value is "yes". The leader |
| 65 | +# machine coordinates updates. For higher update throughput at thes slight |
| 66 | +# expense of read throughput the leader can be configured to not accept |
| 67 | +# clients and focus on coordination. |
| 68 | +leaderServes=yes |
| 69 | + |
| 70 | +# Skips ACL checks. This results in a boost in throughput, but opens up full |
| 71 | +# access to the data tree to everyone. |
| 72 | +skipACL=no |
| 73 | + |
| 74 | +# Be sure to read the maintenance section of the |
| 75 | +# administrator guide before turning on autopurge. |
| 76 | +# |
| 77 | +# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance |
| 78 | +# |
| 79 | +# The number of snapshots to retain in dataDir |
| 80 | +autopurge.snapRetainCount=3 |
| 81 | + |
| 82 | +# Purge txn logs every hour. Before 3.4.x this was done with an external cron |
| 83 | +# job, now we can do it internally. |
| 84 | +# |
| 85 | +# Set to "0" to disable auto purge feature |
| 86 | +autopurge.purgeInterval=1 |
| 87 | + |
| 88 | +# Prior to version 3.4 ZooKeeper has always used NIO directly, however in |
| 89 | +# versions 3.4 and later Netty is supported as an option to NIO (replaces). |
| 90 | +# serverCnxnFactory=org.apache.zookeeper.server.NIOServerCnxnFactory |
| 91 | + |
| 92 | +# zookeeper cluster |
| 93 | + |
| 94 | +standaloneEnabled=true |
| 95 | +# ZooKeeper Dynamic Reconfiguration |
| 96 | +# See: https://zookeeper.apache.org/doc/trunk/zookeeperReconfig.html |
| 97 | +# |
| 98 | +# standaloneEnabled=false |
| 99 | +# dynamicConfigFile=/path/to/zoo.cfg.dynamic |
| 100 | +# |
| 101 | +dynamicConfigFile=conf/zookeeper.conf.dynamic |
0 commit comments