feat(rescheduling): gpuFragmentation strategy for single-pod GPU repacking - #10
Merged
pfernandes21 merged 1 commit intoAug 12, 2026
Conversation
…repacking Evicts at most one opted-in GPU pod per node pool whose departure empties its node of GPU work, after proving a strictly fuller node in the same pool passes resources and session predicates. The replacement is recreated by the pod's controller and scheduled normally; binpack scoring steers it to the fuller node. Dry-run by default; cooldown and per-PodGroup eviction caps are the anti-thrash mechanism, recorded durably on cluster objects before eviction.
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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.
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds a
gpuFragmentationstrategy to thereschedulingplugin, evicted via the existingshuffleaction, to reclaim GPU fragmentation on delphi (e.g.3/8+1/8nodes that never re-pack after neighbours finish). Volcano binpacks only at arrival; nothing re-optimizes running pods. This strategy deschedules — the pod's controller recreates the replacement and normal allocate + binpack scoring places it on the fuller node. Nothing is pinned or bound by the strategy.Per interval (rescheduling plugin's existing
intervalplumbing), per node pool (karpenter.sh/nodepool), it selects at most one victim:dryRun: trueby default — logs the would-be move and evicts nothing. In live mode, the cooldown clock and PodGroup eviction count are patched durably before returning the victim; a failed stamp aborts the move, so budgets can never be overspent across scheduler restarts.This replaces the controller-side repacker in exa-labs/monorepo#125619: doing it in-session reuses the real predicates/scoring instead of reimplementing them, at the cost of running inside vc-scheduler.
Enabling on delphi needs a scheduler config change (separate monorepo PR):
Which issue(s) this PR fixes:
NONE
Special notes for your reviewer:
shuffleevicts whateverVictimTasksreturns; the strategy therefore caps itself (maxVictims: 1cluster-wide by default) and one victim per pool.nodespatch andpodgroupspatch; the strategy fails closed (skips the move) without it.Does this PR introduce a user-facing change?
Link to Devin session: https://app.devin.ai/sessions/6351ff07ed074c55a521b26d6af34c1b
Requested by: @pfernandes21