Skip to content

xds: Move cluster impl and outlier detection above priority - #13213

Open
becomeStar wants to merge 1 commit into
grpc:masterfrom
becomeStar:a75-move-cluster-impl-above-priority
Open

becomeStar wants to merge 1 commit into
grpc:masterfrom
becomeStar:a75-move-cluster-impl-above-priority

Conversation

@becomeStar

Copy link
Copy Markdown
Contributor

Summary

For non-aggregate CDS clusters, move xds_cluster_impl and optional outlier_detection_experimental above 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

  • CDS and cluster resolver tests cover the new LB hierarchy.
  • Outlier detection tests cover subchannel recreation for an already
    ejected endpoint and the resulting TRANSIENT_FAILURE notification

Refs #12430

A75: https://github.com/grpc/proposal/blob/master/A75-xds-aggregate-cluster-behavior-fixes.md

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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant