Repository navigation
Conversation
…n the Helm chart Render worker.persistentVolumeClaimRetentionPolicy into the worker statefulset(s) when set. With PVC-backed worker storage and autoscaling, the Kubernetes default (Retain) leaves every scaled-in worker's volumes behind. Empty by default, so default rendering is unchanged. README explains the trade-off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Add
worker.persistentVolumeClaimRetentionPolicy. When set, it is rendered as-is into the worker StatefulSet(s) (including the per-zone StatefulSets ofworker.zoneAwareReplication), e.g.:The chart README gets a "Scaled-in workers keep their volumes" section under autoscaling.
Why are the changes needed?
A StatefulSet keeps the PVCs of pods it scales in, by Kubernetes default. With PVC-backed worker storage (
worker.volumeClaimTemplates) and worker autoscaling, every scale-in leaves that worker's volumes behind, still billed and holding expired shuffle data, until someone deletes them by hand. A rolling restart is not a scale-in, sowhenScaled: Deletestill lets a restarted worker find its volumes.Does this PR resolve a correctness bug?
Does this PR introduce any user-facing change?
Retainfor both) and the rendered manifests unchanged.How was this patch tested?
helm unittest charts/celeborn --file "tests/**/*_test.yaml" --strict: 157 of 157 pass, including 2 new tests (not set by default; rendered as given).helm templatewith default values is byte-identical tomain.whenScaled: Delete, whenDeleted: Retain: scaled-in workers' gp3 PVCs are deleted automatically, while restarts keep them.🤖 Generated with Claude Code