Awight has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/393945 )
Change subject: Cache anti-stampede improvements
......................................................................
Cache anti-stampede improvements
Should prevent cache update race conditions.
Bug: T181567
Change-Id: I7d472cc23a45fd0a1c134b369ccd671cc1d5acee
---
M includes/Stats.php
1 file changed, 7 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ORES
refs/changes/45/393945/1
diff --git a/includes/Stats.php b/includes/Stats.php
index 777fb2c..53872fc 100644
--- a/includes/Stats.php
+++ b/includes/Stats.php
@@ -113,7 +113,13 @@
$ttl =
WANObjectCache::TTL_MINUTE;
return [];
}
- }
+ },
+ [
+ // Try to only let one datacenter
thread manage cache updates at a time
+ 'lockTSE' => 10,
+ // Avoid querying cache servers
multiple times in a web request
+ 'pcTTL' => $cache::TTL_PROC_LONG,
+ ]
);
return $result;
} else {
--
To view, visit https://gerrit.wikimedia.org/r/393945
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7d472cc23a45fd0a1c134b369ccd671cc1d5acee
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ORES
Gerrit-Branch: master
Gerrit-Owner: Awight <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits