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, 24 Oct 2015 07:31:11 +0000 (07:31 +0000)
commitdc10216e77b06b0fc7bb5e0824eb0967129c2e1f
tree54a19458d7039f584690daa88fd33667e73a9c53
parentdfe2ac5d3eb1213210806896ae123ce947646754
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: If9d8f4ef47258d5afb7a0e947c6e6f040cbc7e10
RELEASE-NOTES-1.27
includes/DefaultSettings.php
includes/api/ApiMain.php
includes/db/loadbalancer/LoadBalancer.php