diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-15 15:22:01 +0000 |
|---|---|---|
| committer | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-15 15:22:01 +0000 |
| commit | 9c3cd6f2300bb290ddd05c5a46c5b813b22c0ce1 (patch) | |
| tree | f218f79b3c7798313ab814a40ce3244f18d26b2b /docs | |
| parent | edaef7fd56e4ce7acd833e929462293478025a34 (diff) | |
| download | genenetwork4-9c3cd6f2300bb290ddd05c5a46c5b813b22c0ce1.tar.gz | |
monitor: run the cached engines cold, not just warm
A warm run answers from caches the previous binary filled, so it can pass while the cold path -- what a new caller's first request actually does -- is broken. `--cold` sends each cached engine a payload with one sample value nudged by a thousandth, then repeats the original: every engine here keys its cache on content (gemma-wrapper's hash, ravanan's interned inputs, rqtl/qtl2/bulklmm's own), so the first is a miss and the second a hit. Both runs are judged; the line reports "cold X / warm Y". Measured on production with the 30-sample fixture: compute-ravanan 102.0 s cold / 3.7 s warm compute-gemma 3.1 s cold / 2.0 s warm compute-rqtl 7.5 s cold / 7.3 s warm compute-qtl2 3.3 s cold / 3.3 s warm compute-fitqtl 6.7 s cold / 6.9 s warm compute-bulklmm 19.6 s cold / 19.0 s warm ravanan is the one where the cache is the difference between minutes and seconds; the rest are compute-bound at this size, and the honest thing is to print the pair rather than assert a speedup. A check whose payload cannot be perturbed skips with that reason instead of reporting two warm runs as cold and warm. The operator checklist gains the cold run as part of deploying, with both costs named: ravanan's cold run takes minutes, and every cold run adds cache entries.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/www/operator-checklist.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/www/operator-checklist.md b/docs/www/operator-checklist.md index 2ff4b82..b6826d7 100644 --- a/docs/www/operator-checklist.md +++ b/docs/www/operator-checklist.md @@ -399,6 +399,26 @@ edit `env.sh`'s `GEN4=`, `run.sh restart`. bin/monitor-gn4 --token-file /tmp/prodtok.file --tier all ``` +And **run it cold as well as warm** after anything that touches the +environment, and weekly: + +```sh +bin/monitor-gn4 --token-file /tmp/prodtok.file --tier compute --cold +``` + +A warm run answers from caches that were filled by the *previous* binary, so +it can pass while the cold path -- the one a new user's first request takes -- +is broken. `--cold` sends each cached engine a payload with one value nudged, +which every engine here keys on (gemma-wrapper's content hash, ravanan's +interned inputs, rqtl/qtl2/bulklmm's own hashes), then repeats the original +payload for the warm hit. Both runs must pass, and the line reports +`cold X / warm Y`. Measured on this box with a 30-sample fixture: ravanan +102.0 s cold / 3.7 s warm; gemma 3.1 / 2.0; rqtl, qtl2, fitqtl and BulkLMM are +compute-bound at this size and show cold ~= warm, which is a fact about the +fixture, not a fault. Two costs to know: ravanan's cold run takes minutes, and +every cold run leaves another entry in the caches (`GEMMA_CACHE_DIR`, +`RAVANAN_CACHE_DIR`, …), so run it deliberately rather than in a loop. + `/version` only says which commit is running; it cannot see that an engine lost its tool path, that a config key moved, or that an endpoint now answers a shape nobody expected. On 2026-11-15 the service was "deployed and up" with |
