Do not count 0-load servers in getMaxLag()
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 21 May 2016 10:40:03 +0000 (03:40 -0700)
committerOri.livneh <ori@wikimedia.org>
Mon, 23 May 2016 18:42:56 +0000 (18:42 +0000)
commite2c75bb3bda90d091557ef250785cd3b89617201
tree8ab9a2896edd5495616e002cc173be325d77330d
parente47f857e3f4bb44ae2f667f5cb64c171c73f4d2e
Do not count 0-load servers in getMaxLag()

JobRunner::run() and API endpoints use this to bail out if
lag is too high. A dedicated "vslow" host with no normal
load should not trigger this logic, for example.

Bug: T135809
Change-Id: If6879aa1a4379857779a4eacf2a8b7400c0b434f
includes/db/loadbalancer/LoadBalancer.php