Page MenuHomePhabricator

[versioned maps] Investigate: many more "Stable cache miss" events than anticipated
Closed, ResolvedPublic3 Estimated Story Points

Description

We added logging to record each time mapdata is requested for a stable (but non-latest) revision of a page, which was not found in the FlaggedRevs parser cache. This was expected to be a rare edge case, since mapdata is normally requested in a second round-trip from the client, only after the page is rendered, so the page should already be in the cache. Instead, we're seeing a huge number of these events on certain wikis since the versioned maps deployment yesterday.

image.png (305×1 px, 83 KB)

https://logstash.wikimedia.org/app/dashboards#/view/AXWYB4nN2lgCwKx7QZ8C?_g=h@d01ba18&_a=h@dfcb080

Let's debug and try to understand how this happens.

Event Timeline

thiemowmde set the point value for this task to 3.May 11 2022, 12:18 PM

Patch will be deployed with next week's train, or we can backport on Monday.

Note: As of today there is a sharp drop, just as anticipated. Before 2022-05-19 it's approx. 10,000 events/hour. After it's approx. 200/hour. In other words, we have a 98% cache hit rate. The remaining ones are all from wmf.12 wikis, mostly from ukwiki, vecwiki, and arwiki. My theory is that these are somehow connected to edits/previews, not to views.