Andrew Bogott has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/298480

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 slightly overcommit RAM (388Gb committed, 377 Gb used)
and the results were bad -- instances were spontaneously
shutdown to free up RAM.

So.  Given that a) RAM overprovision is almost never used, and
b) when it is used it causes bad behavior... let's just not do
it.

Change-Id: Iaca1a72acf498d1e4679ef3911f71da2057f0318
---
M modules/openstack/templates/kilo/nova/nova.conf.erb
M modules/openstack/templates/liberty/nova/nova.conf.erb
2 files changed, 4 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/80/298480/1

diff --git a/modules/openstack/templates/kilo/nova/nova.conf.erb 
b/modules/openstack/templates/kilo/nova/nova.conf.erb
index d9835b5..d364142 100644
--- a/modules/openstack/templates/kilo/nova/nova.conf.erb
+++ b/modules/openstack/templates/kilo/nova/nova.conf.erb
@@ -90,7 +90,7 @@
 # Overprovision settings
 
 # Default ram overprovision ratio is 1.5.
-ram_allocation_ratio=1.4
+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: newchange
Gerrit-Change-Id: Iaca1a72acf498d1e4679ef3911f71da2057f0318
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Andrew Bogott <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to