Ori.livneh has uploaded a new change for review.

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

Change subject: memcached: set server address to localhost rather than 
127.0.0.1 on mw123*
......................................................................

memcached: set server address to localhost rather than 127.0.0.1 on mw123*

localhost resolves by turns to either 127.0.0.1 or ::1, which has the effect of
doubling the number of ephemeral ports available for connections, and which
should eliminate the problem we're seeing with ephemeral port starvation.
So, let's try it out first on mw123*.

Change-Id: I33ff81e6a2c740da947a7e7e287f4ea7f47d0061
---
M wmf-config/mc.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/74/183774/1

diff --git a/wmf-config/mc.php b/wmf-config/mc.php
index d18b1b5..e7274cc 100644
--- a/wmf-config/mc.php
+++ b/wmf-config/mc.php
@@ -9,8 +9,8 @@
        'class'      => 'MemcachedPeclBagOStuff',
        'serializer' => 'php',
        'persistent' => false,
-       'servers'    => in_array( gethostname(), array( 'mw1230', 'mw1231' ) )
-               ? array( '/var/run/nutcracker/nutcracker.sock:0' )
+       'servers'    => substr( gethostname(), 0, 5 )  === 'mw123'
+               ? array( 'localhost:11212' )
                : array( '127.0.0.1:11212' ),
        'server_failure_limit' => 1e9,
        'retry_timeout' => -1

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I33ff81e6a2c740da947a7e7e287f4ea7f47d0061
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>

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

Reply via email to