Slave lag check tweaks to JobRunner
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 20 Sep 2014 20:53:16 +0000 (13:53 -0700)
committerOri.livneh <ori@wikimedia.org>
Wed, 24 Sep 2014 00:59:55 +0000 (00:59 +0000)
commita55544180b2e4957aba30c20472e4bd208232ef3
tree1f0e44c1285d62098560e168bb128484a211503c
parent8c061a7d3c9577f1d27273d588b443106e34cec6
Slave lag check tweaks to JobRunner

* Do not block forever, but wait up to 10 seconds. Likewise,
  check the lag times in memcached on startup. This at least
  lets runners avoid lagged wikis but still work on others.
* Made a few small related documentation and code cleanups.

Change-Id: Ic1339bab54cba6b6cbea7d97a80ff87c7c5c87af
includes/GlobalFunctions.php
includes/db/LoadBalancer.php
includes/db/LoadMonitor.php
includes/jobqueue/JobRunner.php