Enforce stricter slave lag limits for bot API requests
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 2 Oct 2015 00:57:07 +0000 (17:57 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 7 Nov 2015 01:04:36 +0000 (17:04 -0800)
commit453d88605b1612c07fe838d0c21d54e1a871c702
tree8fb660313d7e5a2bef78d3801b9d4b612e459705
parentb71c537ef82f5dedd23a8dcc3f41a975f0c0e7b2
Enforce stricter slave lag limits for bot API requests

* All users with the bot right sending requests to
  write APIs will get a read-only error when slave
  lag is high. The lag tolerance is configured via
  $wgAPIMaxLagThreshold.
* Making this lower than 'max lag' in the LBFactory
  config means bots get read-only errors before other
  users, which is sensible.
* The default LoadBalancer 'max lag' is now 10 instead
  of 30, which now matches the timeout used for waiting
  on MASTER_POS_WAIT() for ChronologyProtector. This is
  better for assuring that users see their own changes.

Bug: T95501
Change-Id: I56a7f3538278378c67fa3ef5ff0ba4aa6a9a8c64
RELEASE-NOTES-1.27
includes/DefaultSettings.php
includes/api/ApiMain.php
includes/db/loadbalancer/LoadBalancer.php