Ori.livneh has submitted this change and it was merged.

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(-)

Approvals:
  Ori.livneh: Looks good to me, approved
  Aaron Schulz: Looks good to me, but someone else must approve
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: I40f8675d8f352719afc234551a32334db72770ef
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ori.livneh <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to