Repository navigation
xds: Move cluster impl and outlier detection above priority - #13213
Open
becomeStar wants to merge 1 commit into
Open
becomeStar wants to merge 1 commit into
becomeStar wants to merge 1 commit into
Conversation
Move xds_cluster_impl and optional outlier_detection above the priority policy for each non-aggregate cluster, as required by A75. This lets outlier detection operate across all priorities within a leaf cluster instead of tracking each priority independently. Preserve cluster-level configuration, including EDS drop policies. Update CDS and cluster resolver tests to assert the new hierarchy. Defer ejection notifications for newly created subchannels until their listeners are started, so a child LB can recreate a subchannel for an ejected endpoint without losing that state. Cover this behavior with an outlier detection regression test. Refs grpc#12430
This branch has not been deployed
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.
Summary
For non-aggregate CDS clusters, move
xds_cluster_impland optionaloutlier_detection_experimentalabove the priority policy. Priority children now contain endpoint policies, while the aggregate CDS hierarchy remains unchanged.Preserve cluster-level configuration, including EDS drop policies.
Also defer ejection notifications for newly created subchannels until their listeners are started, so a subchannel recreated for an already ejected endpoint receives
TRANSIENT_FAILURE.Remove the redundant second ejection call during subchannel creation.
Motivation
A75 places cluster-level policies above priority so they can operate across all priorities within a leaf cluster. The previous Java hierarchy created separate cluster impl and outlier detection policies for each priority.
The tests verify the new policy hierarchy and ejection behavior when a child LB recreates a subchannel for the same endpoint. They do not simulate an end-to-end priority migration.
Tests
ejected endpoint and the resulting
TRANSIENT_FAILUREnotificationRefs #12430
A75: https://github.com/grpc/proposal/blob/master/A75-xds-aggregate-cluster-behavior-fixes.md