From: Brian Wolff Date: Thu, 12 May 2016 10:32:47 +0000 (-0400) Subject: Make updateCollation wait for slaves every 500 (instead of 2000) X-Git-Tag: 1.31.0-rc.0~7007^2 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=d9a965c69d0712567efd68c94a1f38f9cd50056c;p=lhc%2Fweb%2Fwiklou.git Make updateCollation wait for slaves every 500 (instead of 2000) 2000 writes per wfWaitForSlaves() seems a bit high. There was a report of this script causing some slave lag when being run. Note that, the amount of time between wfWaitForSlaves() was previously increased in r97146. Bug: T58041 Change-Id: I07a29499775a17255865f25e6b9f1058f898193b --- diff --git a/maintenance/updateCollation.php b/maintenance/updateCollation.php index 6d9a616077..aae419597a 100644 --- a/maintenance/updateCollation.php +++ b/maintenance/updateCollation.php @@ -34,7 +34,7 @@ require_once __DIR__ . '/Maintenance.php'; */ class UpdateCollation extends Maintenance { const BATCH_SIZE = 100; // Number of rows to process in one batch - const SYNC_INTERVAL = 20; // Wait for slaves after this many batches + const SYNC_INTERVAL = 5; // Wait for slaves after this many batches public $sizeHistogram = [];