Skip to content

Add opt-in experimental VM resource admission - #960

Draft
promptinprod wants to merge 2 commits into
cloudbase:mainfrom
promptinprod:feat/dynamic-admission
Draft

promptinprod wants to merge 2 commits into
cloudbase:mainfrom
promptinprod:feat/dynamic-admission

Conversation

@promptinprod

@promptinprod promptinprod commented Nov 13, 2026 •

Copy link
Copy Markdown

Refs #955. Depends on #959. Keep as a draft for upstream review.

Add opt-in vm-only-experimental resource 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.

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.
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.

1 participant