Skip to content

Conversation

@ericgribkoff
Copy link
Contributor

One more fix for this. server_id is actually unused in OSS, the client's rpc service should report the distribution by server hostname instead.

@menghanl

case r := <-watcher.c:
if r != nil {
watcher.rpcsByPeer[(*r).GetServerId()]++
watcher.rpcsByPeer[(*r).GetHostname()]++
Copy link
Contributor

Choose a reason for hiding this comment

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

Will we need to handle server_id for other purposes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will likely need to incorporate server_id when using this client for our internal (grpclbv2) tests; on GCP, using hostname is convenient since hostname=VM instance name. Will revisit once this framework is brought in for use with the internal-only tests.

@menghanl menghanl merged commit 2cd9da6 into grpc:master Feb 28, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants