Start reserve engines in place of the recovery wave

Open
#799 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
backend, search

Research direction

Start by reading the orchestrator's engine-wave logic and the tests that cover recovery waves; the issue does not name their file paths, so locate them in the repository. Then read #798 for the shared deadline this change depends on. Done means reserves start during the first wave when engines are slow or failing, stay idle when engines answer in time, recovery-wave code and tests are removed, and the attached comparison shows p95 search time does not rise and questions found do not drop.

Written by the indexing model from the issue text.

Description

area:search maintainers roadmap

Problem

When fewer than half the engines answer, the orchestrator waits for the first wave to end and then runs a whole recovery wave with its own deadline. Slow searches come from this stacking.

Change

  • Start reserve engines during the first wave, as soon as the first engines are slow or failing, inside the one deadline from #798.
  • Delete the recovery wave.

Done when

  • The recovery wave code and its tests are gone.
  • A test with fake engines shows reserves start when the first engines are slow or failing, and do not start when they answer in time.
  • p95 search time on the referee search set (summary.searchqa.p95Ms) does not rise, and questions found (summary.searchqa.found) do not drop, against the run before this change. The compare output is attached.

Out of scope

The backfill and starvation waves: #818. Query rewrites: #813. Ranking.

Depends on: #798

Dominant language
TypeScript
Stars
5.4k
Forks
445
Avg merge
20h 41m
Merged PRs (30d)
85

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from KnockOutEZ/wigolo

All issues in KnockOutEZ/wigolo

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.