gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit4e0186784e018678|||PR deploy.sh: gates use Tracker's ports 8716-8719 and LC_ALL=C; README: 2 backups keptTracker4e018678/missions/BS2-swap-end-000.md

4.4 KB

  1. # BS2: requests fail for a few seconds at the end of every deploy (tracker#69)
  2. 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.
  3. 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.
  4. ## Evidence so far
  5. - 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.
  6. - 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.
  7. - 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.
  8. - 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).
  9. ## Read first
  10. WORKER-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).
  11. Fixed rules: no hand-written JavaScript; login.js stays; Hybriel gap = STOP with a minimal repro and timings for Anton, no workaround.
  12. ## Steps
  13. 1. 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.
  14. 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`.
  15. 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.
  16. 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.
  17. 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.
  18. If inside Hybriel: STOP with a repro for Anton.
  19. ## Limits
  20. - Scratch only /media/STORAGE/claude-scratch/tracker/BS2/. Ports 8716-8719 (check `ss -ltnp`; never 8700/8701). No Chrome needed.
  21. - Do NOT push, merge, deploy; no tickets, LOG, STATUS. Delete BS2/copy at the end. Stop everything you started; list it.
  22. - 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

  • 4e018678|||PR deploy.sh: gates use Tracker's ports 8716-8719 and LC_ALL=C; README: 2 backups keptTracker
  • 0b86324aMerge branch 'records-dp73' into mainTracker
  • 9ce5f59b|||PR records: DP73 live 613ae0e; deploy.sh keeps 2 backupsTracker
  • 613ae0ecMerge branch 'bs3' into mainTracker
  • 1383264b|||PR BS3: keep shared synchronous sorting fastTracker
  • 63e5ba1a|||PR BS3: guard boot imports and share resumable sort buffersTracker
  • 310613f1Merge branch 'records-dp72' into mainTracker
  • 6f7b61ba|||PR records: deploy-swap fix live, Kunibert findingsTracker
  • c41587d2Merge branch 'bs2' into mainTracker
  • 0dd538a6|||PR BS2: finish the boot index in slices so a booting instance keeps answeringTracker
  • 019d5cedMerge branch 'records-1110' into mainTracker
  • f88ae8b9|||PR records: day56 toggle live, reviewTracker
  • b6b3bb4dMerge branch 'ap56e' into mainTracker
  • 29a26da9|||PR AP56e: guard hidden show helpers during session syncTracker
  • 7c9ec236|||PR AP56e: re-vendor Hybriel set day56 (source 36ae83a8, bin c1f595a2)Tracker
  • 4b54f6f9Merge branch 'records-audit' into mainTracker
  • cab4a3bc|||PR records: branch audit, PR-onlyTracker
  • 641e1c4cMerge branch 'records-dp71' into mainTracker
  • 85a6e9f5|||PR records: DP71 checked in ChromeTracker
  • f5be5f18records: gitoria PR-only planTracker