-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Added an oom monitor to manager #522
Conversation
Can one of the admins verify this patch? |
ok to test |
5d528a4
to
648820e
Compare
@@ -623,3 +625,28 @@ func (self *manager) watchForNewContainers(quit chan error) error { | |||
}() | |||
return nil | |||
} | |||
|
|||
func (self *manager) watchForNewOoms() error { | |||
outStream := make(chan *oomparser.OomInstance) |
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.
Lets make this a buffered channel, we can start with 10? See how that goes :)
Added some small comments. Let me know when those are addressed :) |
cf62dfe
to
3a4519d
Compare
} | ||
err = oomLog.StreamOoms(outStream) | ||
if err != nil { | ||
glog.Errorf("error streaming OOMs: %v", err) |
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.
here we can return the error
3a4519d
to
e542ff0
Compare
LGTM |
0f8623a
to
3856690
Compare
Added an oom monitor to manager
No description provided.