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

xds: add temporary logging to LRS #3490

Merged
merged 2 commits into from Apr 2, 2020
Merged

Conversation

menghanl
Copy link
Contributor

No description provided.

Node: node,
}); err != nil {
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Could this be in a single line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -44,9 +44,11 @@ func (c *Client) ReportLoad(server string, clusterName string, loadStore lrs.Sto
cc *grpc.ClientConn
closeCC bool
)
c.logger.Infof("Starting load report to server: %s", server)
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't have "lrs" prefix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is logging with the logger, from the xds_client. It's going to have prefix "xds-client".

This is where things are getting inconsistent. I will need to refactor LRS to support multiple clusters. The logs in this PR are temporary.

if server == "" || server == c.opts.Config.BalancerName {
cc = c.cc
} else {
c.logger.Infof("LRS server is different from xDS server, starting a new ClientConn")
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here? Is this expected?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as above.

Comment on lines 373 to 375
req := &lrspb.LoadStatsRequest{
ClusterStats: ls.buildStats(clusterName),
}); err != nil {
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here. Single line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@easwars easwars assigned menghanl and unassigned easwars Apr 2, 2020
@menghanl menghanl merged commit fe1d8e7 into grpc:master Apr 2, 2020
@menghanl menghanl deleted the xds_lrs_logging branch April 2, 2020 23:55
menghanl added a commit that referenced this pull request Apr 3, 2020
@easwars easwars added this to the 1.29 Release milestone Apr 8, 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.

None yet

2 participants