diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/www/ai-instruction.md | 24 | ||||
| -rw-r--r-- | docs/www/operator-checklist.md | 21 |
2 files changed, 30 insertions, 15 deletions
diff --git a/docs/www/ai-instruction.md b/docs/www/ai-instruction.md index 06e6595..81f2ae8 100644 --- a/docs/www/ai-instruction.md +++ b/docs/www/ai-instruction.md @@ -493,15 +493,21 @@ that rather than assembling your own. Until then, judge a GEMMA peak against the smallest `p_lrt` it reached, not against a genome-wide threshold of its own. -**A few jobs at a time, one per caller.** Each compute endpoint has a -fixed number of slots — **1** for `/compute/gemma`, **1** for -`/compute/gemma/ravanan`, **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 +**Large jobs are gated, small ones are not.** The gate is there to stop +*large* computations piling up on the server, so it begins at **1 000 +individuals**: a request over a smaller panel — BXD's ~200, an older +93-strain version, any of the fixtures — takes no slot, runs alongside +whatever else is running, and is never refused. That is most exploratory +work, and it costs nothing to fire a few of those off. + +Above the threshold, each endpoint has a fixed number of slots — **1** for +`/compute/gemma`, **1** for `/compute/gemma/ravanan`, **8** for +`/compute/rqtl` — and one large job per caller within them. A second large +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 large 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 again. (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 diff --git a/docs/www/operator-checklist.md b/docs/www/operator-checklist.md index 47319eb..4f245d4 100644 --- a/docs/www/operator-checklist.md +++ b/docs/www/operator-checklist.md @@ -207,12 +207,21 @@ 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), and `/compute/gemma/ravanan` one at a -time, each one job per caller. All three 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. Waits are -bounded only by nginx's `proxy_read_timeout`. +The gates exist to stop **large** computations piling up, so they only +apply above `compute_gate::LARGE_PANEL` (1 000 individuals); a smaller +panel takes no slot, which is why the in-process test suite no longer +serialises itself. Above it, `POST /compute/gemma` takes one job at a time, +`POST /compute/rqtl` `RQTL_MAX_CONCURRENT` (default 8) and +`/compute/gemma/ravanan` one at a time, each one large job per caller. All +three 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. Waits are bounded only by nginx's `proxy_read_timeout`. + +The slot count is fixed when a gate is first built (its first large +request), so raising `RQTL_MAX_CONCURRENT` takes a restart, not a reload. +Lowering the threshold is the same: `LARGE_PANEL` is a constant, and the +reason it is 1 000 is in its doc comment (measured K-matrix sizes and run +times). ## Plotting |
