-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce wait time between resizes #296
Comments
Maybe a generic fix here is:
that way no resizing is queued up while one is already pending. thoughts on that idea? |
@ushitora-anqou Should pvc-autoresizer do
right now it seems as though this project does.
|
@mohammed-uddin pvc-autoresizer/internal/runners/pvc_autoresizer.go Lines 195 to 207 in f2fee52
The kubelet_volume_stats_capacity_bytes metrics values are stored in the PVC's resize.topolvm.io/pre_capacity_bytes annotation, and the expanding process should be skipped until these metrics values change. There may be unexpected behavior hidden there, so could you please check how the annotations and metrics are changing in your environment?
|
@llamerada-jp You're right, thanks for the clarification. |
What should the feature do:
Re-opening this issue: #274
What is use case behind this feature:
Bringing this back to life.
I've got the same issue.
Say I have a threshold of 10%. And I increase capacity by 3Gi up to a max of 50Gi.
My pvc uses 91% of the storage so as expected a resize occurs. My new capacity is 13GI.
1 hour later my pvc once again fills up beyond 90%. The resizer attempts to scale up my PVC to 16Gi but because I'm using Amazon's storageClass this is not permitted for another 5 hours (1 resize per 6 hours). Say my controller has an interval of 30 second. So 30 seconds later the pvc-resizer sees that I'm using more than 90% and attempts a resize again this time 19Gi. This process repeats again and now I'm 22Gi. This keeps happening until I've scaled up to 50Gi of storage. After the 6 hour mark from the initial resize the resize applies and now I'm stuck with a giant 50Gi pvc.
The text was updated successfully, but these errors were encountered: