Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/275739

Change subject: Lower "max lag" and $wgAPIMaxLagThreshold to 8/6
......................................................................

Lower "max lag" and $wgAPIMaxLagThreshold to 8/6

Change-Id: I17054c740ec7f1af01cebb30654e979135e375b4
---
M wmf-config/CommonSettings.php
M wmf-config/db-codfw.php
M wmf-config/db-eqiad.php
3 files changed, 5 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/39/275739/1

diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index b8e05bf..6dd0f50 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -212,6 +212,9 @@
 
 # Disallow web request DB transactions slower than this
 $wgMaxUserDBWriteDuration = 6.0;
+# Activate read-only mode for bots when lag is getting high.
+# This should be lower than 'max lag' in the LBFactory conf.
+$wgAPIMaxLagThreshold = 6;
 
 ini_set( 'memory_limit', $wmgMemoryLimit );
 
diff --git a/wmf-config/db-codfw.php b/wmf-config/db-codfw.php
index 0733994..34076d7 100644
--- a/wmf-config/db-codfw.php
+++ b/wmf-config/db-codfw.php
@@ -167,7 +167,7 @@
        'password'        => $wgDBpassword,
        'type'            => 'mysql',
        'flags'           => DBO_DEFAULT,
-       'max lag'         => 10, // should be safely less than 
$wgCdnReboundPurgeDelay
+       'max lag'         => 8, // should be safely less than 
$wgCdnReboundPurgeDelay
        'variables'   => array(
                'innodb_lock_wait_timeout' => 15
        )
diff --git a/wmf-config/db-eqiad.php b/wmf-config/db-eqiad.php
index 3f49b4d..862c942 100644
--- a/wmf-config/db-eqiad.php
+++ b/wmf-config/db-eqiad.php
@@ -162,7 +162,7 @@
        'password'        => $wgDBpassword,
        'type'            => 'mysql',
        'flags'           => DBO_DEFAULT,
-       'max lag'         => 10, // should be safely less than 
$wgCdnReboundPurgeDelay
+       'max lag'         => 8, // should be safely less than 
$wgCdnReboundPurgeDelay
        'variables'   => array(
                'innodb_lock_wait_timeout' => 15
        )

-- 
To view, visit https://gerrit.wikimedia.org/r/275739
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I17054c740ec7f1af01cebb30654e979135e375b4
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to