-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat(components/memory): use common db + dmesg poller for events, move out of "dmesg" component #324
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #324 +/- ##
==========================================
+ Coverage 21.21% 21.39% +0.18%
==========================================
Files 300 300
Lines 27089 27119 +30
==========================================
+ Hits 5747 5803 +56
+ Misses 20697 20667 -30
- Partials 645 649 +4 ☔ View full report in Codecov by Sentry. |
78ce5c9
to
8767ed5
Compare
i think for dmesg errors that contains multiple lines to determine actually issue (like oom), its the best if we can aggregate it, but might make gpud logic too complicated |
oh if they actually belong to different OOM event,s then i think its totally fine not aggregating them |
The name should not be |
4977fca
to
9dff6f3
Compare
components/memory/component.go
Outdated
3*24*time.Hour, | ||
) | ||
if err != nil { | ||
ccancel() |
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.
it is a bit strange to cancel on error. Do we really need to create a cctx, ccancel := context.WithCancel(ctx)
? Can we just use ctx for getDefaultPoller().Start and startWatch(cctx, eventsStore)?
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.
creating event store first, so we don't need call ccancel
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.
@cardyok do you have any idea how to make the ctx usage look better?
@ccding All fixed, thx |
…e out of "dmesg" component Signed-off-by: Gyuho Lee <[email protected]>
Signed-off-by: Gyuho Lee <[email protected]>
c.f., #322
Tested: