The availability SLO defined in T431145: Implement OpenSearch SLO for linked artifacts (ST6.2.2) and documented on SLO/Search counts only requests that reached the OpenSearch clusters. Requests shed by the pool counter are rejected before that point and appear in neither mediawiki_CirrusSearch_backend_failures_total nor mediawiki_CirrusSearch_request_time_seconds_count, even though the user gets cirrussearch-too-busy-error and sees no results.
@RLazarus raised this in review: overload is one of the main ways search goes unavailable to users, so it should eventually count against the SLI.
It needs no instrumentation work for query-availability. Util::doPoolCounterWork() already records mediawiki_CirrusSearch_pool_counter_seconds_count{status="failure"}. Because shed requests are in neither existing series, they have to be added to both sides:
numerator += sum(rate(mediawiki_CirrusSearch_pool_counter_seconds_count{status="failure"}[window]))
denominator += the sameWhat it costs. Over the 30 days to 2026-10-05, 3,066,221 rejections out of 6,347,862,180 acquisitions, 0.048%. Folding them in moves query-availability from 99.977% to 99.932%, against a 95% objective. So this is about the number being honest, not about meeting the target.
Open question: which pools are in scope. Rejections over the same window:
| Pool | Rejections |
|---|---|
| GeoData_spatial_search | 1,589,813 |
| Search | 1,089,584 |
| ExpensiveFullText | 355,198 |
| Automated | 23,881 |
| Completion | 7,574 |
| MoreLike | 141 |
| Prefix | 32 |
GeoData spatial search is over half the total and is a different user-facing feature from search. Automated is bot traffic. Both are arguments for scoping by pool rather than taking the sum, and that choice should be made deliberately.
Not yet possible for a weighted-tags-scoped variant. pool_counter_seconds_count carries no weighted_tags label, so a scoped availability SLI cannot include shedding until the metric gets the same treatment T434975: Label has-weighted-tag queries for scoped latency metric gave the others.
Proposed for the December to February SLO quarter, as revision 5 of search/search.yml, together with a refreshed figure on the wiki page.