Skip to main content
Version: 5.16

Management Center Persistence

Management Center collect and report metrics data for the connected Hazelcast Clusters. Metrics data includes various number of time series, such as CPU load, memory consumption, and operation counters. See the Metrics section for details about configuring metrics collection.

By default, Management Center persists the collected metrics to a persistent volume. You can turn it off by disabling persistence.

Configuring Management Center Persistence​

Configuration for Management Center persistence.

FieldDescription
persistence.enabledWhen true, Management Center will use a PersistentVolumeClaim to store data.
persistence.sizeSize of the created PersistentVolumeClaim.
persistence.existingVolumeClaimNameName of the PersistentVolumeClaim MC will use for persistence. If not empty, MC will use the existing claim instead of creating a new one.
persistence.storageClassStorageClass from which PersistentVolumeClaim will be created.
warning

StatefulSet does not support updates to volumeClaimTemplates field, so persistence field should be set only at the creation of the custom resource. Any update to the persistence field will not affect the Management Center.

note

By default, Management Center data is persisted to the /data directory. If you want to use an existing PersistentVolumeClaim, set its name in the .spec.persistence.existingVolumeClaimName field in the Management Center custom resource.

Example Configuration​

The example configuration does the following:

  • Assigns Kubernetes Persistent Volume with size of 10Gi
Example Management Center with Persistence Configuration
yaml
apiVersion: hazelcast.com/v1alpha1
kind: ManagementCenter
metadata:
name: managementcenter
spec:
repository: "hazelcast/management-center"
licenseKeySecretName: hazelcast-license-key
hazelcastClusters:
- address: hazelcast
name: dev
persistence:
enabled: true
size: 10Gi