Skip to content

Scale sets: health-aware admission and shared resource budgets #955

Open

Description

@promptinprod

Problem

Per-scale-set limits cannot enforce a resource budget shared by several scale sets using the same provider. Admission must account for pending and active allocations before accepting new work, while preserving lifecycle processing for existing jobs.

This relates to #204 and #213. Contribution owner: @promptinprod.

Proposed upstream contract

  • Explicit opt-in, with existing default behavior preserved.
  • Durable, transactional resource reservations shared across participating scale sets.
  • Health and administrative drain checked before new authorization.
  • Uncertain acquisition, creation and deletion outcomes retained until authoritative reconciliation.
  • Job completion and confirmed resource cleanup treated separately.
  • Started/completed events processed even when new admission is closed.

The public scale-set client distinguishes capacity advertisement, acquisition and lifecycle messages. A zero-capacity request does not by itself prove revocation of an earlier advertisement. Compatibility and recovery semantics require explicit validation for the supported protocol.

Implementation proposals: #959 handles lifecycle events during acquisition failure; #960 adds experimental VM accounting; #961 and #962 cover experimental job-capacity ownership. These remain proposals for upstream review, with documented limitations and no claim of live failover or production readiness.

Validation uses synthetic broker/provider fixtures and isolated SQLite/PostgreSQL databases. No deployment-specific configuration is required to reproduce the unit tests.

Activity

  1. changed the title [-]Scale sets: opt-in admission before job acquisition[/-] [+]Scale sets: health-aware admission and shared resource budgets[/+] on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions