As part of our commitment to Derived Data, we want to provide an SLO for search latency. We are specifically interested in queries for articles with suggestions, in other words, queries for weighted tags. Hence, if we could label such queries, we could write a focused grafana/prometheus query for this dimension.
Description
Details
- Other Assignee
- EBernhardson
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| Add metric dimensions for weighted tags constraints | Peter Fischer | mediawiki/extensions/CirrusSearch | master | +271 -6 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | pfischer | T431145 Implement OpenSearch SLO for linked artifacts (ST6.2.2) | |||
| Resolved | pfischer | T434975 Label has-weighted-tag queries for scoped latency metric |
Event Timeline
I think we need some work on Discovery-Search side to label queries before Data-Platform-SRE can start helping. Ping us when you need us!
Change #1330612 had a related patch set uploaded (by Peter Fischer; author: Peter Fischer):
[mediawiki/extensions/CirrusSearch@master] Add metric dimensions for weighted tags constraints
As suggested today, I looked into Searcher::getPoolCounterType() as an alternative source for a label. The hypothesis is: If we measure latency only for simple queries [including weighted tags], we already have a metric to back the SLO. Here's a notebook to test it, which extracted the following for September 1st (mw_* is the full round trip time including processing in CirrusSearch, es_* is time spend by OpenSearch):
| pool | requests | mw_p50 | mw_p95 | mw_p99 | es_p50 | es_p95 |
|---|---|---|---|---|---|---|
| CirrusSearch-Search | 11983415 | 45 | 250 | 405 | 17 | 212 |
| CirrusSearch-MoreLike | 1029093 | 178 | 616 | 1034 | 174 | 611 |
| CirrusSearch-Prefix | 78575 | 28 | 137 | 312 | 23 | 130 |
| CirrusSearch-Automated | 75035 | 34 | 685 | 1302 | 29 | 666 |
| CirrusSearch-ExpensiveFullText | 37450 | 131 | 1661 | 16721 | 123 | 1654 |
| CirrusSearch-Semantic | 7 | 414 | 723 | 723 | 362 | 687 |
| pool | weighted_tags | requests | mw_p50 | mw_p95 | mw_p99 | es_p50 | es_p95 |
|---|---|---|---|---|---|---|---|
| CirrusSearch-Search | false | 11558934 | 48 | 253 | 409 | 18 | 215 |
| CirrusSearch-MoreLike | false | 1029210 | 178 | 616 | 1032 | 174 | 611 |
| CirrusSearch-Search | true | 426772 | 6 | 45 | 102 | 3 | 39 |
| CirrusSearch-Prefix | false | 78632 | 28 | 137 | 309 | 22 | 128 |
| CirrusSearch-Automated | false | 75142 | 34 | 683 | 1289 | 29 | 663 |
| CirrusSearch-ExpensiveFullText | false | 32972 | 161 | 2148 | 17261 | 150 | 2140 |
| CirrusSearch-ExpensiveFullText | true | 4570 | 41 | 85 | 144 | 35 | 78 |
| CirrusSearch-Semantic | false | 7 | 437 | 723 | 723 | 350 | 687 |
Change #1330612 merged by jenkins-bot:
[mediawiki/extensions/CirrusSearch@master] Add metric dimensions for weighted tags constraints
pfischer opened https://gitlab.wikimedia.org/repos/sre/slothslos/-/merge_requests/51
search: add weighted tags query latency SLO (T431145)