Page MenuHomePhabricator

Improve the logging we're doing in the orchestrator and evaluator to have a better idea of where the slowness is coming from
Open, In Progress, HighPublic

Description

Our logging from the orchestrator and evaluators is not great.

  • Consistently use msg or message or whatever is WMF-standard and adjust log dashboards according
    • Determine standard
    • Adjust code to standard
    • Deploy image with new code
    • Adjust dashboard columns/filters, if needed
  • Have payload data actually show up, with the same things everywhere
    • The x-request-id must be in every request-specific log message
    • ???
  • ???

Details

TitleReferenceAuthorSource BranchDest Branch
Update function-schemata sub-module to HEAD (851131f)repos/abstract-wiki/wikifunctions/function-orchestrator!193jforrestersync-function-schematamain
Update function-schemata sub-module to HEAD (851131f)repos/abstract-wiki/wikifunctions/function-evaluator!227jforrestersync-function-schematamain
Update function-schemata sub-module to HEAD (851131f)repos/abstract-wiki/wikifunctions/wikilambda-cli!41jforrestersync-function-schematamain
Refactor LoggerWrapper for better outputs to LogStashrepos/abstract-wiki/wikifunctions/function-schemata!127ecarggrace/T364413/update-logging-to-standardmain
Draft: Improve logging in evaluatorrepos/abstract-wiki/wikifunctions/function-evaluator!226ecarggrace/T364413/update-logging-to-standardmain
Draft: Improve logging in orchestratorrepos/abstract-wiki/wikifunctions/function-orchestrator!187ecarggrace/T364413/update-logging-to-standardmain
Adjust logger to reflect MW standardrepos/abstract-wiki/wikifunctions/function-schemata!123ecarggrace/T364413/update-logging-to-standardmain
Draft: Adjust our logging to fit MW standardrepos/abstract-wiki/wikifunctions/function-orchestrator!186ecarggrace/T364413/update-logging-to-standardmain
Customize query in GitLab

Event Timeline

Jdforrester-WMF renamed this task from Improve the logging we're doing in the orchestrator and evaluator to have to Improve the logging we're doing in the orchestrator and evaluator to have a better idea of where the slowness is coming from.May 7 2024, 6:53 PM
Jdforrester-WMF triaged this task as High priority.
Jdforrester-WMF added a subscriber: Mcastro.
ecarg subscribed.

Updates/notes:

Personal Qs TODO:

  • Are we able to view THE logs (that we feed into our Logstash) in our local docker logs??
ecarg changed the task status from Open to In Progress.Mon, Jun 10, 6:43 PM

Note/findings:

  • TIL there is a Beta LogStash:
  • Either way, level and severity levels are not aligned and contradict one another. We need to have both labels be identical. How is 'severity' being defined? I can't see this in Prod LogStash though, while in Beta, formatting is much clearer

Change #1051731 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (851131f)

https://gerrit.wikimedia.org/r/1051731

Change #1051807 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2024-06-17-221517 to 2024-07-03-155425

https://gerrit.wikimedia.org/r/1051807

Change #1051808 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2024-06-11-161031 to 2024-07-03-153821

https://gerrit.wikimedia.org/r/1051808

Change #1051807 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2024-06-17-221517 to 2024-07-03-155425

https://gerrit.wikimedia.org/r/1051807

Change #1051808 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2024-06-11-161031 to 2024-07-03-153821

https://gerrit.wikimedia.org/r/1051808

@ecarg: Heads-up that your change to the logger wrapper is now (finally!) deployed.

Change #1051731 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (851131f)

https://gerrit.wikimedia.org/r/1051731