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
flag.StringVar(&cf.VpaObjectNamespace, "vpa-object-namespace", apiv1.NamespaceAll, "Specifies the namespace to search for VPA objects. Leave empty to include all namespaces. If provided, the garbage collector will only clean this namespace.")
46
46
flag.StringVar(&cf.IgnoredVpaObjectNamespaces, "ignored-vpa-object-namespaces", "", "A comma-separated list of namespaces to ignore when searching for VPA objects. Leave empty to avoid ignoring any namespaces. These namespaces will not be cleaned by the garbage collector.")
Copy file name to clipboardExpand all lines: vertical-pod-autoscaler/docs/flags.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,8 @@ This document is auto-generated from the flag definitions in the VPA admission-c
16
16
|`--client-ca-file`| "/etc/tls-certs/caCert.pem" | Path to CA PEM file. |
17
17
|`--feature-gates`|| A set of key=value pairs that describe feature gates for alpha/experimental features. Options are: |
18
18
|`--ignored-vpa-object-namespaces`|| A comma-separated list of namespaces to ignore when searching for VPA objects. Leave empty to avoid ignoring any namespaces. These namespaces will not be cleaned by the garbage collector. |
19
-
|`--kube-api-burst`|10| QPS burst limit when making requests to Kubernetes apiserver |
20
-
|`--kube-api-qps`|5| QPS limit when making requests to Kubernetes apiserver |
19
+
|`--kube-api-burst`|100| QPS burst limit when making requests to Kubernetes apiserver |
20
+
|`--kube-api-qps`|50| QPS limit when making requests to Kubernetes apiserver |
21
21
|`--kubeconfig`|| Path to a kubeconfig. Only required if out-of-cluster. |
22
22
|`--log-backtrace-at`| :0 | when logging hits line file:N, emit a stack trace |
23
23
|`--log-dir`|| If non-empty, write log files in this directory (no effect when -logtostderr=true) |
@@ -73,8 +73,8 @@ This document is auto-generated from the flag definitions in the VPA recommender
73
73
|`--history-resolution`| "1h" | Resolution at which Prometheus is queried for historical metrics |
74
74
|`--humanize-memory`|| Convert memory values in recommendations to the highest appropriate SI unit with up to 2 decimal places for better readability. |
75
75
|`--ignored-vpa-object-namespaces`|| A comma-separated list of namespaces to ignore when searching for VPA objects. Leave empty to avoid ignoring any namespaces. These namespaces will not be cleaned by the garbage collector. |
76
-
|`--kube-api-burst`|10| QPS burst limit when making requests to Kubernetes apiserver |
77
-
|`--kube-api-qps`|5| QPS limit when making requests to Kubernetes apiserver |
76
+
|`--kube-api-burst`|100| QPS burst limit when making requests to Kubernetes apiserver |
77
+
|`--kube-api-qps`|50| QPS limit when making requests to Kubernetes apiserver |
78
78
|`--kubeconfig`|| Path to a kubeconfig. Only required if out-of-cluster. |
79
79
|`--leader-elect`|| Start a leader election client and gain leadership before executing the main loop. Enable this when running replicated components for high availability. |
80
80
|`--leader-elect-lease-duration`| 15s | The duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot. This is effectively the maximum duration that a leader can be stopped before it is replaced by another candidate. This is only applicable if leader election is enabled. |
@@ -93,7 +93,7 @@ This document is auto-generated from the flag definitions in the VPA recommender
93
93
|`--memory-histogram-decay-half-life`| 24h0m0s | The amount of time it takes a historical memory usage sample to lose half of its weight. In other words, a fresh usage sample is twice as 'important' as one with age equal to the half life period. |
94
94
|`--memory-saver`|| If true, only track pods which have an associated VPA |
95
95
|`--metric-for-pod-labels`| "up{job=\"kubernetes-pods\"}" | Which metric to look for pod labels in metrics |
96
-
|`--min-checkpoints`| 10 | Minimum number of checkpoints to write per recommender's main loop |
96
+
|`--min-checkpoints`| 10 | Minimum number of checkpoints to write per recommender's main loop. WARNING: this flag is deprecated and doesn't have any effect. It will be removed in a future release. Refer to update-worker-count to influence the minimum number of checkpoints written per loop.|
97
97
|`--one-output`|| If true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true) |
98
98
|`--oom-bump-up-ratio`| 1.2 | The memory bump up ratio when OOM occurred, default is 1.2. |
99
99
|`--oom-min-bump-up-bytes`| 1.048576e+08 | The minimal increase of memory when OOM occurred in bytes, default is 100 * 1024 * 1024 |
@@ -121,6 +121,7 @@ This document is auto-generated from the flag definitions in the VPA recommender
|`--target-cpu-percentile`| 0.9 | CPU usage percentile that will be used as a base for CPU target recommendation. Doesn't affect CPU lower bound, CPU upper bound nor memory recommendations. |
123
123
|`--target-memory-percentile`| 0.9 | Memory usage percentile that will be used as a base for memory target recommendation. Doesn't affect memory lower bound nor memory upper bound. |
124
+
|`--update-worker-count`| 10 | Number of concurrent workers to update VPA recommendations and checkpoints. When increasing this setting, make sure the client-side rate limits (kube-api-qps and `kube-api-burst`) are either increased or turned off as well. Determines the minimum number of VPA checkpoints written per recommender loop. |
124
125
|`--use-external-metrics`|| ALPHA. Use an external metrics provider instead of metrics_server. |
125
126
|`--username`|| The username used in the prometheus server basic auth |
126
127
|`--v`| 4 | Set the log level verbosity |
@@ -142,8 +143,8 @@ This document is auto-generated from the flag definitions in the VPA updater cod
142
143
|`--feature-gates`|| A set of key=value pairs that describe feature gates for alpha/experimental features. Options are: |
143
144
|`--ignored-vpa-object-namespaces`|| A comma-separated list of namespaces to ignore when searching for VPA objects. Leave empty to avoid ignoring any namespaces. These namespaces will not be cleaned by the garbage collector. |
144
145
|`--in-recommendation-bounds-eviction-lifetime-threshold`| 12h0m0s | Pods that live for at least that long can be evicted even if their request is within the [MinRecommended...MaxRecommended] range |
145
-
|`--kube-api-burst`|10| QPS burst limit when making requests to Kubernetes apiserver |
146
-
|`--kube-api-qps`|5| QPS limit when making requests to Kubernetes apiserver |
146
+
|`--kube-api-burst`|100| QPS burst limit when making requests to Kubernetes apiserver |
147
+
|`--kube-api-qps`|50| QPS limit when making requests to Kubernetes apiserver |
147
148
|`--kubeconfig`|| Path to a kubeconfig. Only required if out-of-cluster. |
148
149
|`--leader-elect`|| Start a leader election client and gain leadership before executing the main loop. Enable this when running replicated components for high availability. |
149
150
|`--leader-elect-lease-duration`| 15s | The duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot. This is effectively the maximum duration that a leader can be stopped before it is replaced by another candidate. This is only applicable if leader election is enabled. |
// Because we have 2 concurrent workers, expect 2 VPAs to get processed. Each worker picks a VPA to process before checking if the context has been cancelled.
244
+
// Each VPA has 2 Containers, therefore we expect 4 Checkpoints to be written
245
+
assert.Equal(t, 4, len(patchedCheckpoints), "Expected 4 checkpoints to be written, but got %d", len(patchedCheckpoints))
memorySaver=flag.Bool("memory-saver", false, `If true, only track pods which have an associated VPA`)
68
+
updateWorkerCount=flag.Int("update-worker-count", 10, "Number of concurrent workers to update VPA recommendations and checkpoints. When increasing this setting, make sure the client-side rate limits (`kube-api-qps` and `kube-api-burst`) are either increased or turned off as well. Determines the minimum number of VPA checkpoints written per recommender loop.")
68
69
)
69
70
70
71
// Prometheus history provider flags
@@ -142,6 +143,11 @@ func main() {
142
143
klog.ErrorS(nil, "--vpa-object-namespace and --ignored-vpa-object-namespaces are mutually exclusive and can't be set together.")
143
144
os.Exit(255)
144
145
}
146
+
147
+
if*routines.MinCheckpointsPerRun!=10 { // Default value is 10
148
+
klog.InfoS("DEPRECATION WARNING: The 'min-checkpoints' flag is deprecated and has no effect. It will be removed in a future release.")
0 commit comments