| # ZooKeeper configuration file |
| |
| # 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. |
| # If not defined here, set by Zookeeper service to somewhere in the SMILA workspace dir. |
| # dataDir=/home/userXYZ/ramdisk/snapshots |
| |
| # The directory where the transaction log is stored. |
| # If not defined here, set by Zookeeper service to the same value as dataDir |
| # dataLogDir=/home/userXYZ/ramdisk/txnlogs |
| |
| # After snapCount transactions are written to a log file a snapshot is started and a new transaction log file is created. |
| # The default snapCount is 100,000. We reduce it to save space if ZK data is written to a RAM disk. |
| snapCount=50000 |
| |
| # The port at which the clients will connect. |
| clientPort=2181 |
| |
| # Session timeout. |
| maxSessionTimeout=30000 |
| |
| # Limit on number of concurrent connections (at the socket level) that |
| # a single client, identified by IP address, may make to a single member of |
| # the ZooKeeper ensemble. Default is 10. Set high to avoid zk connection |
| # issues running standalone and pseudo-distributed. |
| # (0 -> unlimited) |
| maxClientCnxns=0 |
| |
| # The port used by followers to connect to the leader. |
| zk.serverPort=2888 |
| |
| # The port for leader election. |
| zk.electionPort=3888 |
| |
| # number of snapshots to keep in data directory. |
| zk.snapshotsToKeep=3 |