-
Notifications
You must be signed in to change notification settings - Fork 9
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
#991: LoadModel: Add API to calculate how many phases of past load data need to be kept #995
Conversation
I haven't figured out where to integrate this with the rest of the LB instrumentation and invocation infrastructure yet. |
Codecov Report
@@ Coverage Diff @@
## develop #995 +/- ##
===========================================
+ Coverage 77.62% 77.65% +0.02%
===========================================
Files 666 667 +1
Lines 25552 25613 +61
===========================================
+ Hits 19834 19889 +55
- Misses 5718 5724 +6
|
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 don't see the part of this that actually calls getNumPastPhasesNeeded
from NodeStats
. I assume that's coming.
@PhilMiller A couple notes:
|
So, |
And yeah, the omission in |
* \return How many phases of past load statistics will be needed to | ||
* satisfy the requested history | ||
*/ | ||
virtual int getNumPastPhasesNeeded(int look_back = 0) = 0; |
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.
Force caller to choose value?
Has "How many phases into the past.." yet most usages are max(other, look_back)
. Or perhaps "..the minimum number of phases.." or so?
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.
Might be useful to have an overall test capture.
096fcbd
to
8fdf45b
Compare
I'd like to see #1001 merged before this. Its testing was important in getting some of this right, and it carries some bug fixes of its own. |
Right now, this still only addresses |
1169bd7
to
0e91408
Compare
There's a limitation this change will impose on load balancing usage. The LB interval can't be shorter than the minimum look-back range that the models define, or the |
20c9288
to
72e0bfb
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.
Looks good to me
This is not a problem for the default configuration, using |
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.
Overall, this looks like a definite improvement to me.
The only thing lacking is incremental LB stat file output so the stats aren't lost from clearing them outside of the live window.
…called independent of LB running
…peatedly over WHOLE_PHASE
e4c1f97
to
7b2aa6b
Compare
Here is an overview of what got changed by this pull request: Clones added
============
- tests/unit/collection/test_model_raw_data.nompi.cc 3
Clones removed
==============
+ tests/unit/collection/test_model_persistence_median_last_n.nompi.cc -1
+ tests/unit/collection/test_model_linear_model.nompi.cc -1
See the complete overview on Codacy |
Fixes: #991