mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4208] [Docs] Several Strata PCs behind one address with strata-router #4950
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#4950
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/4208
Author: @mrq1911
Created: 10/26/2026
Status: 🔄 Open
Base:
main← Head:docs-strata-router📝 Commits (1)
e6dc48fdocs: several Strata PCs behind one address (strata-router)📊 Changes
3 files changed (+79 additions, -0 deletions)
View changed files
📝
docs/BATCHING.md(+2 -0)📝
docs/README.md(+1 -0)➕
docs/STRATA_ROUTER.md(+76 -0)📄 Description
Problem and result
With more than one PC, each runs its own Strata server and every app has to pick one. A conversation that lands on a different server than its last message reads its whole prompt again (~190 s at 262k tokens on an RTX 3090), where the server that holds it restores it from its conversation cache in ~1.4 s. strata-router, a small separate project of mine (one Node.js file, no dependencies), puts the servers behind one address and keeps each conversation on the server that already read it. This adds a guide page for it, with the numbers measured on two RTX 3090 PCs, linked from the docs index and BATCHING.md. Docs only; nothing in Strata changes.
Related discussion
none
Approach
A guide page in the shape docs/README.md asks for (purpose, quick start, settings, dated measurements), one row in the docs index under "Use Strata", and one line in BATCHING.md for readers who outgrow one PC. The page explains each setting in Strata's own terms: the API key on
/metrics, the Host check (DNS rebinding protection) and--parallel. It names the version the numbers were measured on.Validation
Passed:
node test/test.mjsin strata-router at66ab936, Node 25.7.0 on Linux 6.19: 87 of 87 checks against mock Strata servers, including a keyed/metrics, a server without batch slots (onlylive.statereading/generating), anunloadedserver, a server restart, and requests sent to a server directly instead of through the router. The same suite on GitHub Actions with Node 20, 22 and 24 at that revision: passed (run).--kv int8,--batch 2, conversation cache 32 GiB / 8 slots): a load test of 6 simulated coding agents through strata-routere90e957(10 turns each, a ~3k-token shared system prompt, 1.5–3k-token tool outputs, a side request every third turn, one fork), two runs per setup, 158 requests per setup:d5ea7133) on both PCs: 0 failed, 84–85% of prompt tokens served from the conversation cache, 227 parks and 129 evictions, median first token of an agent turn 3.2 s / 3.6 s on the two PCs.4b9e05a) on both PCs, plus--conversation-cache-min-tokens 2048: 0 failed, 84%, 178 parks and 86 evictions, 2.3 s / 3.8 s. No first-token stall: the slowest short request took 2.4 s at the server (2.1 s on 0.1.40.3).e6dc48f(base4b9e05a): every](...)target ingit diff 4b9e05a..HEAD -U0 -- docs, relative ones withtest -f docs/<target>, external ones withcurl -w '%{http_code}'.STRATA_ROUTER.mdexists;https://github.com/mrq1911/strata-routeranswers 200.Failed:
none observed
Not run:
strata launchline in the quick start: built from the option table in TERMINAL_LAUNCH.md, not executed. The 0.2.6 servers above were built from source and started withserve/server.py.docs/measurements.md(two RTX 3090 PCs, Strata 0.1.40.3, Q2_0, 262,144 context,--kv int8,--batch 2, short prompts, 200 output tokens, repeated, October 2026), which does not record the exact benchmark commands.Limits
/metricscode rather than running it. 0.2.6 was only load-tested as above, not re-benchmarked.--conversation-cache-min-tokens), so the drop in parks and evictions is not attributed to either./metricspolls (STRATA_API_KEY_FILE); clients still send their own key on requests. Current Strata only recommends a key on a network.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.