Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F575
wmf_config_inherit_settings
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
demon
Oct 30 2014, 9:54 PM
2014-10-30 21:54:46 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
wmf_config_inherit_settings
View Options
diff --git a/wmf-config/CirrusSearch-common.php b/wmf-config/CirrusSearch-common.php
index bcbc85c..81f6641 100644
--- a/wmf-config/CirrusSearch-common.php
+++ b/wmf-config/CirrusSearch-common.php
@@ -67,6 +67,7 @@ $wgCirrusSearchOptimizeIndexForExperimentalHighlighter = true;
# Settings customized per index.
$wgCirrusSearchShardCount = $wmgCirrusSearchShardCount;
+$wgCirrusSearchReplicas = $wmgCirrusSearchReplicas;
$wgCirrusSearchMaxShardsPerNode = $wmgCirrusSearchMaxShardsPerNode;
$wgCirrusSearchPreferRecentDefaultDecayPortion = $wmgCirrusSearchPreferRecentDefaultDecayPortion;
$wgCirrusSearchBoostLinks = $wmgCirrusSearchBoostLinks;
diff --git a/wmf-config/InitialiseSettings.php b/wmf-config/InitialiseSettings.php
index 3427790..d936740 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -14057,6 +14057,15 @@ $wgConf->settings = array(
'zhwikisource' => array( 'content' => 5, 'general' => 1 ),
),
+// Most wikis are fine with 0-2 replicas for all indexes
+// some of the larger ones will want more replicas for content indexes
+'wmgCirrusSearchReplicas' => array(
+ 'default' => array( 'content' => '0-2', 'general' => '0-2' ),
+ '+commonswiki' => array( 'file' => '0-3' ),
+ '+dewiki' => array( 'content' => '0-3' ),
+ '+enwiki' => array( 'content' => '0-3' ),
+),
+
'wmgCirrusSearchMaxShardsPerNode' => array(
'default' => array(),
'commonswiki' => array( 'file' => 1, 'general' => 2 ),
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
560
Default Alt Text
wmf_config_inherit_settings (1 KB)
Attached To
Mode
P50 wmf config inherit settings
Attached
Detach File
Event Timeline
Log In to Comment