feat(vm): impl corefraction auto#2654
Closed
yaroslavborbat wants to merge 1 commit into
Closed
Conversation
yaroslavborbat
force-pushed
the
feat/vm/auto-corefraction
branch
3 times, most recently
from
July 15, 2026 20:06
d619110 to
ccaf3b8
Compare
yaroslavborbat
force-pushed
the
feat/vm/auto-corefraction
branch
from
July 16, 2026 06:12
af5a312 to
d90c847
Compare
yaroslavborbat
marked this pull request as ready for review
July 16, 2026 07:01
yaroslavborbat
requested review from
Isteb4k,
fl64,
goganat,
nevermarine,
universal-itengineer and
z9r5
as code owners
July 16, 2026 07:01
yaroslavborbat
force-pushed
the
feat/vm/auto-corefraction
branch
from
July 16, 2026 07:19
ad37f01 to
b3399ce
Compare
Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
yaroslavborbat
force-pushed
the
feat/vm/auto-corefraction
branch
from
July 16, 2026 07:43
b3399ce to
63ba937
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds vertical CPU autoscaling for virtual machines. Setting
spec.cpu.coreFraction: "auto"lets the VM automatically adjust its CPU share to real load: the fraction is raised when the VM is starved and lowered when it's idle, so users no longer have to size CPU by hand or over-provision to be safe.Recommendations are produced by the stock VPA recommender, while the VM controller applies them in-place — the fraction changes without evicting the pod or restarting the VM. Autoscaling stays within the Burstable QoS range; opting back to a fixed
100%share is an explicit, restart-bearing action.This is an EE feature, available only when both the
VerticalVirtualMachineAutoscalerandHotplugCPUAndMemoryWithInPlaceResizefeature gates are enabled.Why do we need it, and what problem does it solve?
Picking the right
coreFractionmanually is guesswork: too low starves the VM, too high wastes cluster capacity. Automatic scaling keeps the CPU share matched to actual usage without user intervention and without VM downtime.What is the expected result?
Enable both feature gates, then set
spec.cpu.coreFraction: "auto"on a VM. Its CPU requests track the load — growing under pressure, shrinking when idle — with changes applied in-place. Setting an explicit percentage disables autoscaling for that VM.Checklist
Changelog entries