Hashar has uploaded a new change for review.

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


Change subject: beta: make use of wgHTCPMulticastRouting
......................................................................

beta: make use of wgHTCPMulticastRouting

MediaWiki core received support to route HTCP requests to different
IP/port based on the purged URL:
        https://gerrit.wikimedia.org/r/#/c/4486/

The code has never been used so far but is going to be useful for beta
which has no multicast support and one cache per role.

Change-Id: Ib1a090e7f715f216fc35a139baaf0f1bf7cca703
---
M wmf-config/squid-labs.php
1 file changed, 16 insertions(+), 0 deletions(-)


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

diff --git a/wmf-config/squid-labs.php b/wmf-config/squid-labs.php
index 4ea9724..79aa54a 100644
--- a/wmf-config/squid-labs.php
+++ b/wmf-config/squid-labs.php
@@ -13,3 +13,19 @@
 # will be stripped; purge requests should get to it
 # on the address in the SquidServers list
 $wgSquidServersNoPurge = array( '127.0.0.1' );
+
+# The beta cluster does not have multicast, hence we route the purge
+# requests directly to the varnish instances.  They have varnishhtcpd listening
+# on UDP port 4827.
+$wgHTCPMulticastRouting = array(
+       '|^https?://upload\.beta\.wmflabs\.org|' => array(
+               'host' => '10.4.0.214',  # deployment-cache-upload03
+               'port' => 4827,
+       ),
+
+       # Fallback??
+       '' => array(
+               'host' => '10.4.1.133',  # deployment-cache-text1
+               'port' => 4827,
+       ),
+);

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib1a090e7f715f216fc35a139baaf0f1bf7cca703
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>

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

Reply via email to