[WAGED Tag Isolation 8/16] Attribute a capacity deficit to the cliques that caused it - #288
Draft
LZD-PratyushBhatt wants to merge 1 commit into
Draft
LZD-PratyushBhatt wants to merge 1 commit into
LZD-PratyushBhatt wants to merge 1 commit into
Conversation
The cluster wide capacity check that runs before any placement is a tag blind sum, so one wildly oversubscribed clique can drag a dimension negative while every other clique still fits comfortably on its own nodes. Throwing there would freeze the whole cluster, which is what this mode exists to prevent. Walk the attribution blocks instead, set aside the ones whose own replicas cannot fit on their own nodes, and re-evaluate the deficit on what is left. The blocks set aside are carried over like any other failed group. A deficit that survives that, or a cluster that is one single block, still throws exactly as before. Only reachable on a path where the default mode has already decided to throw, so nothing changes for a cluster that fits.
LZD-PratyushBhatt
added this pull request to stack #297
September 20, 2026 05:46
LZD-PratyushBhatt
force-pushed
the
lzd/waged-iso-08-deficit
branch
from
September 20, 2026 13:25
21a9262 to
fbe1687
Compare
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.
Description
The cluster wide capacity check that runs before any placement is a tag blind sum, so one wildly oversubscribed clique can drag a dimension negative while every other clique still fits comfortably on its own nodes. Throwing there would freeze the whole cluster, which is what this mode exists to prevent.
Walk the attribution blocks instead, set aside the ones whose own replicas cannot fit on their own nodes, and re-evaluate the deficit on what is left. A deficit that survives that, or a cluster that is one single block, still throws exactly as before.
This completes the production code for the feature.
Stacked PR 8 of 16 of the WAGED instance tag isolation stack.
lzd/waged-iso-07-hookswaged-tag-based-isolation, which merges intodevat the endTests
Existing WAGED suites stay green. The attribution tests arrive in lzd/waged-iso-16-tests-capacity.
Changes that Break Backward Compatibility
None. The new cluster config flag defaults to false, and with it off every code path added here behaves exactly as it does today.
Documentation
The design doc lands in
lzd/waged-iso-13-docasdocs/design/002-waged-instance-tag-isolation.md.Code Quality
Formatted with helix-style.xml.