Manual:$wgCdnReboundPurgeDelay

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgCdnReboundPurgeDelay and the translation is 17% complete.

Other languages:
English • ‎español • ‎中文 • ‎日本語
Squid: $wgCdnReboundPurgeDelay
Secondary delayed purges of URLs
Introducido en la versión:1.27.0 (git #01c2b0a4)
Eliminado en la versión:aún se usa
Valores permitidos:(positive integer, which represents a number of seconds)
Valor predeterminado:0

Véase también task T113192.

Allows to provide secondary delayed purges of URLs from CDN to mitigate DB replication lag and WAN cache purge lag.

If set, any SquidPurge call on a URL or URLs will send a second purge no less than this many seconds later via the job queue. This requires delayed job support.

This should be safely higher than the 'max lag' value in $wgLBFactoryConf , so that slave lag does not cause page to be stuck in stales states in CDN.

This also fixes race conditions in two-tiered CDN setups (e.g. cdn2 => cdn1 => MediaWiki). If a purge for a URL reaches cdn2 before cdn1 and a request reaches cdn2 for that URL, it will populate the response from the stale cdn1 value. When cdn1 gets the purge, cdn2 will still be stale. If the rebound purge delay is safely higher than the time to relay purge to all nodes, then the rebound purge will clear cdn2 after cdn1 was cleared.