about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/www/ai-instruction.md17
-rw-r--r--docs/www/operator-checklist.md9
2 files changed, 18 insertions, 8 deletions
diff --git a/docs/www/ai-instruction.md b/docs/www/ai-instruction.md
index 4e8498b..bc185e2 100644
--- a/docs/www/ai-instruction.md
+++ b/docs/www/ai-instruction.md
@@ -447,14 +447,15 @@ against a genome-wide threshold. (gemma-wrapper itself can shuffle
 phenotypes with `--permutate n`; this API does not pass it — see
 docs/genotypes.md.)
 
-**One job at a time, per caller.** `/compute/gemma` runs one job at a
-time across all callers: a second submission from *your* token while your
-job is still running — or still queued — is refused at once with
-`409 compute_busy`, naming the run and linking its status endpoint; a
-submission from *another* token waits for the running job to finish and
-then runs. So a 409 here is not a retry-able failure: poll
-`/compute/gemma/status/{id}`, and only then submit the next job. Map one
-trait, read it, submit the next.
+**A few jobs at a time, one per caller.** Each compute endpoint has a
+fixed number of slots — **1** for `/compute/gemma`, **8** for
+`/compute/rqtl` — and one job per caller within them. A second submission
+from *your* token while your job is still running or queued is refused at
+once with `409 compute_busy`, naming the run and linking its status
+endpoint; a submission that finds every slot taken waits for one to come
+free and then runs. So a 409 here is not a retry-able failure: poll the
+status endpoint it names, and only then submit the next job. (If you want
+more parallelism, that is more *tokens*, not more requests from one.)
 
 Results are **cached** by input, so running the same request twice costs
 little the second time (a cached GEMMA run on the BXD fixtures comes back
diff --git a/docs/www/operator-checklist.md b/docs/www/operator-checklist.md
index 14c5c82..6f49501 100644
--- a/docs/www/operator-checklist.md
+++ b/docs/www/operator-checklist.md
@@ -205,6 +205,15 @@ restarts — that is what happened on 2026-11-07. `GET /version` now carries
 `"database": "reachable" | "unreachable"` (cached ten seconds), so an
 up-but-useless service is visible without calling a data endpoint.
 
+## Compute concurrency
+
+`POST /compute/gemma` takes one job at a time and `POST /compute/rqtl`
+`RQTL_MAX_CONCURRENT` (default 8), one job per caller each; both are
+in-process gates (`src/compute_gate.rs`), so they are per server process
+and reset on restart -- a job's child process, however, outlives the
+server. `/compute/gemma/ravanan` is not gated yet. Idle waits are bounded
+only by nginx's `proxy_read_timeout`.
+
 ## Plotting
 
 `POST /plot/rqtl` and `/plot/gemma` take a **posted mapping response** --