Hashar has uploaded a new change for review.
https://gerrit.wikimedia.org/r/51677
Change subject: adapts lucene classes for beta
......................................................................
adapts lucene classes for beta
Change-Id: Iafefdff4f71d162130b46155902ecd0ee88fab97
---
M manifests/role/lucene.pp
M templates/lucene/lsearch-global-2.1.conf.erb
2 files changed, 138 insertions(+), 114 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/77/51677/1
diff --git a/manifests/role/lucene.pp b/manifests/role/lucene.pp
index d9e09d3..2cf0d91 100644
--- a/manifests/role/lucene.pp
+++ b/manifests/role/lucene.pp
@@ -1,122 +1,138 @@
class role::lucene {
class configuration {
$nodes = {
- "eqiad" => {
- "front_ends" => {
- # enwiki
- "pool1" => {
- "search1001" =>
['enwiki.nspart1.sub1', 'enwiki.nspart1.sub2', 'enwiki.spell'],
- "search1002" =>
['enwiki.nspart1.sub1', 'enwiki.nspart1.sub2'],
- "search1003" =>
['enwiki.nspart1.sub1', 'enwiki.nspart1.sub2', 'enwiki.nspart2*'],
- "search1004" =>
['enwiki.nspart1.sub1.hl', 'enwiki.nspart1.sub2.hl'],
- "search1005" =>
['enwiki.nspart1.sub1.hl', 'enwiki.nspart1.sub2.hl'],
- "search1006" =>
['enwiki.nspart2*', 'enwiki.spell'],
+ 'production' => {
+ "eqiad" => {
+ "front_ends" => {
+ # enwiki
+ "pool1" => {
+ "search1001" =>
['enwiki.nspart1.sub1', 'enwiki.nspart1.sub2', 'enwiki.spell'],
+ "search1002" =>
['enwiki.nspart1.sub1', 'enwiki.nspart1.sub2'],
+ "search1003" =>
['enwiki.nspart1.sub1', 'enwiki.nspart1.sub2', 'enwiki.nspart2*'],
+ "search1004" =>
['enwiki.nspart1.sub1.hl', 'enwiki.nspart1.sub2.hl'],
+ "search1005" =>
['enwiki.nspart1.sub1.hl', 'enwiki.nspart1.sub2.hl'],
+ "search1006" =>
['enwiki.nspart2*', 'enwiki.spell'],
+ },
+ # de,fr,jawiki
+ "pool2" => {
+ "search1007" =>
['frwiki.nspart1', 'frwiki.nspart2', 'jawiki.nspart1', 'jawiki.nspart2',
'dewiki.nspart1', 'dewiki.nspart2'],
+ "search1008" =>
['frwiki.nspart1', 'frwiki.nspart2', 'jawiki.nspart1', 'jawiki.nspart2',
'dewiki.nspart1', 'dewiki.nspart2'],
+ "search1009" =>
['dewiki.nspart1.hl', 'dewiki.nspart2.hl', 'frwiki.nspart1.hl',
'frwiki.nspart2.hl', 'frwiki.spell', 'dewiki.spell'],
+ "search1010" =>
['dewiki.nspart1.hl', 'dewiki.nspart2.hl', 'frwiki.nspart1.hl',
'frwiki.nspart2.hl', 'frwiki.spell', 'dewiki.spell'],
+ },
+ # it,nl,ru,sv,pl,pt,es,zhwiki
+ "pool3" => {
+ "search1011" =>
['eswiki itwiki.nspart1', 'ruwiki.nspart1', 'nlwiki.nspart1',
+
'svwiki.nspart1', 'plwiki.nspart1', 'ptwiki.nspart1', 'zhwiki.nspart1',
'eswiki.hl'],
+ "search1012" =>
['eswiki itwiki.nspart1', 'ruwiki.nspart1', 'nlwiki.nspart1',
+
'svwiki.nspart1', 'plwiki.nspart1', 'ptwiki.nspart1', 'zhwiki.nspart1',
'eswiki.hl'],
+ "search1013" =>
['itwiki.nspart1.hl', 'itwiki.nspart2.hl', 'nlwiki.nspart1.hl',
'nlwiki.nspart2.hl', 'ruwiki.nspart1.hl', 'ruwiki.nspart2.hl',
+
'itwiki.spell', 'nlwiki.spell', 'ruwiki.spell', 'svwiki.spell', 'plwiki.spell',
'ptwiki.spell', 'eswiki.spell'],
+ "search1014" =>
['itwiki.nspart1.hl', 'itwiki.nspart2.hl', 'nlwiki.nspart1.hl',
'nlwiki.nspart2.hl', 'ruwiki.nspart1.hl', 'ruwiki.nspart2.hl',
+
'itwiki.spell', 'nlwiki.spell', 'ruwiki.spell', 'svwiki.spell', 'plwiki.spell',
'ptwiki.spell', 'eswiki.spell'],
+ "search1023" =>
['svwiki.nspart1.hl', 'svwiki.nspart2.hl', 'plwiki.nspart1.hl',
'plwiki.nspart2.hl', 'ptwiki.nspart1.hl', 'ptwiki.nspart2.hl',
+
'itwiki.nspart2', 'nlwiki.nspart2', 'ruwiki.nspart2', 'svwiki.nspart2', '
plwiki.nspart2', 'ptwiki.nspart2', 'zhwiki.nspart2'],
+ "search1024" =>
['svwiki.nspart1.hl', 'svwiki.nspart2.hl', 'plwiki.nspart1.hl',
'plwiki.nspart2.hl', 'ptwiki.nspart1.hl', 'ptwiki.nspart2.hl',
+
'itwiki.nspart2', 'nlwiki.nspart2', 'ruwiki.nspart2', 'svwiki.nspart2', '
plwiki.nspart2', 'ptwiki.nspart2', 'zhwiki.nspart2'],
+ },
+ # everything else
+ "pool4" => {
+ "search1015" =>
['commonswiki.nspart1', 'commonswiki.nspart1.hl', 'commonswiki.nspart2',
'commonswiki.nspart2.hl', '*?'],
+ "search1016" =>
['commonswiki.nspart1', 'commonswiki.nspart1.hl', 'commonswiki.nspart2',
'commonswiki.nspart2.hl', '*?'],
+ "search1019" =>
['(?!(enwiki.|dewiki.|frwiki.|itwiki.|nlwiki.|ruwiki.|svwiki.|plwiki.|eswiki.|ptwiki.))*.spell'],
+ "search1020" =>
['(?!(enwiki.|dewiki.|frwiki.|itwiki.|nlwiki.|ruwiki.|svwiki.|plwiki.|eswiki.|ptwiki.))*.spell'],
+ "search1021" =>
['(?!(enwiki.|dewiki.|frwiki.|itwiki.|nlwiki.|ruwiki.|svwiki.|plwiki.|eswiki.|ptwiki.|jawiki.|zhwiki.))*.hl'],
+ "search1022" =>
['(?!(enwiki.|dewiki.|frwiki.|itwiki.|nlwiki.|ruwiki.|svwiki.|plwiki.|eswiki.|ptwiki.|jawiki.|zhwiki.))*.hl'],
+ },
+ # prefix hosts for all pools
+ "prefix" => {
+ "search1017" =>
['*.prefix'],
+ "search1018" =>
['*.prefix'],
+ },
+ # assigned to fake host to
disable them
+ "disabled" => {
+ "search1000x" =>
['*tspart1', '*tspart2', 'en-titles*', 'de-titles*', 'ja-titles*', 'it-titles*',
+ 'sv-titles*',
'pl-titles*', 'pt-titles*', 'es-titles*', 'zh-titles*', 'nl-titles*',
'ru-titles*', 'fr-titles*',
+
'commonswiki.spell', 'commonswiki.nspart1.hl', 'commonswiki.nspart1',
'commonswiki.nspart2.hl', 'commonswiki.nspart2',
+ '*.related',
'jawiki.nspart1.hl', 'jawiki.nspart2.hl', 'zhwiki.nspart1.hl',
'zhwiki.nspart2.hl'],
+ }
},
- # de,fr,jawiki
- "pool2" => {
- "search1007" =>
['frwiki.nspart1', 'frwiki.nspart2', 'jawiki.nspart1', 'jawiki.nspart2',
'dewiki.nspart1', 'dewiki.nspart2'],
- "search1008" =>
['frwiki.nspart1', 'frwiki.nspart2', 'jawiki.nspart1', 'jawiki.nspart2',
'dewiki.nspart1', 'dewiki.nspart2'],
- "search1009" =>
['dewiki.nspart1.hl', 'dewiki.nspart2.hl', 'frwiki.nspart1.hl',
'frwiki.nspart2.hl', 'frwiki.spell', 'dewiki.spell'],
- "search1010" =>
['dewiki.nspart1.hl', 'dewiki.nspart2.hl', 'frwiki.nspart1.hl',
'frwiki.nspart2.hl', 'frwiki.spell', 'dewiki.spell'],
- },
- # it,nl,ru,sv,pl,pt,es,zhwiki
- "pool3" => {
- "search1011" => ['eswiki
itwiki.nspart1', 'ruwiki.nspart1', 'nlwiki.nspart1',
- 'svwiki.nspart1',
'plwiki.nspart1', 'ptwiki.nspart1', 'zhwiki.nspart1', 'eswiki.hl'],
- "search1012" => ['eswiki
itwiki.nspart1', 'ruwiki.nspart1', 'nlwiki.nspart1',
- 'svwiki.nspart1',
'plwiki.nspart1', 'ptwiki.nspart1', 'zhwiki.nspart1', 'eswiki.hl'],
- "search1013" =>
['itwiki.nspart1.hl', 'itwiki.nspart2.hl', 'nlwiki.nspart1.hl',
'nlwiki.nspart2.hl', 'ruwiki.nspart1.hl', 'ruwiki.nspart2.hl',
- 'itwiki.spell',
'nlwiki.spell', 'ruwiki.spell', 'svwiki.spell', 'plwiki.spell', 'ptwiki.spell',
'eswiki.spell'],
- "search1014" =>
['itwiki.nspart1.hl', 'itwiki.nspart2.hl', 'nlwiki.nspart1.hl',
'nlwiki.nspart2.hl', 'ruwiki.nspart1.hl', 'ruwiki.nspart2.hl',
- 'itwiki.spell',
'nlwiki.spell', 'ruwiki.spell', 'svwiki.spell', 'plwiki.spell', 'ptwiki.spell',
'eswiki.spell'],
- "search1023" =>
['svwiki.nspart1.hl', 'svwiki.nspart2.hl', 'plwiki.nspart1.hl',
'plwiki.nspart2.hl', 'ptwiki.nspart1.hl', 'ptwiki.nspart2.hl',
- 'itwiki.nspart2',
'nlwiki.nspart2', 'ruwiki.nspart2', 'svwiki.nspart2', ' plwiki.nspart2',
'ptwiki.nspart2', 'zhwiki.nspart2'],
- "search1024" =>
['svwiki.nspart1.hl', 'svwiki.nspart2.hl', 'plwiki.nspart1.hl',
'plwiki.nspart2.hl', 'ptwiki.nspart1.hl', 'ptwiki.nspart2.hl',
- 'itwiki.nspart2',
'nlwiki.nspart2', 'ruwiki.nspart2', 'svwiki.nspart2', ' plwiki.nspart2',
'ptwiki.nspart2', 'zhwiki.nspart2'],
- },
- # everything else
- "pool4" => {
- "search1015" =>
['commonswiki.nspart1', 'commonswiki.nspart1.hl', 'commonswiki.nspart2',
'commonswiki.nspart2.hl', '*?'],
- "search1016" =>
['commonswiki.nspart1', 'commonswiki.nspart1.hl', 'commonswiki.nspart2',
'commonswiki.nspart2.hl', '*?'],
- "search1019" =>
['(?!(enwiki.|dewiki.|frwiki.|itwiki.|nlwiki.|ruwiki.|svwiki.|plwiki.|eswiki.|ptwiki.))*.spell'],
- "search1020" =>
['(?!(enwiki.|dewiki.|frwiki.|itwiki.|nlwiki.|ruwiki.|svwiki.|plwiki.|eswiki.|ptwiki.))*.spell'],
- "search1021" =>
['(?!(enwiki.|dewiki.|frwiki.|itwiki.|nlwiki.|ruwiki.|svwiki.|plwiki.|eswiki.|ptwiki.|jawiki.|zhwiki.))*.hl'],
- "search1022" =>
['(?!(enwiki.|dewiki.|frwiki.|itwiki.|nlwiki.|ruwiki.|svwiki.|plwiki.|eswiki.|ptwiki.|jawiki.|zhwiki.))*.hl'],
- },
- # prefix hosts for all pools
- "prefix" => {
- "search1017" => ['*.prefix'],
- "search1018" => ['*.prefix'],
- },
- # assigned to fake host to disable them
- "disabled" => {
- "search1000x" => ['*tspart1',
'*tspart2', 'en-titles*', 'de-titles*', 'ja-titles*', 'it-titles*',
- 'sv-titles*',
'pl-titles*', 'pt-titles*', 'es-titles*', 'zh-titles*', 'nl-titles*',
'ru-titles*', 'fr-titles*',
- 'commonswiki.spell',
'commonswiki.nspart1.hl', 'commonswiki.nspart1', 'commonswiki.nspart2.hl',
'commonswiki.nspart2',
- '*.related',
'jawiki.nspart1.hl', 'jawiki.nspart2.hl', 'zhwiki.nspart1.hl',
'zhwiki.nspart2.hl'],
+ "indexers" => {
+ "searchidx1001" => ['*']
}
},
- "indexers" => {
- "searchidx1001" => ['*']
+ "pmtpa" => {
+ "front_ends" => {
+ # these will be reshuffled when
pmtpa is rebuilt/upgraded. blank /fake for now.
+ "pool1" => {
+ "search21" =>
['enwiki.nspart1.sub1', 'enwiki.nspart1.sub2', 'enwiki.spell'],
+ "search22" =>
['enwiki.nspart1.sub1', 'enwiki.nspart1.sub2'],
+ "search23" =>
['enwiki.nspart1.sub1', 'enwiki.nspart1.sub2', 'enwiki.nspart2*'],
+ "search24" =>
['enwiki.nspart1.sub1.hl', 'enwiki.nspart1.sub2.hl'],
+ "search25" =>
['enwiki.nspart1.sub1.hl', 'enwiki.nspart1.sub2.hl'],
+ "search26" =>
['enwiki.nspart2*', 'enwiki.spell'],
+ },
+ "pool2" => {
+ "search27" =>
['frwiki.nspart1', 'frwiki.nspart2', 'jawiki.nspart1', 'jawiki.nspart2',
'dewiki.nspart1', 'dewiki.nspart2'],
+ "search28" =>
['frwiki.nspart1', 'frwiki.nspart2', 'jawiki.nspart1', 'jawiki.nspart2',
'dewiki.nspart1', 'dewiki.nspart2'],
+ "search29" =>
['dewiki.nspart1.hl', 'dewiki.nspart2.hl', 'frwiki.nspart1.hl',
'frwiki.nspart2.hl', 'frwiki.spell', 'dewiki.spell'],
+ "search30" =>
['dewiki.nspart1.hl', 'dewiki.nspart2.hl', 'frwiki.nspart1.hl',
'frwiki.nspart2.hl', 'frwiki.spell', 'dewiki.spell'],
+ },
+ "pool3" => {
+ "search31" => ['eswiki
itwiki.nspart1', 'ruwiki.nspart1', 'nlwiki.nspart1',
+
'svwiki.nspart1', 'plwiki.nspart1', 'ptwiki.nspart1', 'zhwiki.nspart1',
'eswiki.hl'],
+ "search32" => ['eswiki
itwiki.nspart1', 'ruwiki.nspart1', 'nlwiki.nspart1',
+
'svwiki.nspart1', 'plwiki.nspart1', 'ptwiki.nspart1', 'zhwiki.nspart1',
'eswiki.hl'],
+ "search33" =>
['itwiki.nspart1.hl', 'itwiki.nspart2.hl', 'nlwiki.nspart1.hl',
'nlwiki.nspart2.hl', 'ruwiki.nspart1.hl', 'ruwiki.nspart2.hl',
+
'itwiki.spell', 'nlwiki.spell', 'ruwiki.spell', 'svwiki.spell', 'plwiki.spell',
'ptwiki.spell', 'eswiki.spell'],
+ "search34" =>
['itwiki.nspart1.hl', 'itwiki.nspart2.hl', 'nlwiki.nspart1.hl',
'nlwiki.nspart2.hl', 'ruwiki.nspart1.hl', 'ruwiki.nspart2.hl',
+
'itwiki.spell', 'nlwiki.spell', 'ruwiki.spell', 'svwiki.spell', 'plwiki.spell',
'ptwiki.spell', 'eswiki.spell'],
+ "search35" =>
['svwiki.nspart1.hl', 'svwiki.nspart2.hl', 'plwiki.nspart1.hl',
'plwiki.nspart2.hl', 'ptwiki.nspart1.hl', 'ptwiki.nspart2.hl',
+
'itwiki.nspart2', 'nlwiki.nspart2', 'ruwiki.nspart2', 'svwiki.nspart2', '
plwiki.nspart2', 'ptwiki.nspart2', 'zhwiki.nspart2'],
+ "search36" =>
['svwiki.nspart1.hl', 'svwiki.nspart2.hl', 'plwiki.nspart1.hl',
'plwiki.nspart2.hl', 'ptwiki.nspart1.hl', 'ptwiki.nspart2.hl',
+
'itwiki.nspart2', 'nlwiki.nspart2', 'ruwiki.nspart2', 'svwiki.nspart2', '
plwiki.nspart2', 'ptwiki.nspart2', 'zhwiki.nspart2'],
+ },
+ "pool4" => {
+ "search13" => ['*?'],
+ "search14" => ['*?'],
+ "search15" =>
['commonswiki.nspart1', 'commonswiki.nspart1.hl', 'commonswiki.nspart2',
'commonswiki.nspart2.hl',
+ 'wikidatawiki',
'metawiki', 'enwiktionary',
+
'(?!(enwiki.|dewiki.|frwiki.|itwiki.|nlwiki.|ruwiki.|svwiki.|plwiki.|eswiki.|ptwiki.))*.spell'],
+ "search16" =>
['commonswiki.nspart1', 'commonswiki.nspart1.hl', 'commonswiki.nspart2',
'commonswiki.nspart2.hl',
+ 'wikidatawiki',
'metawiki', 'enwiktionary',
+
'(?!(enwiki.|dewiki.|frwiki.|itwiki.|nlwiki.|ruwiki.|svwiki.|plwiki.|eswiki.|ptwiki.))*.spell'],
+ "search17" =>
['(?!(enwiki.|dewiki.|frwiki.|itwiki.|nlwiki.|ruwiki.|svwiki.|plwiki.|eswiki.|ptwiki.|jawiki.|zhwiki.))*.hl'],
+ "search18" =>
['(?!(enwiki.|dewiki.|frwiki.|itwiki.|nlwiki.|ruwiki.|svwiki.|plwiki.|eswiki.|ptwiki.|jawiki.|zhwiki.))*.hl'],
+ },
+ "prefix" => {
+ "search19" =>
['*.prefix'],
+ "search20" =>
['*.prefix'],
+ },
+ # assigned to fake host to
disable them
+ "disabled" => {
+ "search0x" =>
['*tspart1', '*tspart2', 'en-titles*', 'de-titles*', 'ja-titles*', 'it-titles*',
+ 'sv-titles*',
'pl-titles*', 'pt-titles*', 'es-titles*', 'zh-titles*', 'nl-titles*',
'ru-titles*', 'fr-titles*',
+
'commonswiki.spell', 'commonswiki.nspart1.hl', 'commonswiki.nspart1',
'commonswiki.nspart2.hl', 'commonswiki.nspart2',
+ '*.related',
'jawiki.nspart1.hl', 'jawiki.nspart2.hl', 'zhwiki.nspart1.hl',
'zhwiki.nspart2.hl'],
+ }
+ },
+ "indexers" => {
+ "searchidx2" => ['*'],
+ }
}
},
- "pmtpa" => {
- "front_ends" => {
- # these will be reshuffled when pmtpa
is rebuilt/upgraded. blank /fake for now.
- "pool1" => {
- "search21" =>
['enwiki.nspart1.sub1', 'enwiki.nspart1.sub2', 'enwiki.spell'],
- "search22" =>
['enwiki.nspart1.sub1', 'enwiki.nspart1.sub2'],
- "search23" =>
['enwiki.nspart1.sub1', 'enwiki.nspart1.sub2', 'enwiki.nspart2*'],
- "search24" =>
['enwiki.nspart1.sub1.hl', 'enwiki.nspart1.sub2.hl'],
- "search25" =>
['enwiki.nspart1.sub1.hl', 'enwiki.nspart1.sub2.hl'],
- "search26" =>
['enwiki.nspart2*', 'enwiki.spell'],
+ 'labs' => {
+ 'pmtpa' => {
+ 'front_ends' => {
+ 'poolbeta' => {
+ # deployment-search01
+ '10.4.1.81' => ['*'],
+ }
},
- "pool2" => {
- "search27" =>
['frwiki.nspart1', 'frwiki.nspart2', 'jawiki.nspart1', 'jawiki.nspart2',
'dewiki.nspart1', 'dewiki.nspart2'],
- "search28" =>
['frwiki.nspart1', 'frwiki.nspart2', 'jawiki.nspart1', 'jawiki.nspart2',
'dewiki.nspart1', 'dewiki.nspart2'],
- "search29" =>
['dewiki.nspart1.hl', 'dewiki.nspart2.hl', 'frwiki.nspart1.hl',
'frwiki.nspart2.hl', 'frwiki.spell', 'dewiki.spell'],
- "search30" =>
['dewiki.nspart1.hl', 'dewiki.nspart2.hl', 'frwiki.nspart1.hl',
'frwiki.nspart2.hl', 'frwiki.spell', 'dewiki.spell'],
- },
- "pool3" => {
- "search31" => ['eswiki
itwiki.nspart1', 'ruwiki.nspart1', 'nlwiki.nspart1',
- 'svwiki.nspart1',
'plwiki.nspart1', 'ptwiki.nspart1', 'zhwiki.nspart1', 'eswiki.hl'],
- "search32" => ['eswiki
itwiki.nspart1', 'ruwiki.nspart1', 'nlwiki.nspart1',
- 'svwiki.nspart1',
'plwiki.nspart1', 'ptwiki.nspart1', 'zhwiki.nspart1', 'eswiki.hl'],
- "search33" =>
['itwiki.nspart1.hl', 'itwiki.nspart2.hl', 'nlwiki.nspart1.hl',
'nlwiki.nspart2.hl', 'ruwiki.nspart1.hl', 'ruwiki.nspart2.hl',
- 'itwiki.spell',
'nlwiki.spell', 'ruwiki.spell', 'svwiki.spell', 'plwiki.spell', 'ptwiki.spell',
'eswiki.spell'],
- "search34" =>
['itwiki.nspart1.hl', 'itwiki.nspart2.hl', 'nlwiki.nspart1.hl',
'nlwiki.nspart2.hl', 'ruwiki.nspart1.hl', 'ruwiki.nspart2.hl',
- 'itwiki.spell',
'nlwiki.spell', 'ruwiki.spell', 'svwiki.spell', 'plwiki.spell', 'ptwiki.spell',
'eswiki.spell'],
- "search35" =>
['svwiki.nspart1.hl', 'svwiki.nspart2.hl', 'plwiki.nspart1.hl',
'plwiki.nspart2.hl', 'ptwiki.nspart1.hl', 'ptwiki.nspart2.hl',
- 'itwiki.nspart2',
'nlwiki.nspart2', 'ruwiki.nspart2', 'svwiki.nspart2', ' plwiki.nspart2',
'ptwiki.nspart2', 'zhwiki.nspart2'],
- "search36" =>
['svwiki.nspart1.hl', 'svwiki.nspart2.hl', 'plwiki.nspart1.hl',
'plwiki.nspart2.hl', 'ptwiki.nspart1.hl', 'ptwiki.nspart2.hl',
- 'itwiki.nspart2',
'nlwiki.nspart2', 'ruwiki.nspart2', 'svwiki.nspart2', ' plwiki.nspart2',
'ptwiki.nspart2', 'zhwiki.nspart2'],
- },
- "pool4" => {
- "search13" => ['*?'],
- "search14" => ['*?'],
- "search15" =>
['commonswiki.nspart1', 'commonswiki.nspart1.hl', 'commonswiki.nspart2',
'commonswiki.nspart2.hl',
- 'wikidatawiki',
'metawiki', 'enwiktionary',
-
'(?!(enwiki.|dewiki.|frwiki.|itwiki.|nlwiki.|ruwiki.|svwiki.|plwiki.|eswiki.|ptwiki.))*.spell'],
- "search16" =>
['commonswiki.nspart1', 'commonswiki.nspart1.hl', 'commonswiki.nspart2',
'commonswiki.nspart2.hl',
- 'wikidatawiki',
'metawiki', 'enwiktionary',
-
'(?!(enwiki.|dewiki.|frwiki.|itwiki.|nlwiki.|ruwiki.|svwiki.|plwiki.|eswiki.|ptwiki.))*.spell'],
- "search17" =>
['(?!(enwiki.|dewiki.|frwiki.|itwiki.|nlwiki.|ruwiki.|svwiki.|plwiki.|eswiki.|ptwiki.|jawiki.|zhwiki.))*.hl'],
- "search18" =>
['(?!(enwiki.|dewiki.|frwiki.|itwiki.|nlwiki.|ruwiki.|svwiki.|plwiki.|eswiki.|ptwiki.|jawiki.|zhwiki.))*.hl'],
- },
- "prefix" => {
- "search19" => ['*.prefix'],
- "search20" => ['*.prefix'],
- },
- # assigned to fake host to disable them
- "disabled" => {
- "search0x" => ['*tspart1',
'*tspart2', 'en-titles*', 'de-titles*', 'ja-titles*', 'it-titles*',
- 'sv-titles*',
'pl-titles*', 'pt-titles*', 'es-titles*', 'zh-titles*', 'nl-titles*',
'ru-titles*', 'fr-titles*',
- 'commonswiki.spell',
'commonswiki.nspart1.hl', 'commonswiki.nspart1', 'commonswiki.nspart2.hl',
'commonswiki.nspart2',
- '*.related',
'jawiki.nspart1.hl', 'jawiki.nspart2.hl', 'zhwiki.nspart1.hl',
'zhwiki.nspart2.hl'],
+ 'indexers' => {
+ #
deployment-searchidx01.pmtpa.wmflabs
+ '10.4.0.56' => ['*'],
}
- },
- "indexers" => {
- "searchidx2" => ['*'],
}
}
}
diff --git a/templates/lucene/lsearch-global-2.1.conf.erb
b/templates/lucene/lsearch-global-2.1.conf.erb
index c25f701..a9624fc 100644
--- a/templates/lucene/lsearch-global-2.1.conf.erb
+++ b/templates/lucene/lsearch-global-2.1.conf.erb
@@ -6,7 +6,8 @@
# Logical structure, maps different roles to certain db
[Database]
{file:///a/search/conf/all.dblist} : (single,true,20,1000) (prefix)
(spell,10,3)
-enwiki : (nssplit,2)
+<% if scope.lookupvar('::realm') == 'production' -%>
+enwiki : (nssplit,2)
enwiki : (nspart1,[0],true,20,500,2)
enwiki : (nspart2,[],true,20,500)
enwiki : (spell,40,10) (warmup,500)
@@ -14,6 +15,7 @@
commonswiki : (nssplit,2) (nspart1,[6]) (nspart2,[])
dewiki, frwiki : (spell,20,5)
dewiki, frwiki, itwiki, ptwiki, jawiki, plwiki, nlwiki, ruwiki, svwiki, zhwiki
: (nssplit,2) (nspart1,[0,2,4,12,14]) (nspart2,[]) (warmup,0)
+<% end %>
[Database-Group]
<all> : (titles_by_suffix,2) (tspart1,[ wiki|w ]) (tspart2,[ wiktionary|wikt,
wikibooks|b, wikinews|n, wikiquote|q, wikisource|s, wikiversity|v])
@@ -22,11 +24,15 @@
# Search hosts layout
[Search-Group]
-<% active_nodes = scope.lookupvar("role::lucene::configuration::nodes") -%>
+<% # Shortcuts for convenience
+active_nodes = scope.lookupvar("role::lucene::configuration::nodes")
+realm = scope.lookupvar('::realm')
+site = scope.lookupvar('::site')
+-%>
-<% active_nodes[scope.lookupvar("::site")]['front_ends'].keys.sort.each do
|pool| -%>
+<% active_nodes[realm][site]['front_ends'].keys.sort.each do |pool| -%>
# search <%= pool %>
-<% active_nodes[scope.lookupvar("::site")]['front_ends'][pool].sort.each do
|node, indexes| -%>
+<% active_nodes[realm][site]['front_ends'][pool].sort.each do |node, indexes|
-%>
<%= node %>: <%= indexes.join(" ") %>
<% end -%>
@@ -34,7 +40,7 @@
# Indexers
[Index]
-<% active_nodes[scope.lookupvar("::site")]['indexers'].each do |node, indexes|
-%>
+<% active_nodes[realm][site]['indexers'].each do |node, indexes| -%>
<%= node %>: <%= indexes.join(" ") %>
<% end -%>
@@ -44,6 +50,7 @@
[Index-Path]
<default> : /search
+<% if scope.lookupvar('::realm') == 'production' -%>
[OAI]
simplewiki : http://simple.wikipedia.org/w/index.php
rswikimedia : http://rs.wikimedia.org/w/index.php
@@ -66,6 +73,7 @@
arwikimedia : http://ar.wikimedia.org/w/index.php
mxwikimedia : http://mx.wikimedia.org/w/index.php
commonswiki: http://commons.wikimedia.org/w/index.php
+<% end -%>
[Namespace-Boost]
commonswiki : (0, 1) (6, 4)
--
To view, visit https://gerrit.wikimedia.org/r/51677
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iafefdff4f71d162130b46155902ecd0ee88fab97
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits