-
Notifications
You must be signed in to change notification settings - Fork 337
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
koordlet: add GetNodeMetricSpec in statesInformer interface #2278
koordlet: add GetNodeMetricSpec in statesInformer interface #2278
Conversation
4a03d7f
to
737fa10
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2278 +/- ##
=======================================
Coverage 66.06% 66.06%
=======================================
Files 454 454
Lines 53405 53413 +8
=======================================
+ Hits 35281 35288 +7
Misses 15586 15586
- Partials 2538 2539 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
/lgtm
@j4ckstraw BTW, in which cases does the state informer need to export the NodeMetric? As it is an aggregated result, we usually fetch the metric resource from the metric cache instead. |
To support memoryCollectPolicy in #2273 (comment) |
@j4ckstraw This usage could be problematic. The metric advisor is the node metrics' data resource, so its collection should avoid depending on the node metrics due to circular reference. Perhaps, we can introduce the |
OK, I'll change the pr. |
c430447
to
f4f0d66
Compare
add func GetNodeMetricSpec, so we can get nodeMetricSpec conveniently by statesInformer interface Signed-off-by: j4ckstraw <[email protected]>
f4f0d66
to
53221fd
Compare
PTAL @saintube |
add func GetNodeMetricSpec, so we can get nodeMetricSpec conveniently by statesInformer interface
Ⅰ. Describe what this PR does
add GetNodeMetricSpec in statesInformer interface
prepare for #2273
Ⅱ. Does this pull request fix one issue?
Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist
make test