Add query-rate windows (QPS) to /status recent_queries
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- python
调研方向
Read #231, #253, and #268 to understand the existing recent_queries implementation, the earlier timestamped query_log design, and the clock issue. Locate the /status handler and query tracking code, then check their tests. Done means recent_queries reports the requested rate windows, inter-arrival statistics, history span, and time since the last query using wall-clock timestamps.
由索引模型根据 Issue 内容生成。
描述
#231 adds recent_queries with mean and end-to-end p50/p95/p99 latency, but deliberately does not carry over the rate-tracking from #253:
queries_last_10s/_60s/_300sand the matchingqueries_per_second_*inter_arrival_ms(mean/median/min/max/p95)history_span_seconds,time_since_last_query_seconds
Reason for deferring: percentiles need only durations (which recent_query_times already stores), but rate windows need a timestamp per query, i.e. reverting recent_queries to #253's (timestamp, duration) query_log design. That is a real design change rather than a few lines, so it was left out of #231.
Value: it directly answers "is Solr slow because it is overloaded, or because something is wrong with it?" — currently approximated via solr_metrics.host.system_load_average / system_cpu_load and by sampling query_handler.requests twice.
If implemented, note #268's finding that perf_counter_ns is monotonic-since-boot and produced a nonsense time_since_last_query_seconds: 1.7e9 in production — use wall-clock time.time() for the timestamps.
- 主要语言
- Python
- 星标
- 5
- 派生
- 4
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NCATSTranslator/NameResolution 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 43/100
-
难度 3/5 1-2 天 新手友好度 66/100
-
难度 5/5 一周以上 新手友好度 25/100
查看 NCATSTranslator/NameResolution 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 86/100
benchflow-ai/skillsbench#1090 ·
-
Missing unit tests for human-readable date/time formatters in utils/datetime.py可能已有人在做 @prabhleen2317 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
apache/iceberg-python#4387 ·
维护者通常 1 天内回复
-
[BUG] Hermes MCP adapter drops cwd, extra passthrough keys and the SSE transport when writing config.yaml可能已有人在做 @Parth-Vasave 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
backend bug
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 78/100
NVIDIA/numba-cuda-mlir#467 · 1 条评论 ·
维护者通常 3 天内回复