Since the API log is behind a layer of cache, it isn't giving us all of the information we were hoping for. The following questions would be better answered by checking the static image request log, which will show us every pageview on both dynamic and static map configurations:
All results are extremely rough estimates extrapolated from a sample hour or day around 2021-11-01. The hour had N=2.3M and the day had N=61M maps.wikimedia.org requests, I chose based on how much data each query could handle without timing out or running out of memory.
Must have
- Can we estimate what percentage of pageviews include maps, and average number of maps per mappy/non-mappy pageview?
- Table in T295675#7506319 . English Wikipedia has 0.05 maps per pageview, English Wikivoyage has > 1 map per pageview.
- How many unique page titles are requested?
- Can only be answered for maps with overlays.
- I've included a synthetic number to give us a relative idea of the detected "title diversity", proportional to how many unique titles we see per thousand pageviews.
- How do mappy page titles compare to unique page titles requested on each wiki?
- Unique page titles viewed outside of maps are not a simple statistic to extract and the outcome is questionably useful. I'll decline this for now.
Nice to have
- What proportion of map requests include a mapdata overlay?
- 10% of requests have mapdata overlays.
- by wiki: see table in T295675#7506319
- What proportion of requests have a domain or referer (so can be traced to a wiki)?
- 35% have no referer (due to secured browser settings)
- 90% have no domain (so have no overlay)
- 31% have neither referer nor domain
- How many of the requests are from a known WMF wiki vs a third party?
- Are we successfully serving those?
- Declined, there's some kind of problem with external servers making a lot of failing requests to us but should be split into a new investigation.
- What's the typical request volume?
- > 700 requests per second.
- What's the varnish cache hit rate for maps?
- 75% hit rate
- How performant is the endpoint?
- The median is 0.3s, 95th percentile at 3s.
- How prevalent are mobile app, desktop, and mobile web?
- 75% desktop view, 25% mobile web view, 0.1% mobile app
- How prevalent are errors?
- > 4% of requests error with a 4xx status.