Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VirtualMachine overcommit factors #1289

Merged
merged 12 commits into from
Mar 7, 2025
Merged

Add VirtualMachine overcommit factors #1289

merged 12 commits into from
Mar 7, 2025

Conversation

sharnoff
Copy link
Member

@sharnoff sharnoff commented Feb 27, 2025

This commit adds a new VirtualMachine spec field: Overcommit, which contains resource.Quantity factors for CPU and memory to discount resource usage.

It's propagated to the runner via the vm.neon.tech/overcommit annotation, which the scheduler plugin and cluster-autoscaler respect, dividing resource usage by the VM's corresponding overcommit factor for that resource, if present.

The overcommit factors are also mutable.

Closes #517, supersedes #905.


Note: This PR builds on #1288 and must not be merged before it.

Copy link

github-actions bot commented Feb 27, 2025

No changes to the coverage.

HTML Report

Click to open

@sharnoff sharnoff requested review from a team and Omrigan and removed request for a team February 27, 2025 18:12
Base automatically changed from sharnoff/ca-fixup-patch to main February 28, 2025 12:26
This commit adds a new VirtualMachine spec field: Overcommit, which
contains resource.Quantity factors for CPU and memory to discount
resource usage.

It's propagated to the runner via the "vm.neon.tech/overcommit"
annotation, which the scheduler plugin and cluster-autoscaler respect,
dividing resource usage by the VM's corresponding overcommit factor for
that resource, if present.

The overcommit factors are also mutable.
Copy link
Contributor

@Omrigan Omrigan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, but still a few blocking questions.

@sharnoff sharnoff assigned Omrigan and unassigned sharnoff Mar 7, 2025
@sharnoff sharnoff requested a review from Omrigan March 7, 2025 09:21
Copy link
Contributor

@Omrigan Omrigan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, two comments.

@Omrigan Omrigan assigned sharnoff and unassigned Omrigan Mar 7, 2025
@sharnoff sharnoff enabled auto-merge (squash) March 7, 2025 17:43
@sharnoff sharnoff merged commit 10dabd0 into main Mar 7, 2025
35 checks passed
@sharnoff sharnoff deleted the sharnoff/overcommit-v2 branch March 7, 2025 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Epic: Enable overcommit
2 participants