Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grpc-js-xds: Do traffic splitting and routing in the resolver #1704

Conversation

murgatroid99
Copy link
Member

There are a few changes included in this PR:

  • Refactor some helper classes out of xds-client.ts into the directory xds-stream-state
  • Modify the XdsClient class to be a singleton shared by all channels. In particular, it no longer takes the resolver's ServiceConfig watcher in the constructor. Instead, the resolver now watches for LDS and RDS updates the same way the EDS and CDS load balancers watch for their corresponding updates.
  • Add traffic splitting and routing logic to the xDS resolver class, enabled by the environment variable GRPC_XDS_EXPERIMENTAL_ROUTING. It creates a ConfigSelector as implemented in grpc-js: Add ConfigSelector to Resolver API and plumb it through the channel #1681 and an XdsClusterManager as implemented in grpc-js-xds: Add XdsClusterManager LB policy #1687.

@murgatroid99
Copy link
Member Author

The xDS interop tests, including the newly enabled ones, passed at https://source.cloud.google.com/results/invocations/afea6480-f5fc-40bc-a228-2f5203b8fb1e/targets.

This PR includes the fixes from #1707 to get LRS working so that the load_report_based_failover test would pass.

@murgatroid99 murgatroid99 merged commit b2c4dcc into grpc:master Mar 22, 2021
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.

None yet

2 participants