[PR #4208] [Docs] Several Strata PCs behind one address with strata-router #4950

Open
opened 2026-11-07 16:31:33 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • e6dc48f docs: 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.

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.mjs in strata-router at 66ab936, 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 (only live.state reading/generating), an unloaded server, 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).
  • Against real servers on two RTX 3090 PCs (Qwen3.8-Flash-Next Q2_0, 262,144 context, --kv int8, --batch 2, conversation cache 32 GiB / 8 slots): a load test of 6 simulated coding agents through strata-router e90e957 (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:
    • Strata 0.1.40.3 (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.
    • Strata 0.2.6 (engine 0.1.51, built from 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).
    • One request at a time, same prompt, 512 output tokens: 140–149 tok/s on 0.2.6, 125–146 tok/s on 0.1.40.3 (on different PCs of the same kind).
  • The links this PR adds, checked on e6dc48f (base 4b9e05a): every ](...) target in git diff 4b9e05a..HEAD -U0 -- docs, relative ones with test -f docs/<target>, external ones with curl -w '%{http_code}'. STRATA_ROUTER.md exists; https://github.com/mrq1911/strata-router answers 200.

Failed:
none observed

Not run:

  • strata-router against 0.2.5; 0.1.40.3 and 0.2.6 were run.
  • The strata launch line 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 with serve/server.py.
  • Re-measuring the page's numbers. They come from strata-router's 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.
  • GPU builds: docs-only change.

Limits

  • The page's numbers are from 0.1.40.3, and its compatibility note still describes reading the 0.2.x /metrics code rather than running it. 0.2.6 was only load-tested as above, not re-benchmarked.
  • The 0.2.6 runs changed two things at once (the version and --conversation-cache-min-tokens), so the drop in parks and evictions is not attributed to either.
  • The router sends one API key, shared by all servers, on its /metrics polls (STRATA_API_KEY_FILE); clients still send their own key on requests. Current Strata only recommends a key on a network.
  • strata-router is maintained outside Strata; the page links to it and adds nothing to Strata's code.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4208 **Author:** [@mrq1911](https://github.com/mrq1911) **Created:** 10/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs-strata-router` --- ### 📝 Commits (1) - [`e6dc48f`](https://github.com/Niko1221/Strata/commit/e6dc48f9291e34995f894ffc7c40ce8298f5fa77) docs: several Strata PCs behind one address (strata-router) ### 📊 Changes **3 files changed** (+79 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/BATCHING.md` (+2 -0) 📝 `docs/README.md` (+1 -0) ➕ `docs/STRATA_ROUTER.md` (+76 -0) </details> ### 📄 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](https://github.com/mrq1911/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.mjs` in strata-router at `66ab936`, 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 (only `live.state` `reading`/`generating`), an `unloaded` server, 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](https://github.com/mrq1911/strata-router/actions/runs/40373920757)). - Against real servers on two RTX 3090 PCs (Qwen3.8-Flash-Next Q2_0, 262,144 context, `--kv int8`, `--batch 2`, conversation cache 32 GiB / 8 slots): a load test of 6 simulated coding agents through strata-router `e90e957` (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: - Strata 0.1.40.3 (`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. - Strata 0.2.6 (engine 0.1.51, built from `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). - One request at a time, same prompt, 512 output tokens: 140–149 tok/s on 0.2.6, 125–146 tok/s on 0.1.40.3 (on different PCs of the same kind). - The links this PR adds, checked on `e6dc48f` (base `4b9e05a`): every `](...)` target in `git diff 4b9e05a..HEAD -U0 -- docs`, relative ones with `test -f docs/<target>`, external ones with `curl -w '%{http_code}'`. `STRATA_ROUTER.md` exists; `https://github.com/mrq1911/strata-router` answers 200. **Failed:** none observed **Not run:** - strata-router against 0.2.5; 0.1.40.3 and 0.2.6 were run. - The `strata launch` line 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 with `serve/server.py`. - Re-measuring the page's numbers. They come from strata-router's `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. - GPU builds: docs-only change. ## Limits - The page's numbers are from 0.1.40.3, and its compatibility note still describes reading the 0.2.x `/metrics` code rather than running it. 0.2.6 was only load-tested as above, not re-benchmarked. - The 0.2.6 runs changed two things at once (the version and `--conversation-cache-min-tokens`), so the drop in parks and evictions is not attributed to either. - The router sends one API key, shared by all servers, on its `/metrics` polls (`STRATA_API_KEY_FILE`); clients still send their own key on requests. Current Strata only recommends a key on a network. - strata-router is maintained outside Strata; the page links to it and adds nothing to Strata's code. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4950
No description provided.