Page MenuHomePhabricator

add heartbeat metric to Evaluator
Closed, ResolvedPublic

Description

  • Our Eval pods oftentimes do not crash/restart successfully, aka. when they should so we cannot rely on pod health
  • The service is not terribly high traffic so we cannot simply rely on request count

Adding a 'heartbeat' is a plausible workaround to alert on an Evaluator outage

Details

Related Changes in Gerrit:
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
add startup metricsrepos/abstract-wiki/wikifunctions/function-evaluator!454ecarggrace/T411744/add-start-end-requests-metricmain
add heartbeat to servicerepos/abstract-wiki/wikifunctions/function-evaluator!449ecarggrace/T411744/add-heartbeat-metricmain
Customize query in GitLab

Event Timeline

We have k8s's readiness probe currently pointed to /_info; do we want to point that to a new endpoint that tells it whether or not the service is working instead? /_healthcheck that tries to evaluate 2+2 or whatever and immediately exits if there's no available process?

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

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2025-12-10-150641 to 2026-01-07-132938

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

Change #1224078 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2025-12-10-150641 to 2026-01-07-132938

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

@ecarg: This has now been deployed; please validate and mark as Resolved (or move back to In Engineering, as appropriate).

metrics is live and wired up on Grafana