[ 
https://issues.apache.org/jira/browse/SPARK-55496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dongjoon Hyun updated SPARK-55496:
----------------------------------
    Priority: Major  (was: Trivial)

> Support reuse of scaled PVCs
> ----------------------------
>
>                 Key: SPARK-55496
>                 URL: https://issues.apache.org/jira/browse/SPARK-55496
>             Project: Spark
>          Issue Type: Improvement
>          Components: Kubernetes
>    Affects Versions: 4.2.0
>            Reporter: Filip Darmanovic
>            Priority: Major
>              Labels: features, pull-request-available
>
> Most cloud providers today provide kubernetes storageClasses with 
> allowVolumeExpansion set to true. This, paired with a PVC monitoring and 
> scaling service like the [Kubernetes Volume 
> Autoscaler|[https://github.com/DevOps-Nirvana/Kubernetes-Volume-Autoscaler]] 
> allows the user to provision PVCs that can expand with growing storage 
> requirements, saving costs by not over-provisioning. This expansion is done 
> by simply increasing the storage request in the PVC's definition.
> This approach however, presents a problem in the current code base, as there 
> is a check in the replacePVCsIfNeeded function that matches the desired size 
> with the existing pod definition, which would suddenly be ineligible for 
> re-use after being expanded.
> I propose a simple 1-character change that would allow disks with the same 
> *or greater* size to be re-used. I will shortly make a PR with this change.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to