File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
vertical-pod-autoscaler/enhancements/8459-memory-per-cpu Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,12 @@ memory_bytes = cpu_cores * memoryPerCPU
86
86
### Behavior
87
87
88
88
* If both CPU and memory are controlled, VPA enforces the ratio.
89
- * Applies to Target, LowerBound, UpperBound, and UncappedTarget.
89
+ * Applies to Target, LowerBound, UpperBound, and UncappedTarget.
90
+ * Ratio enforcement is strict:
91
+ * If the memory recommendation would exceed ` cpu * memoryPerCPU ` , then ** CPU is increased** to satisfy the ratio.
92
+ * If the CPU recommendation would exceed ` memory / memoryPerCPU ` , then ** memory is increased** to satisfy the ratio.
90
93
* If ratio cannot be applied (e.g., missing CPU), fallback to standard recommendations.
91
- * With feature gate OFF: recommendations are unaffected .
94
+ * With the ` MemoryPerCPURatio ` feature gate disabled, the ` memoryPerCPU ` field is ignored and recommendations fall back to standard VPA behavior .
92
95
93
96
### Feature Enablement and Rollback
94
97
@@ -121,6 +124,7 @@ The `memoryPerCPU` feature requires VPA version 1.5.0 or higher. The feature is
121
124
### Test Plan
122
125
123
126
* Unit tests ensuring ratio enforcement logic.
127
+ * E2E tests comparing behavior with different configurations
124
128
125
129
## Implementation History
126
130
You can’t perform that action at this time.
0 commit comments