about summary refs log tree commit diff
path: root/src/json_errors.rs
diff options
context:
space:
mode:
authorPjotr Prins <pjotr.public01@thebird.nl>2026-11-19 11:41:31 +0000
committerPjotr Prins <pjotr.public01@thebird.nl>2026-11-19 11:41:31 +0000
commit0f1d324c4a2186dee71e99d35aaaa41c9f7481b6 (patch)
treef1b8eccbdb0db9019e9bd863c15fa839930a03a9 /src/json_errors.rs
parent6bd032d565233016f2c658840ab2769cf2359fe2 (diff)
downloadgenenetwork4-0f1d324c4a2186dee71e99d35aaaa41c9f7481b6.tar.gz
monitor: say which engine answered, and probe slurmrestd
/compute/gemma now runs the Slurm route first and can answer 200 from the
local wrapper when that route fails, so the HTTP side alone cannot tell the
reader which engine produced a reply, or that the cluster behind the default
engine is dead.

compute-gemma's judge reads the reply's own notes: "engine: slurm (ravanan)"
normally, "engine: fallback: local gemma-wrapper" when the route fell back,
"engine: unstated" for a binary too old to say.  Its depends now name the
route (ravanan + ccwl + slurmrestd) with gemma-wrapper, GEMMA_WRAPPER_CMD and
R as the fallback's requirements, and GEMMA_ENGINE=local is the way to skip
Slurm.  A slurmrestd check in the compute tier probes ravanan's endpoint
directly, reading RAVANAN_SLURM_API_ENDPOINT and RAVANAN_SLURM_JWT on the
monitoring side and skipping when they are unset, so "the cluster is down" is
named before it is waited on.

Runs against the live database and tokens: default tiers were 28 ok, 0
failed, 1 skipped (the listener check, production runs outside the PID
namespace) on :3000 with the previous binary and 29 ok, 0 failed on :3002
with the new build.  The full compute tier on :3002 was 15 ok, 1 failed in
four minutes -- slurmrestd ok (container UP, 1 ms), compute-gemma ok in
3.6 s reporting engine: slurm (ravanan) -- and the failure is
compute-bulklmm: "Package CSV ... is required but does not seem to be
installed", which passes on production with the same env.sh.  That is the
hand-started scratch instance's Julia depot, not the engine switch; a
scratch instance is not a full stand-in for the deployment for the
Julia-backed engines.
Diffstat (limited to 'src/json_errors.rs')
0 files changed, 0 insertions, 0 deletions