Repository navigation
feat(proxy): multi-key subset selection - #166
Merged
Merged
Conversation
A request carrying N subset headers now routes to endpoints matching ALL N dimensions (intersection) or fails: the cluster's selectors grow from singletons to the power set of the service's derived keys (deterministic order, NO_FALLBACK throughout), capped at 4 combining keys per service (3 + 2^4 = 17 selectors max; extra keys select individually). This also closes the hole where a multi-header request matched no selector and silently rode the ANY_ENDPOINT fallback. ip/pod stay singleton pins by design — they identify one endpoint, so combining them with metadata dimensions is void; mixing a pin with subset headers is a documented client error (falls back to normal balancing). The pin selectors gain single_host_per_subset (direct host index instead of per-value subset maps; ip and pod are unique per host). No filter/ECDS changes: header_to_metadata already emits each present header independently; criteria compose at the router. Co-Authored-By: Claude Opus 4.8 <[email protected]>
bpalermo
force-pushed
the
feat/multikey-subsets
branch
from
June 12, 2026 22:56
ede0d24 to
124e75e
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.
Stacked on #165 (will retarget to main after it merges — base branch kept until then).
ip/podremain singleton pins, never combined (per design discussion); they gainsingle_host_per_subset.🤖 Generated with Claude Code