Manual:$wgAPIMaxLagThreshold

API: $wgAPIMaxLagThreshold
Maximum amount of DB lag on a majority of DB replica DBs to tolerate before forcing bots to retry any write requests via API errors.
Introduced in version:1.27.0 (Gerrit change 249191; git #453d8860)
Removed in version:Still in use
Allowed values:(integer)
Default value:7

Details

This should be lower than the 'max lag' value in $wgLBFactoryConf .