Commit af4c54f
fix(server): add embedding connectivity probe to /ready endpoint (volcengine#1910)
The /ready endpoint checks AGFS, VectorDB, APIKeyManager, and Ollama
but not the embedding provider. When the provider is down (500 or
unreachable), ov find silently times out with a misleading "Network
error" and neither ov health nor ov ready surfaces the real cause.
Add an embedding probe (single-token embed with 10s timeout) so that
ov ready reports a broken embedding backend before any search is
attempted.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent bc8fe8b commit af4c54f
1 file changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
24 | 38 | | |
25 | 39 | | |
26 | 40 | | |
| |||
120 | 134 | | |
121 | 135 | | |
122 | 136 | | |
123 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
124 | 156 | | |
125 | 157 | | |
126 | 158 | | |
| |||
0 commit comments