Skip to content

Comments

Check and auto-resize dedupe index disk space#3188

Open
ikreymer wants to merge 9 commits intomainfrom
coll-index-disk-resize
Open

Check and auto-resize dedupe index disk space#3188
ikreymer wants to merge 9 commits intomainfrom
coll-index-disk-resize

Conversation

@ikreymer
Copy link
Member

@ikreymer ikreymer commented Feb 20, 2026

Automatically resize the PVC volume used for dedupe index, based on usage.
Uses two thresholds (currently hard-coded):

  • the USED_DISK_THRESHOLD, when to resize
  • the USED_DISK_TARGET, what to adjust to.
    Eg. if resize threshold is 75%, and min ratio threshold is 50%, the PVC volume is resize if more than 75% is used and set such that only 50% is used.
    Current disk size is also stored in the collection, so that when loading the index from S3, it can be properly resize as well (using the above parameters).
    The desired target is rounded up to the nearest GB, and used disk is rounded up and capacity rounded down (for setting status)

Note: only works for kvrocks, and may need an option to disable, as certain k8s system (Docker for Mac) may not report the PVC size correctly.

@ikreymer ikreymer requested a review from tw4l February 20, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant