Giuseppe Lavagetto has uploaded a new change for review.

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

Change subject: mediawiki: raise local_port_range for the api pool
......................................................................

mediawiki: raise local_port_range for the api pool

The api pool has a higher load per server than the traditional
appservers, and we see frequent memcached connection errors on the
higher load servers. We think this is due to starvation of ephemeral
ports, due also to the fact we're now using ports for connecting via
fastcgi. We extend the local port range to start just above the
twemproxy admin port. This should at least alleviate the problem.

Change-Id: Ic2fcc21cd771bc68541167b11d6088e3f661a962
Signed-off-by: Giuseppe Lavagetto <[email protected]>
---
M manifests/role/mediawiki.pp
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/83/184583/1

diff --git a/manifests/role/mediawiki.pp b/manifests/role/mediawiki.pp
index 829e99c..8ac7371 100644
--- a/manifests/role/mediawiki.pp
+++ b/manifests/role/mediawiki.pp
@@ -97,6 +97,14 @@
     system::role { 'role::mediawiki::appserver::api': }
 
     include ::role::mediawiki::webserver
+
+    # Using fastcgi we need more local ports
+    sysctl::parameters { 'raise_port_range':
+        values => {
+            'net.ipv4.local_port_range' => '22500 65535',
+        },
+        priority => 90,
+    }
 }
 
 class role::mediawiki::imagescaler {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic2fcc21cd771bc68541167b11d6088e3f661a962
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Giuseppe Lavagetto <[email protected]>

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

Reply via email to