Page MenuHomePhabricator

Report cpu seconds spent from MediaWiki to Graphite
Closed, DeclinedPublic

Description

We currently report wall-clock time from MediaWiki from WikimediaEvents (src) from $_SERVER[REQUEST_TIME_FLOAT] to the start of post-send. We report this for page edits and for page views.

I propose to also add a cpu seconds metric for page edits, page views, and ResourceLoader responses.

We do have some limited experience with measuring cpu seconds in MediaWiki (codeseach results):

  • The Parser measures and exports it as limitreport-cputime meta data (measure, report)
  • The SectionProfiler can meaure cpu time (src)
  • The Parser benchmark measures cpu time (src)

Event Timeline

Krinkle renamed this task from Report cpu seconds to Graphite from MediaWiki to Report cpu seconds spent from MediaWiki to Graphite.Jul 13 2019, 12:31 AM
CDanis added a parent task: Restricted Task.Nov 12 2019, 7:27 PM

For the most part we focus on wall-time more than cpu-time. I don't think we need to both everywhere.

I see T225968 as the spiritual successor to this task in terms of the higher-level purpose of more granular and structured time spans from various MW endpoints.