-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[STORM-820] Aggregate topo stats on nimbus, not ui #554
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
Conversation
|
This pull request requires some more scrutiny because of its size and to make sure it does not break functionality. Goals for this PR
EDIT to add:
|
3d3c2b7 to
a16b50c
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.
I would prefer to have the name log somewhere in the function name. perhaps log-pprint
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'll rename it.
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.
Why not pull the value out in the for's binding vector?
(for [[k v] idk->exec-avg]
[k {:executeLatencyTotal (weight-avg k v)
:processLatencyTotal (weight-avg k v)
:executed v}]))))
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.
Whoops. Nevermind. Totally missed that the maps were different.
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'd rather see "600" def'd somewhere.
|
Review comments should be addressed. |
|
Addressed review comments |
|
+1 |
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 could result in a null dispatch value if the component's heartbeat does not contain metrics. We should be using the :type directly instead of accessing it via :stats.
|
Debugging a corner case we found today... |
|
Handled some corner cases when the worker process crashes such that executor heartbeats have no metrics data. |
|
Leaving a comment here for now: the key here should be |
|
This needs to be upmerged with the nimbus-ha changes |
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.
Please fix, only a time stamp change.
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.
Why is there a "\n" before logging the message?
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 think it was to clean up the output. Otherwise the data structure would not begin on its own line but instead begin after the timestamp, etc., and so that was not "pretty."
|
For the most part this looks good. My only comment would be to update the REST API docs to describe what the new APIs are like. And did you change time to errorTime in the JSON response? |
Good catch. Updated API doc with a note on the name change. |
|
Thanks for the update I am +1 on the change now. The aggregation code is a bit complex, but I cannot think of any way to make it less complex right now. |
|
@d2r please upmerge. The code still looks great but it looks like upSecs and a debug were added into the results. I really want to get this in, as it will speed up page loads a lot. |
|
ok working on it |
|
OK, I upmerged, and then had to upmerge again right after that. I double-checked that uptimeSeconds appear in the places they should, and that I was able to change the log level for a worker running ExclamationTopology. |
|
Still +1 |
No description provided.