jenkins-bot has submitted this change and it was merged.

Change subject: Lower default number of reindex processes
......................................................................


Lower default number of reindex processes

We don't use the default in production and it is too high in development.

Change-Id: Ic4f6e219699e8e066807d0614eaff598a2bc286f
---
M maintenance/updateOneSearchIndexConfig.php
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Chad: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/maintenance/updateOneSearchIndexConfig.php 
b/maintenance/updateOneSearchIndexConfig.php
index 4be5c27..d56dbda 100644
--- a/maintenance/updateOneSearchIndexConfig.php
+++ b/maintenance/updateOneSearchIndexConfig.php
@@ -137,7 +137,7 @@
                        "alias to this index, and then remove other index.  
You'll have to redo all updates ".
                        "performed during this operation manually.  Defaults to 
false." );
                $maintenance->addOption( 'reindexProcesses', 'Number of 
processess to use in reindex.  ' .
-                       'Not supported on Windows.  Defaults to 1 on Windows 
and 10 otherwise.', false, true );
+                       'Not supported on Windows.  Defaults to 1 on Windows 
and 5 otherwise.', false, true );
                $maintenance->addOption( 'reindexAcceptableCountDeviation', 
'How much can the reindexed ' .
                        'copy of an index is allowed to deviate from the 
current copy without triggering a ' .
                        'reindex failure.  Defaults to 5%.', false, true );
@@ -179,7 +179,7 @@
                $this->indexBaseName = $this->getOption( 'baseName', wfWikiId() 
);
                $this->indent = $this->getOption( 'indent', '' );
                $this->reindexAndRemoveOk = $this->getOption( 
'reindexAndRemoveOk', false );
-               $this->reindexProcesses = $this->getOption( 'reindexProcesses', 
wfIsWindows() ? 1 : 10 );
+               $this->reindexProcesses = $this->getOption( 'reindexProcesses', 
wfIsWindows() ? 1 : 5 );
                $this->reindexAcceptableCountDeviation = 
$this->parsePotentialPercent(
                        $this->getOption( 'reindexAcceptableCountDeviation', 
'5%' ) );
                $this->reindexChunkSize = $this->getOption( 'reindexChunkSize', 
100 );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic4f6e219699e8e066807d0614eaff598a2bc286f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Manybubbles <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to