You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -54,6 +55,22 @@ To enable this feature, set the --round-cpu-millicores flag when running the VPA
54
55
--round-cpu-millicores=50
55
56
```
56
57
58
+
## Memory Recommendation Rounding
59
+
60
+
VPA can provide Memory recommendations rounded up to user-specified values, making it easier to interpret and configure resources. This feature is controlled by the `--round-memory-bytes` flag in the recommender component.
61
+
62
+
When enabled, Memory recommendations will be:
63
+
- Rounded up to the nearest multiple of the specified bytes value
64
+
- Applied to target, lower bound, and upper bound recommendations
65
+
66
+
For example, with `--round-memory-bytes=134217728`, a memory recommendation of `200Mi` would be rounded up to `256Mi`, and a recommendation of `80Mi` would be rounded up to `128Mi`.
67
+
68
+
To enable this feature, set the `--round-memory-bytes` flag when running the VPA recommender:
Copy file name to clipboardExpand all lines: vertical-pod-autoscaler/docs/flags.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,7 @@ This document is auto-generated from the flag definitions in the VPA recommender
118
118
|`recommender-interval`|| 1m0s | duration How often metrics should be fetched |
119
119
|`recommender-name`| string | "default" | Set the recommender name. Recommender will generate recommendations for VPAs that configure the same recommender name. If the recommender name is left as default it will also generate recommendations that don't explicitly specify recommender. You shouldn't run two recommenders with the same name in a cluster. |
120
120
|`round-cpu-millicores`| int | 1 | CPU recommendation rounding factor in millicores. The CPU value will always be rounded up to the nearest multiple of this factor. |
121
+
|`round-memory-bytes`| int | 1 | Memory recommendation rounding factor in bytes. The Memory value will always be rounded up to the nearest multiple of this factor. |
121
122
|`skip-headers`||| If true, avoid header prefixes in the log messages |
122
123
|`skip-log-headers`||| If true, avoid headers when opening log files (no effect when -logtostderr=true) |
123
124
|`stderrthreshold`| severity | : info | set the log level threshold for writing to standard error |
Copy file name to clipboardExpand all lines: vertical-pod-autoscaler/pkg/recommender/logic/recommender.go
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,7 @@ var (
39
39
confidenceIntervalMemory=flag.Duration("confidence-interval-memory", time.Hour*24, "The time interval used for computing the confidence multiplier for the memory lower and upper bound. Default: 24h")
40
40
humanizeMemory=flag.Bool("humanize-memory", false, "Convert memory values in recommendations to the highest appropriate SI unit with up to 2 decimal places for better readability.")
41
41
roundCPUMillicores=flag.Int("round-cpu-millicores", 1, `CPU recommendation rounding factor in millicores. The CPU value will always be rounded up to the nearest multiple of this factor.`)
42
+
roundMemoryBytes=flag.Int("round-memory-bytes", 1, `Memory recommendation rounding factor in bytes. The Memory value will always be rounded up to the nearest multiple of this factor.`)
42
43
)
43
44
44
45
// PodResourceRecommender computes resource recommendation for a Vpa object.
0 commit comments