This process allows you to expand the persistent volumes used by the Apigee hybrid Cassandra
database to accommodate greater storage needs without needing to create new nodes just to provide
more storage.
The Apigee hybrid cassandra component uses persistent volumes to store data. The size
of the persistent volume is defined during installation and initial configuration. This initial
storage size is an immutable value and cannot be changed. Therefore, any new node added to the cluster
will use the same persistent volume size.
It is possible to increase the size of the existing persistent volume by making the changes directly on
the Persistent volume Claim, but new nodes will still use the smaller initial persistent volume size.
If your hybrid Cassandra database is nearing its storage capacity, you can use this procedure
to expand the existing persistent volumes and allow new nodes to expand their persistent volumes as
well.
Process
Before proceeding with the Persistent volume expansion, make sure "allowVolumeExpansion: true"
is set on the StorageClass when it is created:
kubectl get sc standard -o json | jq .allowVolumeExpansion true
Update the Volume size for the existing Persistent Volume Configuration (PVC):
kubectl -n apigee edit pvc
Delete the statefulset without cascading deletion:
Rolling restart the Cassandra pods to reflect the new size. Delete the Cassandra pods one at a
time. Verify that the statefulset is healthy before proceeding to the next nodes:
kubectl -n apigee delete pod apigee-cassandra-2
kubectl -n apigee get sts
NAME READY AGE
apigee-cassandra 3/3 64s
Verify the Cassandra pods are coming up with the new volume size:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-10 UTC."],[[["The Apigee hybrid documentation version 1.2 is end-of-life, and users should upgrade to a newer version for continued support and updates, as detailed in the supported versions documentation."],["You can expand the storage capacity of the Apigee hybrid Cassandra database by increasing the size of existing persistent volumes without needing to create new nodes for storage alone."],["To expand the persistent volume, ensure `allowVolumeExpansion` is set to true in the StorageClass, update the Persistent Volume Claim (PVC) size, and then update the overrides.yaml file with the new capacity."],["After updating the PVC and `overrides.yaml`, delete the Cassandra statefulset without cascading, apply the updated configuration, and then perform a rolling restart of the Cassandra pods to apply the changes."],["After all the changes are applied, verify the pods are correctly initialized and the new volume size is visible in the persistent volume claims."]]],[]]