mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #5306] [Engine] Keep concurrent Monitor progress and rates request-owned #5378
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5378
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/5306
Author: @shoucandanghehe
Created: 11/5/2026
Status: 🔄 Open
Base:
main← Head:upstream/monitor-request-metrics📝 Commits (2)
959ce82Serving metrics: keep prompt progress and rates on their request1a3f2cfServing tests: simplify concurrent Monitor regressions📊 Changes
7 files changed (+188 additions, -30 deletions)
View changed files
📝
docs/DETAILS.md(+5 -0)📝
serve/server.py(+44 -13)📝
serve/test_ds_parallel.py(+36 -1)📝
serve/test_parallel.py(+73 -1)📝
serve/test_replicas.py(+26 -2)📝
serve/test_stream_ownership.py(+1 -10)📝
serve/web/app.js(+3 -3)📄 Description
Problem
With concurrent requests, the Monitor can mix one request’s prompt length with another’s progress. A queued request can also clear the active reader’s progress.
When one request reads its prompt while another generates tokens, the Speed card can hide active decoding. The progress row also uses the aggregate rate as though it belonged to one request.
Fix
Related: #465.
Validation
Tested
1a3f2cf6on Linux/WSL2, Python 3.14.4, using the real server with fake native-protocol producers.All 141 tests passed. Four regressions cover waiting requests, mixed prefill/decode, replicas and DeepSeek parallel requests; all four fail against the unpatched server.
Browser checks with the fake engine confirmed that two requests at 10 tok/s each show 10 tok/s for the selected request and 20 tok/s in the Speed card. Aggregate decode speed also remains visible during another request’s prefill.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.