Repository navigation
Add opt-in experimental VM resource admission - #960
Draft
promptinprod wants to merge 2 commits into
Draft
promptinprod wants to merge 2 commits into
promptinprod wants to merge 2 commits into
Conversation
Process existing job events before returning an acquisition error. Keep the message unacknowledged, and cover terminal-state replay with the real SQL store. Fixes cloudbase#956.
Reserve and bind shared resource charges transactionally before provider creation. Bind health and lifecycle evidence to one approved backend and retain uncertain allocations. Refs cloudbase#955. Depends on cloudbase#959; job assignment admission remains out of scope.
This was referenced Nov 13, 2026
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.
Refs #955. Depends on #959. Keep as a draft for upstream review.
Add opt-in
vm-only-experimentalresource accounting in GARM's database. Reservations bind transactionally to instances; creation checks fresh provider readiness and consumes one authorization. Drain intent persists across restart. Unknown create/delete outcomes retain their charges, and release requires identity-bound cleanup evidence.The optional provider implementation is cloudbase/garm-provider-incus#40. Its public protocol and compatibility constraints are documented in this contribution. Defaults remain unenrolled.
Limitations: the initial runtime supports a homogeneous scale-set resource class, no traditional pools or min-idle, and no job-assignment gating or automatic rerouting. Job-capacity work is proposed separately in #962.
Validation: Go race tests, lint, SQLite/PostgreSQL concurrency and migration tests, and executable consumer/provider interoperability against synthetic HTTP fixtures passed during development. These tests do not establish live provisioning or production readiness. Maintainer review and compatible releases remain outstanding.