Make updateCollation wait for slaves every 500 (instead of 2000)
authorBrian Wolff <bawolff+wn@gmail.com>
Thu, 12 May 2016 10:32:47 +0000 (06:32 -0400)
committerBrian Wolff <bawolff+wn@gmail.com>
Thu, 12 May 2016 10:32:47 +0000 (06:32 -0400)
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

maintenance/updateCollation.php

index 6d9a616..aae4195 100644 (file)
@@ -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 = [];