-
Notifications
You must be signed in to change notification settings - Fork 304
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
HPCC-32770 Soapcall stats for DNS, connect, num failures #19183
Conversation
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-32770 Jirabot Action Result: |
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.
@mckellyln looks good, a couple of minor comments.
common/thorhelper/thorsoapcall.cpp
Outdated
// TODO: for DNS, do we use timeoutMS or remainingMS or remainingMS / maxRetries+1 or ? | ||
ep.set(connUrl.host.get(), connUrl.port, master->timeoutMS); | ||
|
||
master->logctx.noteStatistic(StTimeSoapcallDNS, dnsTimer.elapsedNs()); |
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.
Worth assigning elapsedNs to a temporary and then dividing for the next one to avoid an extra call to get_cycles_now?
Actually, probably better to record Ns in the span - that is what the general stat processing does.
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.
I thought about that so just one call. I can do that.
But for the Span - its just an attribute so I didn't think any processing was done on it ?
Do you mean use "Ns" label in the Span attribute as well and then use the same value as the stat ?
system/jlib/jstatcodes.h
Outdated
@@ -311,6 +311,11 @@ enum StatisticKind | |||
StNumMatchRightRowsMax, | |||
StNumMatchCandidates, | |||
StNumMatchCandidatesMax, | |||
StTimeSoapcallDNS, // Time spent in DNS lookups for soapcalls | |||
StTimeSoapcallConn, // Time spent in connect[+SSL_connect] for soapcalls |
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.
Connect would be better than Conn (since this is seen by the user)
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.
Sure. I was just trying to save some chars.
@ghalliday thx, updated for re-review. |
3c7b6a2
to
db33ba1
Compare
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.
@mckellyln please squash. Merging it may be slightly tricky because of a potential clash with changes in other PRs. How important is it that this goes in 9.6.x? I know it could be very valuable.
Squashed. |
I will merge once #19190 is merged and this is rebased on top of that. |
Signed-off-by: M Kelly <[email protected]>
Type of change:
Checklist:
Smoketest:
Testing: