Page MenuHomePhabricator

Monitor CirrusSearch index failures
Closed, ResolvedPublic5 Estimated Story Points

Description

Currently CirrusSearch index operations might fail silently. While we expect some index operations to fail from time to time we should have better visibility on their rate but also better way to investigate the type of failures.
As of today we know we could fail because:

  • when a new wiki is added the corresponding index might be missing
  • a bug in opensearch or some of our plugin could cause some pages to constantly fail (T402220)

But the main problem is that we generally find these problems by "accident". We should have better ways to be aware of these issue.

AC:

  • Add a "SLO" like dashboard to track index failures could help (e.g. search update lag)
    • does not seem worth the efforts we seem to have 0 errors in the last 12 hours, it might be perhaps be fine to be strict on alerting rather than having SLO.
  • Add some alerting either via the pyrra or alert manager
  • Add more logging from the streaming updater to send indexing errors to logstash

Details

Related Changes in Gerrit:
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Add metrics for individual bulk action failuresrepos/search-platform/cirrus-streaming-updater!195dcaussemonitor-bulk-action-failuresmain
Customize query in GitLab

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1198372 had a related patch set uploaded (by DCausse; author: DCausse):

[operations/alerts@master] search: alert on index failures

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

Change #1198372 merged by jenkins-bot:

[operations/alerts@master] search: alert on index failures

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