Six concurrent autocomplete lookups for "vitamin a" each blocked on Solr for 4-5 minutes
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 43/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- backend, performance, search
Hướng nghiên cứu
Start by tracing the autocomplete request path and the Solr query construction for short queries with limit=100 and a biolink_types filter. Compare behavior for concurrent identical requests with the per-request concurrency bound discussed in #273; use the linked log analysis if available. Done means identifying and documenting or fixing the cause of the multi-minute latency under a concurrent burst, with a reproducible check.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
While characterizing NameRes autocomplete traffic from CloudWatch (translator-eks-ci-blue-cluster application logs), the six slowest lookups in a 29-day window were all the same query, issued within 180 ms of each other.
2026-08-07 19:17:26.612 "vitamin a" 321253.90 ms waiting for Solr
2026-08-07 19:17:26.647 "Vitamin A " 268760.21 ms
2026-08-07 19:17:26.682 "vitamin A" 313424.73 ms
2026-08-07 19:17:26.719 "Vitamin A" 264460.04 ms
2026-08-07 19:17:26.756 "Vitamin A" 275157.98 ms
2026-08-07 19:17:26.791 "vitamin A" 308571.10 ms
All six: autocomplete=True, highlighting=False, offset=0, limit=100, biolink_types=['SmallMolecule'], only_prefixes=, exclude_prefixes=, only_taxa=None, pod name-lookup-web-server-dep-648d67989c-288dr, image translator-name-lookup:v1.5.2. All six logged SLOW QUERY.
Two things stand out:
- The absolute latency. 4.4 to 5.4 minutes of Solr wait for a two-word common query with a single Biolink type filter.
tookexceeds the Solr wait by only ~25 ms in every case, so essentially all of it is Solr, not the NameRes app layer. - The arrival pattern. These are ~35 ms apart, so they were in flight concurrently rather than issued one after another — a caller firing six near-identical requests in under 200 ms, differing only in capitalization and a trailing space. Whether that is a retry loop, a type-ahead widget without debouncing, or six real users is not something the logs can distinguish (there is no session or request ID). But six concurrent
limit=100autocomplete queries appear to be enough to put Solr into a state where each takes minutes.
For scale: this is 6 of the 7 lookups in the whole 607-row autocomplete export that exceeded 60 s of Solr wait. Median autocomplete Solr wait in the same export is 48.5 ms. So this is not a slow tail — it is a distinct failure mode that only appears under a concurrent burst.
Worth investigating whether short-ish autocomplete queries at limit=100 with a biolink_types filter have a pathological Solr plan that only bites under concurrency, and whether NameRes should be collapsing or bounding identical in-flight lookups. Possibly related to the per-request concurrency bound discussed in #273.
Happy to share the parsed log export or the analysis notebook if useful — it lives in TranslatorSRI/babel-validation#107.
- Ngôn ngữ chính
- Python
- Star
- 5
- Fork
- 4
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NCATSTranslator/NameResolution
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 66/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Tất cả issue của NCATSTranslator/NameResolution
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
benchflow-ai/skillsbench#1090 ·
-
Missing unit tests for human-readable date/time formatters in utils/datetime.pyCó thể đã có người làm @prabhleen2317 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
apache/iceberg-python#4387 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] Hermes MCP adapter drops cwd, extra passthrough keys and the SSE transport when writing config.yamlCó thể đã có người làm @Parth-Vasave đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
microsoft/apm#3749 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
backend bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NVIDIA/numba-cuda-mlir#467 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày