Commit Graph

9 Commits

Author SHA1 Message Date
Tsubasa Nagasawa 8e8979c91a Fix typos in the metric name for VPA In-Place update
Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>
2025-05-13 08:53:04 +09:00
Max Cao 6ebeb83f1d
VPA: Allow updater to actuate InPlaceOrRecreate updates
Introduces large changes in the updater component to allow InPlaceOrRecreate mode.
If the feature gate is enabled and the VPA update mode is InPlaceOrRecreate, the updater will attempt an in place update by first
checking a number of preconditions before actuation (e.g., if the pod's qosClass would be changed, whether we are already in-place resizing,
whether an in-place update may potentially violate disruption(previously eviction) tolerance, etc.).
After the preconditions are validated, we send an update signal to the InPlacePodVerticalScaling API with the recommendation, which may or may not fail.
Failures are handled in subsequent updater loops.

As for implementation details, patchCalculators have been re-used from the admission-controllers code for the updater in order to calculate recommendations for the updater to actuate.
InPlace logic has been mostly stuffed in the eviction package for now because of similarities and ease (user-initated API calls eviction vs. in-place; both cause disruption).
It may or may not be useful to refactor this later.

Signed-off-by: Max Cao <macao@redhat.com>
2025-05-08 14:38:54 -07:00
John Kyros 2af23c885b
VPA: Add metrics gauges for in-place updates
We might want to add a few more that are combined disruption counters,
e.g. in-place + eviction totals, but for now just add some separate
counters to keep track of what in-place updates are doing.
2025-05-08 14:38:36 -07:00
Adrian Moisey a142467cde
VPA - run golangci-lint 2025-02-01 15:41:56 +02:00
Karol Gołąb ff25eb5ce0 Make getVpaSizeLog2 public and move it to top-level metrics package 2020-05-28 16:32:06 +02:00
Karol Gołąb 3c4e68934f Fixes after code review. 2020-05-28 16:19:11 +02:00
Karol Gołąb 64d7c6ff81 Add bunch of metrics to monitor VPA Updater impact in a cluster. 2020-05-12 17:22:59 +02:00
Karol Gołąb a115fe69bd Add metrics for execution time of RunOnce 2018-08-07 16:39:35 +02:00
Karol Gołąb 5656b19e53 Add metrics to VPA 2018-08-07 13:53:05 +02:00