Detailed explanation of zoo file configuration in zookeeper configuration file conf directory

  • clientPort: The port number that the client tries to connect to the server (external service port) is usually 2181
  • dataDir: The directory where snapshot files are stored. (directory where data is stored)
  • dataLogDir: transaction log storage location (where log information is placed)
  • tickTime: A time unit in ZK. Other time settings are based on this, and set in integer multiples (that is, a time unit, in ms). Note: The session timeout time is twice the tickTime.
  • initLimit: When the Follower (slave server) starts, the Leader (master server) allows the maximum response time of the Follower (that is, the timeout time for the Leader to connect to the Follower)
  • syncLimit: The leader (master server) detects that the status of the Follower (slave server) in the cluster is the longest time that the Follower (slave server) is allowed to respond (that is, the longest effective response time when communicating between servers)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324541844&siteId=291194637