GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing wikitech.wikimedia.org — Parser cache - Wikitech The ParserCache at WMF is an instance of the MediaWiki parser cache that primarily uses a dedicated MariaDB cluster, with hot keys also residing in Memcached.
Current configuration
The Eqiad and Codfw data centers each have their own ParserCache databases. MediaWiki's ParserCache is designed to store values by page rather than revision. MediaWiki validates the value at runtime against the expected revision and touched timestamp. The page-based key naturally limits/updates storage, manages regeneration load, and allows serving of stale values during times of high load (PoolCounter). While the data centers use best-effort MySQL replication between them, the values may (consistently) differ between data centers if both are valid and fresh. The purge action in MediaWiki bumps the You can read more about how ParserCache and its garbage-collection script works in T282761 (2021). HistoryPrior to 2011, the parser cache was solely memcached-based. In 2011, we introduced a MySQL-based parser cache as second tier in addition to Memcached. See also the Disk-backed object cache initiative (Project pitch, and Project status) for details of the 2011 project, and e.g. the evaluation of Ehcache before choosing MySQL. From 2020 to 2023, there was briefly a third tier in the form of a local on-host Memcached on each webserver (T264604). In May 2021, ParserCache retention for talk pages was temporary reduced from 30 days to 10 days, and other pages were similarly reduced from 30 to 21 days in an attempt to mitigate storage reaching its capacity (T280605, change 685181). In June 2021, the daily In Dec 2023, after the above garbage collection speed-up and after adding additional database hosts to the ParserCache cluster, ParserCache retention defaults were raised back to 30 days for all pages (T280604). In Nov 2024, ParserCache adopted hash stops in its cache keys so that metadata and ParserOutput keys for a given page are stored on the same shard (T373037). Given that a ParserOutput cache hit depends on a metadata cache hit, this ensures that a 1/4 shard loss results in approximately a 25% drop in cache hits instead of 50%. In July 2025, the daily |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |