Andrew Bogott has submitted this change and it was merged. Change subject: Change ram_allocation_ratio to 1.0 ......................................................................
Change ram_allocation_ratio to 1.0 Historically we have permitted RAM overcommitting, but it never actually happened. Recently, labvirt1010 did overcommit RAM (~500Gb committed, 377 Gb used) and the results were bad -- instances were spontaneously shutdown to free up RAM. History suggests that a 1.2 ratio (or even 1.3) could be safe in most cases -- but for now let's make the conservative choice: 1.0 Bug: T140119 Change-Id: Iaca1a72acf498d1e4679ef3911f71da2057f0318 --- M modules/openstack/templates/kilo/nova/nova.conf.erb M modules/openstack/templates/liberty/nova/nova.conf.erb 2 files changed, 5 insertions(+), 4 deletions(-) Approvals: Andrew Bogott: Looks good to me, approved jenkins-bot: Verified diff --git a/modules/openstack/templates/kilo/nova/nova.conf.erb b/modules/openstack/templates/kilo/nova/nova.conf.erb index d9835b5..cdb874a1 100644 --- a/modules/openstack/templates/kilo/nova/nova.conf.erb +++ b/modules/openstack/templates/kilo/nova/nova.conf.erb @@ -89,8 +89,8 @@ # Overprovision settings -# Default ram overprovision ratio is 1.5. -ram_allocation_ratio=1.4 +# Default ram overprovision ratio is 1.5. 1.0 is 100% safe though +ram_allocation_ratio=1.0 # Since our images are copy-on-write we can support some overcommitting here. disk_allocation_ratio=1.7 diff --git a/modules/openstack/templates/liberty/nova/nova.conf.erb b/modules/openstack/templates/liberty/nova/nova.conf.erb index a9a992e..372c0a0 100644 --- a/modules/openstack/templates/liberty/nova/nova.conf.erb +++ b/modules/openstack/templates/liberty/nova/nova.conf.erb @@ -89,8 +89,9 @@ # Overprovision settings -# Default ram overprovision ration is 1.5. -ram_allocation_ratio=1.5 +# Running OOM on a compute host produces weird spontaneous shutdowns. +# avoid overcommitting as long as we can afford it. +ram_allocation_ratio=1.0 # Since our images are copy-on-write we can support some overcommitting here. disk_allocation_ratio=1.8 -- To view, visit https://gerrit.wikimedia.org/r/298480 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Iaca1a72acf498d1e4679ef3911f71da2057f0318 Gerrit-PatchSet: 7 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Andrew Bogott <[email protected]> Gerrit-Reviewer: Andrew Bogott <[email protected]> Gerrit-Reviewer: Chasemp <[email protected]> Gerrit-Reviewer: Hashar <[email protected]> Gerrit-Reviewer: Rush <[email protected]> Gerrit-Reviewer: Yuvipanda <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
