-
Notifications
You must be signed in to change notification settings - Fork 315
Add support for setting rlimit for contianer #280
Add support for setting rlimit for contianer #280
Conversation
|
drone failed. Needs gofmt. |
c64aa42 to
1cec3e6
Compare
|
Sorry, fixed. |
config.go
Outdated
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.
nit: spelling Cur out to Current is better readability karma :)
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.
Agreed... and possibly set it to "Hard" and "Soft" instead.
lmk if that's what we want.
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.
Hard and Soft sounds even better.
|
just a couple of nits. LGTM. |
1c55978 to
27a6d7a
Compare
config.go
Outdated
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 not have a pointer here for these values, they are small. Rlimits []Rlimit
Adds a new item to the config struct []*Rlimit Rlimit takes a type (ie, syscall.RLIMIT_NOFILE) and the hard/soft limit (As max/cur) Signed-off-by: Brian Goff <[email protected]>
27a6d7a to
e6cc8fc
Compare
|
Updated - Max/Soft set, using non-pointer for []Rlimit |
|
LGTM |
|
LGTM. |
Add support for setting rlimit for contianer
Adds a new item to the config struct []*Rlimit
Rlimit takes a type (ie, syscall.RLIMIT_NOFILE) and the hard/soft limit
(As max/cur)
My naive shot at adding support for setting rlimits.