tracker
All repositories: gitoria
4.4 KB
# BS2: requests fail for a few seconds at the end of every deploy (tracker#69)Ticket tracker#69, title: "Requests fail for a few seconds at the end of every deploy". Apollo 2026-11-10 21:40: find the cause and fix it through a PR; if the cause is in deploy-init / standby-swap, a repro for Gitoria instead.Tracker's reading (unconfirmed): find out where the outside requests get no answer during a swap, prove it with measurements, fix it if it is in tracker code.## Evidence so far- DP56 (2026-11-10, claude-scratch/tracker/DP56/run.log + probe.log, outside probe every ~2 s): standby 200 at 09:11:09; main 45008 marked down in nginx 09:11:09, main restarted 09:11:10; main 200 at 09:12:41; nginx restored 09:12:52. The 2 x 000 came at 09:12:16 and 09:12:28, i.e. while nginx served from the STANDBY ALONE and the main was still booting on the same host.- Earlier deploys (DP67/69/70, HM50, AP52): 4 x 000 near each swap; nginx logs 499 after 15 s; each one ended within 1 s of a boot-scan phase end (standby episodes, main episodes, search index, people). Hypothesis (HM50, unproven): the last step of a scan phase blocks the event loop for 25-33 s. DP71 (2026-11-09) had 0 failures.- Old BS1 run (stopped before a result): claude-scratch/tracker/BS1/logs (run1.log, probe1.txt, sample1.txt), scripts in BS1/scripts (probe.py, sample.sh, start.sh). Brief missions/BS1-bootscan-000.md.- Candidate causes to tell apart: (a) the standby still runs its own boot scan after its first 200 and blocks its event loop; (b) the main's boot scan starves the standby (CPU/IO on byrodin); (c) the swap script / nginx upstream settings (e.g. max_fails/fail_timeout, proxy timeouts, standby as single upstream).## Read firstWORKER-RULES /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (fully). /media/STORAGE/projects/hybriel/docs/HL-STANDARD.md and HL-PRIMER.md. README.md sections about boot / warm start / jobs; reports/T17-boot.md, reports/044-jobs-slices.md; deploy.sh; /media/STORAGE/projects/WorldAPI/worldapi-conductor/standby-swap.sh; missions/BS1-bootscan-000.md. Hybriel source: /media/STORAGE/projects/hybriel (the vendored set is day56, bin c1f595a2).Fixed rules: no hand-written JavaScript; login.js stays; Hybriel gap = STOP with a minimal repro and timings for Anton, no workaround.## Steps1. byrodin, READ ONLY (no restarts, no edits, no docker exec that writes): the tracker nginx vhost /CONTAINERS/web/nginx/conf.d/worldapi.org/tracker.conf (upstream, max_fails, fail_timeout, proxy timeouts), nginx access/error log lines for tracker 2026-11-10 09:11-09:13, `docker logs --since/--until` of tracker.worldapi.org-standby and tracker.worldapi.org for that window. Say which of (a)/(b)/(c) these support.2. Real-data copy in BS2/copy: storage only from /media/STORAGE/deploy-backups/tracker.worldapi.org-20261110-0743.tgz (no posters/profiles/.env/.sessions; recipe as AP52/BS1). Worktree `git worktree add -b bs2 /media/STORAGE/claude-scratch/tracker/BS2/wt main`.3. Reproduce the swap on loreana: start a standby-like instance (jobs off, as the compose standby profile) on 8718, wait for its first 200, then start a main instance on 8717 on its own copy (or the same, if live does share storage, check docker-compose.yml). Probe the standby every 0.5 s (15 s timeout, log latency) during the whole time, plus the main's phase markers. Find the stall windows and which step runs then, in which process.4. If tracker code: fix it the language's way (smaller slices / yielding like lib/slices.hl), prove on the copy (no probe > 2 s on the serving instance during the other's boot, ready time within ±10 %, same pages), run all 11 gates (deploy.sh GATES, LC_ALL=C, under `flock /media/STORAGE/claude-scratch/tracker/gates.lock`, starts wait >=120 s). Commit on bs2 with subject starting `|||PR BS2: ` (no "#N" anywhere in commit messages). Remove temporary logs before committing.If the cause is in standby-swap / nginx settings: no change there; write a repro (timings, config lines, the fix proposal) in BS2/REPORT.md for Gitoria.If inside Hybriel: STOP with a repro for Anton.## Limits- Scratch only /media/STORAGE/claude-scratch/tracker/BS2/. Ports 8716-8719 (check `ss -ltnp`; never 8700/8701). No Chrome needed.- Do NOT push, merge, deploy; no tickets, LOG, STATUS. Delete BS2/copy at the end. Stop everything you started; list it.- Report /media/STORAGE/claude-scratch/tracker/BS2/REPORT.md: stall windows with timestamps, process and step for each, cause, fix or repro; final message <=8 lines. ~60 requests.
Branches
Latest commits
- d2e6d26bMerge branch 'records-park55' into mainTracker
- f567f025|||PR records: park #55, no Claude workers ruleTracker
- c21aff6bMerge branch 'records-hm55c' into mainTracker
- 9ba258d3|||PR records: HM55b resultTracker
- 64f2d300Merge branch 'records-hm55b2' into mainTracker
- ae3b80dc|||PR records: HM55b briefTracker
- 7ef3cb3bMerge branch 'records-st55' into mainTracker
- fec2e080|||PR records: STATUS HM55Tracker
- 8e174918Merge branch 'records-hm55b' into mainTracker
- b1ecee57|||PR records: HM55 stateTracker
- 28eab08cMerge branch 'records-hm55' into mainTracker
- d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
- 3059f86cMerge branch 'records-design-rule' into mainTracker
- 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
- d1390692Merge branch 'records-dp75b' into mainTracker
- a4d1a7d2|||PR records: later steps checked, branch auditTracker
- e070e16fMerge branch 'records-dp75' into mainTracker
- 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
- bfc4ea4dMerge branch 'ap62' into mainTracker
- 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker