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
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
@@ -66,6 +66,7 @@ This document is auto-generated from the flag definitions in the VPA recommender
66
66
|`container-recommendation-max-allowed-memory`||| quantity Maximum amount of memory that will be recommended for a container. VerticalPodAutoscaler-level maximum allowed takes precedence over the global maximum allowed. |
67
67
|`cpu-histogram-decay-half-life`|| 24h0m0s | duration The amount of time it takes a historical CPU usage sample to lose half of its weight. |
68
68
|`cpu-integer-post-processor-enabled`||| Enable the cpu-integer recommendation post processor. The post processor will round up CPU recommendations to a whole CPU for pods which were opted in by setting an appropriate label on VPA object (experimental) |
69
+
|`enforce-cpu-memory-ratio`| float || If > 0, enforce a fixed memory-per-CPU ratio expressed as bytes per millicores across all recommendations. |
69
70
|`external-metrics-cpu-metric`| string || ALPHA. Metric to use with external metrics provider for CPU usage. |
70
71
|`external-metrics-memory-metric`| string || ALPHA. Metric to use with external metrics provider for memory usage. |
71
72
|`feature-gates`| mapStringBool || A set of key=value pairs that describe feature gates for alpha/experimental features. Options are:<br>AllAlpha=true\|false (ALPHA - default=false)<br>AllBeta=true\|false (BETA - default=false)<br>InPlaceOrRecreate=true\|false (BETA - default=true) |
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
@@ -40,6 +40,7 @@ var (
40
40
humanizeMemory=flag.Bool("humanize-memory", false, "DEPRECATED: Convert memory values in recommendations to the highest appropriate SI unit with up to 2 decimal places for better readability. This flag is deprecated and will be removed in a future version. Use --round-memory-bytes instead.")
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
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.`)
43
+
enforceCPUMemoryRatio=flag.Float64("enforce-cpu-memory-ratio", 0, `If > 0, enforce a fixed memory-per-CPU ratio expressed as bytes per millicores across all recommendations.`)
43
44
)
44
45
45
46
// PodResourceRecommender computes resource recommendation for a Vpa object.
0 commit comments