Skip to content

[Feature Request] Add support for CPU/Memory ratio constraint in VPAย #8354

@Jrmy2402

Description

@Jrmy2402

Which component are you using?:
/area vertical-pod-autoscaler

Describe the solution you'd like:
Iโ€™m wondering if there is any interest in adding a feature to Vertical Pod Autoscaler (VPA) to allow users to define a constraint or ratio between CPU and Memory resources (for example, always keep a 1:2 CPU:RAM ratio).

Additional context:
Currently, VPA provides recommendations for CPU and Memory independently, based on observed usage. However, in some use cases (for example, when workloads require a fixed ratio between CPU and RAM for optimal performance or licensing reasons), it would be useful to ensure that VPA maintains a specific ratio between these resources.

Questions:
Has this feature been discussed before?
Would other users find it valuable to have a way to configure a CPU:Memory ratio in VPA recommendations?
Are there known workarounds or best practices in the community for enforcing such a constraint today?

If there is community interest, Iโ€™d be happy to discuss use cases and possible implementation approaches.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions