-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Conversation
xds/internal/balancer/lrs/lrs.go
Outdated
Node: node, | ||
}); err != nil { | ||
} |
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.
Nit: Could this be in a single line.
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.
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) |
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 doesn't have "lrs" prefix?
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 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") |
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.
Same here? Is this expected?
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.
Same as above.
xds/internal/balancer/lrs/lrs.go
Outdated
req := &lrspb.LoadStatsRequest{ | ||
ClusterStats: ls.buildStats(clusterName), | ||
}); err != nil { | ||
} |
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.
Same here. Single line.
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.
Done
No description provided.