Get started (free)

zoo.cfg properties

This is a reference page for zoo.cfg properties set by the operator.

Data directory properties

The following zoo.cfg properties control how ZooKeeper manages the files in its data directory. You can override them using configOverrides.

Property Unit Default set by the operator Description

dataDir

path

/stackable/data

The location where ZooKeeper stores the snapshots of its in-memory database and the transaction log of updates to that database.

autopurge.purgeInterval

hours

6

Time between cleanup runs. 0 disables auto-purge.

autopurge.snapRetainCount

count

3

Number of recent snapshots (and their transaction logs) to keep. Minimum 3.

snapSizeLimitInKb

KiB

102400 (= 100 MiB)

Take a snapshot after the log reaches roughly this size. A non-positive value disables this trigger.

preAllocSize

KiB

16384 (= 16 MiB)

Block size in which the transaction log file is pre-allocated.