Skip to content

Conversation

@voidzcy
Copy link
Contributor

@voidzcy voidzcy commented Dec 10, 2019

When XdsNameResolver starts, it instantiate an XdsClient instance to send out an xDS discovery RPC resolving cluster name for gRPC target. When a result found, return a ResolutionResult with service config containing cds_experimental as the load balancing config to the channel. The instantiated XdsClient instance is also passed as an ResolutionResult.Attributes to channel.

@voidzcy voidzcy force-pushed the impl/instantiate_xds_client_in_xds_resolver branch from b7e4ce6 to 4e933a1 Compare December 10, 2019 20:11
@voidzcy voidzcy force-pushed the impl/instantiate_xds_client_in_xds_resolver branch from 4e933a1 to 2596d97 Compare December 10, 2019 21:07
@voidzcy voidzcy force-pushed the impl/instantiate_xds_client_in_xds_resolver branch from 2596d97 to 8594106 Compare December 10, 2019 21:15
@voidzcy voidzcy marked this pull request as ready for review December 10, 2019 21:16
@voidzcy voidzcy requested a review from dapengzhang0 December 10, 2019 21:16
@voidzcy voidzcy force-pushed the impl/instantiate_xds_client_in_xds_resolver branch from ef6af6e to 10eec0c Compare December 12, 2019 00:04
Copy link
Contributor

@dapengzhang0 dapengzhang0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ericgribkoff Can you please run a staging test to see if it works before merging? With this PR the full XdsNameResolver -> LDS -> RDS -> CDS -> EDS flow will run. Previously only XdsNameresolver -> EDS.

Copy link
Contributor

@dapengzhang0 dapengzhang0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to merge.

@voidzcy voidzcy merged commit 1d35508 into grpc:master Dec 18, 2019
dapengzhang0 added a commit that referenced this pull request Jan 8, 2020
Incorporating comment #6504 (comment). Currently there is no cross-language resolver sending CDS config so there is no impact of the change.
@lock lock bot locked as resolved and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants