-
Notifications
You must be signed in to change notification settings - Fork 3.9k
xds: support multiple xDS servers in bootstrap file #6493
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
xds: support multiple xDS servers in bootstrap file #6493
Conversation
|
|
||
| /** | ||
| * Returns the URI the traffic director to be connected to. | ||
| * Returns the list of connection configurations for traffic directors to be connected to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
connection configurations is too specific, and is only true for the current user. Should be xDS server information
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to "Returns the list of xDS servers to be connected to.". General enough.
| throw new IOException("Invalid bootstrap: 'channel_creds' contains unknown type."); | ||
| List<Map<String, ?>> serverConfigList = JsonUtil.checkObjectList(rawServerConfigs); | ||
| for (Map<String, ?> serverConfig : serverConfigList) { | ||
| // Field "server_uri" is required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is redundant. The throwing exception is self-explaining.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deleted.
In the future, the xDS bootstrap may provides multiple xDS server, with each has its own server URI and channel credential configurations. gRPC client will try to connect to them one by one until found the first reachable one. For now, we only support using the first one.
In this PR:
XdsClientIImplto take in a list of management servers.