Skip to content

Commit 1766fc2

Browse files
Jrmy2402jeremy.spriet
authored andcommitted
update AEP
1 parent 61e4f32 commit 1766fc2

File tree

1 file changed

+6
-2
lines changed
  • vertical-pod-autoscaler/enhancements/8459-memory-per-cpu

1 file changed

+6
-2
lines changed

vertical-pod-autoscaler/enhancements/8459-memory-per-cpu/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,12 @@ memory_bytes = cpu_cores * memoryPerCPU
8686
### Behavior
8787

8888
* 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.
9093
* 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.
9295

9396
### Feature Enablement and Rollback
9497

@@ -121,6 +124,7 @@ The `memoryPerCPU` feature requires VPA version 1.5.0 or higher. The feature is
121124
### Test Plan
122125

123126
* Unit tests ensuring ratio enforcement logic.
127+
* E2E tests comparing behavior with different configurations
124128

125129
## Implementation History
126130

0 commit comments

Comments
 (0)