GWicke has uploaded a new change for review.

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


Change subject: Enable Parsoid for all VisualEditor wikis
......................................................................

Enable Parsoid for all VisualEditor wikis

The Parsoid extension keeps the Parsoid cache service up to date on any
changes in the wiki. It is deployed in wmf6, and should hopefully also make it
into wmf5 (before this patch can be deployed).

This config only enables Parsoid for VE-enabled wikis, but after initial tests
we should enable Parsoid on all wikis the VE will launch on in July to have a
realistic load test and prime the caches.

Change-Id: I6171e0f39612d78265c689e6c11e786664b1608d
---
M wmf-config/CommonSettings.php
M wmf-config/extension-list
2 files changed, 16 insertions(+), 0 deletions(-)


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

diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 13df6da..f584d47 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -1905,6 +1905,21 @@
        if ( $wmgVisualEditorDefault ) {
                $wgDefaultUserOptions['visualeditor-enable'] = 1;
        }
+
+       // Also include the Parsoid extension when VE is enabled
+       require_once( "$IP/extensions/Parsoid/Parsoid.php" );
+       // List the parsoid cache servers to keep up to date. These are only the
+       // front-end caches for now, which means that purges won't reach the
+       // backends. Since purges are optional anyway that is fine for now.
+       // Implicit refreshes via the Cache-control header should reach the 
backends
+       // via the frontends.
+       $wgParsoidCacheServers = array(
+               'http://cerium.wikimedia.org',
+               'http://titanium.wikimedia.org',
+       );
+       // Skip most update requests initially. Ramp down towards 0 if things
+       // don't fall over.
+       $wgParsoidSkipRatio = 0.95;
 }
 
 if ( $wmgUseTemplateData ) {
diff --git a/wmf-config/extension-list b/wmf-config/extension-list
index ab65898..ee9c682 100644
--- a/wmf-config/extension-list
+++ b/wmf-config/extension-list
@@ -89,6 +89,7 @@
 $IP/extensions/PageImages/PageImages.php
 $IP/extensions/PageTriage/PageTriage.php
 $IP/extensions/ParserFunctions/ParserFunctions.php
+$IP/extensions/Parsoid/Parsoid.php
 $IP/extensions/PdfHandler/PdfHandler.php
 $IP/extensions/Poem/Poem.php
 $IP/extensions/PoolCounter/PoolCounterClient.php

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

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

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

Reply via email to