-
Notifications
You must be signed in to change notification settings - Fork 51
ciao-deploy: enable memory limits by default #1540
Conversation
@kaccardi see @markdryan's comment on #1539 "Let's only enable limits for memory for now. The concept of disk limits is currently broken, see #1541." |
53ffe1d
to
3a1d6c0
Compare
@kaccardi Thanks for the update. The changes in ciao-deploy lgtm. However do you know if we need to disable in singlevm. Could you also update the commit message (i see you've updated the PR description already.) |
3a1d6c0
to
8476826
Compare
@rbradford I confirmed you do not need to disable memory in single vm, so I removed that. |
ciao-deploy/deploy/setup.go
Outdated
config.Configure.Launcher.DiskLimit = false | ||
config.Configure.Launcher.MemoryLimit = false | ||
if clusterConf.DisableLimits { |
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 can't see how this has any effect. By default,
config.Configure.Launcher.MemoryLimit = false
When we supply --disable-limits it will still be false.
Should this be
if !clusterConf.DisableLimits {
config.Configure.Launcher.MemoryLimit = true
}
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.
or simply
config.Configure.Launcher.MemoryLimit = !clusterConf.DisableLimits
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 swear this was tested... but you are right, this doesn't do anything. I must have broken something when I was doing some quick adjustment. will fix, sorry.
Enable memory limit checking by launcher by default, and only disable if --disable-limits is passed to ciao-deploy setup. Signed-off-by: Kristen Carlson Accardi <[email protected]>
8476826
to
fc67855
Compare
Enable memory limit checking by launcher by default,
and only disable if --disable-limits is passed to ciao-deploy setup.
Fixes: #1539
Signed-off-by: Kristen Carlson Accardi [email protected]