mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1809] [Feature]: a queue cap that answers 429 + Retry-After instead of queueing without end #716
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#716
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?
Originally created by @streber42 on GitHub (Oct 10, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1809
What do you want to do?
Run Strata behind a proxy (litellm) that sends it more requests than it can serve, and have Strata say "busy, come back in N s" once its queue is long enough, instead of queueing every request without end.
Today every request waits its turn, however many there are. On two RTX 3090s (Unsloth UD-Q4_K_XL, 0.1.40.1,
"parallel": 4) with live agent traffic (about 16K prompt tokens and 240 output tokens per request), the queue reached about 22 requests and one 45K-token prompt waited more than 6 minutes. Clients time out while they wait, and a proxy in front cannot tell "busy" from "slow", so it cannot send the overflow to another server.The workaround today is to limit concurrency in the proxy, e.g. litellm's
max_parallel_requests. That has to be tuned per box, it knows nothing about Strata's slots, and it does not cover clients that talk to Strata directly.What would help: a setting such as
"max_queue": N, so that a request beyond the running slots + N gets an immediate HTTP 429 with aRetry-Afterheader. A 429 is what litellm and the OpenAI and Anthropic SDKs already retry, and litellm also uses it to fail over to another deployment. A 503 would make litellm treat the server as broken. The default would stay "no limit".PR #1808 implements this; it runs on that box now.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.