Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.59 KB

File metadata and controls

55 lines (43 loc) · 1.59 KB

Storage and resource configuration

Storage for data volumes

You can mount volumes where data is stored by specifying PersistentVolumeClaims for each individual role group:

servers:
  roleGroups:
    default:
      config:
        resources:
          storage:
            data:
              capacity: 2Gi

In 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.

Resource requests

home:concepts:stackable_resource_requests.adoc

A minimal HA setup consisting of 3 ZooKeeper instances has the following resource requirements:

  • 1350m CPU request

  • 3900m CPU limit

  • 1920m memory request and limit

  • 3072Mi persistent 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.