Repository navigation
Commit de3cc36
feat(search): pick the search backend per relay and shadow-compare OpenSearch
The integer flag search.backend holds one value for the whole relay:
0 answers from Postgres, 1 also runs the same first-page query on
OpenSearch and only compares and measures it, 2 answers from OpenSearch.
A relay never serves some communities from one backend and some from the
other. With LaunchDarkly a change applies within seconds, which is the
rollback.
Searches that name no message kind stay on Postgres at every value. At 2
a failed OpenSearch search fails the request; nothing falls back.
Metrics and the shadow log line never carry query text.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Salman Mohammed <smohammed@squareup.com>1 parent a08a5f0 commit de3cc36
13 files changed
Lines changed: 1612 additions & 41 deletions
File tree
- crates
- buzz-relay/src
- handlers
- buzz-search
- src
- tests
- search_suite
- docs
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
143 | 149 | | |
144 | 150 | | |
145 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
0 commit comments