Aaron Schulz has uploaded a new change for review.
https://gerrit.wikimedia.org/r/206144
Change subject: Lowered $maxAllowedLag to 3 in JobRunner
......................................................................
Lowered $maxAllowedLag to 3 in JobRunner
Change-Id: I7cb771c667bac21e9b67069e31c6243d9314dac5
(cherry picked from commit 05a5ec406dcd8686666294a5530bc4d3966afbcc)
---
M includes/jobqueue/JobRunner.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/44/206144/1
diff --git a/includes/jobqueue/JobRunner.php b/includes/jobqueue/JobRunner.php
index d5262a1..85f9c2c 100644
--- a/includes/jobqueue/JobRunner.php
+++ b/includes/jobqueue/JobRunner.php
@@ -123,8 +123,8 @@
$trxProfiler->setExpectation( 'maxAffected', 500, __METHOD__ );
// Bail out if there is too much DB lag
- $maxAllowedLag = 5;
- list( , $maxLag ) = wfGetLBFactory()->getMainLB( wfWikiID()
)->getMaxLag();
+ $maxAllowedLag = 3;
+ list( , $maxLag ) = wfGetLB( wfWikiID() )->getMaxLag();
if ( $maxLag >= $maxAllowedLag ) {
$response['reached'] = 'slave-lag-limit';
return $response;
--
To view, visit https://gerrit.wikimedia.org/r/206144
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7cb771c667bac21e9b67069e31c6243d9314dac5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: wmf/1.26wmf2
Gerrit-Owner: Aaron Schulz <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits