Add bounded provider-wide request scheduler with queue and 429 backpressure #73
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/llm-log#73
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?
Goal
Make llm-log an admission/scheduling layer for shared LLM credentials instead of allowing every client request to immediately consume an upstream connection.
First slice
429 Too Many RequestswithRetry-Afterwhen the queue is full or the queue-wait budget is exhausted.Transparent streaming behavior
The normal proxy path must remain transparent. It must not emit SSE response-body bytes while queued because that would commit the downstream HTTP status before the upstream responds. Opt-in queue-status/SSE behavior for smart clients is tracked separately in #73.
Configuration
Add explicit scheduler settings with safe defaults, including max active requests, max queue depth, queue timeout, and retry-after.
Tests
Cover at least:
Retry-Afterheader;This is the first implementation slice before provider/client fingerprint profiles.