Caching overview
From Wikitech
Revision as of 01:00, 22 February 2013 by Greg G (WMF) (Talk | contribs)
Contents |
Picture
__________________
| browser/the webz |
|__________________|
|
|
|
____________________
| LVS |
| (load balancer) |
|____________________|
|
|
|
|
__________________________________________________________
| Front End Caches (Squid or Varnish) |
| Short lived caches (~10sec, mostly to prevent DDOS) |
| Live in memory |
|__________________________________________________________|
|
|
|
_____________________________________
| Back End Caches (Squid or Varnish) |
| Longer lived caches |
| Live on disk |
|_____________________________________|
|
|
|
_______________________________
| Mediawiki |
| Apaches |
| parsercache |
| * Currently set at 1 year |
|_______________________________|
Caching Systems
- Squid: text, upload in pmtmp
- Varnish: bits, mobile, and upload in eqaid
Caching Settings
- Default squid cache expiration is 30 days.
- Default parsercache expiration is 365 days
Current method for invalidating cache content
For ParserCache:
- puppet: manifests/misc/maintenance.pp
- class misc::maintenance::parsercachepurging
- Set to 30 days
- class misc::maintenance::parsercachepurging
Ideas to Implement
- Use of ESI
- This will, probably, help our logged-in users who currently are given the worst experience
- Others? Please add them here!