You can mount volumes where data is stored by specifying PersistentVolumeClaims for each individual role group:
servers:
roleGroups:
default:
config:
resources:
storage:
data:
capacity: 2GiIn the above example, all ZooKeeper nodes in the default group will store data (the location of the property dataDir) on a 2Gi volume.
You can also configure which StorageClass to use, consult the resources docs to learn more.
home:concepts:stackable_resource_requests.adoc
A minimal HA setup consisting of 3 ZooKeeper instances has the following resource requirements:
-
1350mCPU request -
3900mCPU limit -
1920mmemory request and limit -
3072Mipersistent storage
Corresponding to the values above, the operator uses the following resource defaults:
servers:
roleGroups:
default:
config:
resources:
memory:
limit: '512Mi'
cpu:
min: '200m'
max: '800m'
storage:
data:
capacity: '1Gi'ZooKeeper’s JVM heap size is set automatically to 80% of the configured memory.limit.