Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Press ENTER or type command to continue
  2.   1 # the basic time unit in milliseconds used by ZooKeeper.
  3.   2 # It is used to do heartbeats and the minimum session timeout will be twice the tickTime
  4.   3 tickTime=2000
  5.   4
  6.   5 # the location to store the in-memory database snapshots and,
  7.   6 # unless specified otherwise, the transaction log of updates to the database
  8.   7 dataDir=/tmp/zookeeper
  9.   8
  10.   9 # the port to listen for client connections
  11.  10 clientPort=2181
  12.  11
  13.  12 # running ZooKeeper in replicated mode
  14.  13 # A replicated group of servers in the same application is called a quorum
  15.  14
  16.  15 # initLimit is timeouts ZooKeeper uses to limit the length of time the ZooKeeper
  17.  16 # servers in quorum have to connect to a leader.
  18.  17 #initLimit=5
  19.  18
  20.  19 # syncLimit limits how far out of date a server can be from a leader
  21.  20 #syncLimit=2
  22.  21
  23.  22 # server.x - list the servers that make up the ZooKeeper service
  24.  23 # When server starts up, it knows which server it is by looking for the file x in the data directory.  
  25.  24 # port1:port2
  26.  25 #   - port1 is used for peers to connect to other peers, zk use this port to connect followers to the leader
  27.  26 #     When a new leader arises, a follower opens a TCP connection to the leader using this port.
  28.  27 #   - port2 used to elect leaders
  29.  28 #server.1=zoo1:2888:3888
  30.  29 #server.2=zoo2:2888:3888
  31.  30 #server.3=zoo3:2888:3888
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement