Ori.livneh has uploaded a new change for review.

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

Change subject: rbf100{1,2}: set vm.overcommit_memory = 1, per redis 
requirements
......................................................................

rbf100{1,2}: set vm.overcommit_memory = 1, per redis requirements

Fixes:

    # WARNING overcommit_memory is set to 0! Background
    save may fail under low memory condition. To fix this issue add
    'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the
    command 'sysctl vm.overcommit_memory=1' for this to take effect.

Change-Id: I40f8675d8f352719afc234551a32334db72770ef
---
M manifests/site.pp
1 file changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/68/164668/1

diff --git a/manifests/site.pp b/manifests/site.pp
index 400ea7d..dc262cb 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -1855,6 +1855,12 @@
     class { 'role::db::redis':
         redis_replication => { 'rbf1002' => 'rbf1001' },
     }
+
+    # Background save may fail under low memory condition unless
+    # vm.overcommit_memory is 1.
+    sysctl::parameters { 'vm.overcommit_memory':
+        values => { 'vm.overcommit_memory' => 1, },
+    }
 }
 
 node 'rubidium.wikimedia.org' {

-- 
To view, visit https://gerrit.wikimedia.org/r/164668
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I40f8675d8f352719afc234551a32334db72770ef
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ori.livneh <[email protected]>

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

Reply via email to