allow smaller PVC templates when scaling vmstorage out
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- go, kubernetes
- Domain
- infrastructure
Research direction
Start by tracing how the operator reconciles vmstorage volumeClaimTemplate changes and handles PVC size decreases; the issue links #2512 for the behavior’s origin. Check the relevant reconciliation tests and add coverage for scaling from three 200Gi claims to six replicas with a 100Gi template. Done means existing claims remain unchanged, new claims use 100Gi, and reconciliation succeeds.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe
Summary
Allow VMCluster scale-out with smaller PVCs for new vmstorage replicas.
Use case
Let's say, I have three vmstorage replicas with 200Gi PVCs. To spread RAM and load across
more nodes, I want to scale to six replicas without increasing retained data.
New replicas need only 100Gi each. After one retention period, data will be
distributed over all six replicas. Using 200Gi for every new PVC would provision
900Gi total instead of the intended 600Gi: 300Gi unnecessarily.
Reproduction
- Create three vmstorage replicas with a 200Gi
volumeClaimTemplate. - Change the template to 100Gi and scale to six replicas.
Expected behavior
Keep the existing 200Gi PVCs unchanged and create 100Gi PVCs for new replicas.
Either treat smaller requests for existing PVCs as a no-op, or provide an
explicit option to permit heterogeneous PVC capacities during scale-out.
Actual behavior
The update fails because the operator tries to shrink existing PVCs:
cannot decrease PVC=... size from=200Gi to=100Gi, please check
VolumeClaimTemplate configuration: declined by the operator
Additional context
This behavior was introduced with #2512, which made
declined decreases fail reconciliation. I am not sure whether this should be a
bug report or a feature request. As a bug report, I would ask to revert #2512,
which I am fine with. Alternatively, an option for intentional heterogeneous
PVCs would be useful.
Describe the solution you'd like
See Additional context above
Describe alternatives you've considered
No response
Additional information
No response
- Dominant language
- Go
- Stars
- 603
- Forks
- 242
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 57
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from VictoriaMetrics/operator
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
VictoriaMetrics/operator#2854 ·
Maintainers usually reply within 1 day
-
VLAgent `spec.k8sCollector.includePodLabels: false` has no effectPossibly taken @Haleygo claimed this 25 days ago. Openbug waiting for release
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
VictoriaMetrics/operator#2772 · 1 assignee ·
Maintainers usually reply within 1 day
-
Bug: VMRule `spec.groups[].tenant` should accept an integer, not only a stringPossibly taken @megative claimed this 40 days ago. Openenhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
VictoriaMetrics/operator#2608 · 5 comments ·
Maintainers usually reply within 1 day
-
VMAlert datasource bearer token isn't documentedMay be free again @Haleygo claimed this 35 days ago, and no pull request is open. Opendocs
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
VictoriaMetrics/operator#2365 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
VictoriaMetrics/operator#2845 ·
Maintainers usually reply within 1 day
All issues in VictoriaMetrics/operator
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
slavakurilyak/awesome-ai-agents#1026 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
GetBatchResponseById panics for items without a body (204/302) and for unknown idsPossibly taken @0z5a claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
JuliusBrussee/caveman#1567 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100