BBlack has submitted this change and it was merged.

Change subject: add vm tuning params to jessie cache nodes
......................................................................


add vm tuning params to jessie cache nodes

Change-Id: Ia91dd5adfb6ab4f35dc31b8b1b4dd0539cfed393
---
M manifests/role/cache.pp
1 file changed, 13 insertions(+), 1 deletion(-)

Approvals:
  BBlack: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/manifests/role/cache.pp b/manifests/role/cache.pp
index ad01711..b50bac4 100644
--- a/manifests/role/cache.pp
+++ b/manifests/role/cache.pp
@@ -731,9 +731,21 @@
                 max => 262144,
             }
 
-            # This needs newer-ish kernels, testing only on jessie+ hosts for 
now
+            # These tweaks were only tested on and/or only work on jessie, may
+            #  as well not disturb the working precise setup
             if os_version('debian >= jessie') {
+                # RPS/RSS to spread network i/o evenly
                 interface::rps { 'eth0': }
+
+                # flush vm more steadily in the background. helps avoid large 
performance
+                #   spikes related to flushing out disk write cache.
+                sysctl::parameters { 'cache_role_vm_settings':
+                    values => {
+                        'vm.dirty_ratio'            => 40,  # default 20
+                        'vm.dirty_background_ratio' => 5,   # default 10
+                        'vm.dirty_expire_centisecs' => 150, # default 3000
+                    },
+                }
             }
         }
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia91dd5adfb6ab4f35dc31b8b1b4dd0539cfed393
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: BBlack <[email protected]>
Gerrit-Reviewer: BBlack <[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