diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/www/ai-instruction.md | 17 | ||||
| -rw-r--r-- | docs/www/operator-checklist.md | 15 |
2 files changed, 20 insertions, 12 deletions
diff --git a/docs/www/ai-instruction.md b/docs/www/ai-instruction.md index 81f2ae8..d1d26e6 100644 --- a/docs/www/ai-instruction.md +++ b/docs/www/ai-instruction.md @@ -493,12 +493,17 @@ 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. -**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. +**Large jobs are gated, small ones are not — and for GEMMA “large” starts +at 50 individuals.** The gate is there to stop *large* computations piling +up on the server. GEMMA runs share one cache directory (hundreds of +megabytes of kinship archives extracted by content hash) and a real panel +takes every core it can get, so `/compute/gemma` and +`/compute/gemma/ravanan` gate from **50 individuals**: in practice every +mapping request is gated, and only a handful of individuals runs free. +`/compute/rqtl` gates later, from **1 000 individuals**, because a +`scanone` over a few hundred is seconds of one core — so exploratory scans +on small crosses take no slot, run alongside whatever else is running, and +are never refused. Above the threshold, each endpoint has a fixed number of slots — **1** for `/compute/gemma`, **1** for `/compute/gemma/ravanan`, **8** for diff --git a/docs/www/operator-checklist.md b/docs/www/operator-checklist.md index 4f245d4..797f18b 100644 --- a/docs/www/operator-checklist.md +++ b/docs/www/operator-checklist.md @@ -208,9 +208,13 @@ up-but-useless service is visible without calling a data endpoint. ## Compute concurrency 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, +apply above a threshold that differs by endpoint: +`compute_gate::GEMMA_LARGE_PANEL` is **50** individuals (all GEMMA runs +share `GEMMA_CACHE_DIR`, where `gemma-wrapper` extracts per-chromosome +kinship archives by content hash -- two runs at once are two writers over +the same hundreds of megabytes), `compute_gate::RQTL_LARGE_PANEL` is +**1 000** (a `scanone` over a few hundred individuals is seconds of one +core). A panel below its endpoint's threshold takes no slot. 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 @@ -219,9 +223,8 @@ 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). +Changing a threshold is the same: both are constants, and the reasons for +the numbers are in their doc comments. ## Plotting |
