gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc98e2043c98e2043log: T36A rollbackmrec98e2043/missions/ST1-stalls.md

3.9 KB

  1. # ST1-stalls: read-only diagnosis of the remaining 2-14 s stalls on live tracker (no change)
  2. Task (Apollo 2026-11-03): "GO read-only diagnosis of the remaining 2-14 s stalls ... Measure, don't guess: correlate stall times with request log (path, user agent → crawlers?), person-fill events, GC/CPU samples. Also ... whether the boot-time listing of millions of files will hurt every future restart, and what a safe way to drain the backlog is (by the app itself). Report causes + options, no change yet."
  3. Background: caramboleyo: "setting episodes to watched feels offly slow". Live since 2026-11-03 12:11 runs RV28d (hybriel day38b, bin 5ff2a46d): the old 3-min session-sweep freeze is gone. Outside probe of https://tracker.worldapi.org/ (1/s, 12:12-12:28): median 0.11 s, p90 0.84 s, p99 9.4 s; stalls of 2-14 s every ~30-60 s remain. Probe data: /media/STORAGE/claude-scratch/tracker/deploy/probe.log ("HH:MM:SS code seconds", local CET = UTC+1). Docker log lines like "person fill: ... ms=9903" happen many times a minute; hypothesis (unproven): crawler-triggered person fills or GC pauses.
  4. ## Rules
  5. - Worker rules: /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (read fully).
  6. - STRICTLY READ ONLY on live: byrodin (`ssh byrodin`), container tracker.worldapi.org, app dir /CONTAINERS/projects/tracker.worldapi.org. Allowed: docker logs/inspect/stats, ps, /proc reads, `perf`/`gdb`-free sampling only via /proc (stat, status, wchan, task/*/stat), nginx access logs (find them under /CONTAINERS/web/nginx; read only), short curl probes (≤1/s). FORBIDDEN: restarting anything, docker exec that writes, any tool opening the mpackdb store, touching .sessions/storage/.env, editing nginx, attaching debuggers/strace to the live process (it can freeze it), signals.
  7. - Code reading: repo /media/STORAGE/projects/WorldAPI/tracker.worldapi.org (main a8fef27+; read only). hl:web sessions: plugins/web/sessions.hl (storeSlice, startPass, open). Person fill: grep "person fill" in lib/ components/.
  8. - For hl:web or runtime questions you may run the app locally on a scratch copy only: scratch /media/STORAGE/claude-scratch/tracker/ST1/, ports 8701-8719 only (never 8700), nothing in /tmp. Stop everything you start.
  9. ## Questions to answer with measurements
  10. 1. For each stall ≥2 s you observe (run your own outside probe 1/s for ≥15 min, plus probe.log above): what was the app doing? Correlate with nginx access log (request path, user agent, upstream response time), docker log events (person fill, details repair, tmdb sync, guest opened, sessions), and CPU/RSS samples of the hybriel process (/proc/<pid>/stat every 0.5 s: utime/stime jumps, threads). Is the event loop busy (CPU 100 %) or waiting? Name the top causes with counts.
  11. 2. Share of traffic from crawlers (user agents) and which routes they hit; how many requests trigger person fills.
  12. 3. GC: does Hybriel log GC stats (env HL_GC_STATS?) — read hybriel docs/README for it; do NOT enable on live. Can CPU samples show GC-like pauses (single-thread 100 % with no log)?
  13. 4. Sessions: 2.68 M files in .sessions. In plugins/web/sessions.hl: what open() and startPass() cost with that many files (listDir sync into an array at boot and hourly) — measure locally with a synthetic store of e.g. 500k files and extrapolate; and how fast storeSlice drains on live (count files now and again ~30 min later: `ls -f | wc -l` is read-only and allowed once at start and once at end). Options to drain safely BY THE APP ITSELF (e.g. a slice also on GET requests, a timer, config anonKeep/slice) — name what each needs (app config vs hl:web change = Arachne) — no change.
  14. ## Report
  15. /media/STORAGE/claude-scratch/tracker/ST1/REPORT.md, copy to reports/ST1-stalls.md in the repo (commit only that file on main: "ST1: stall diagnosis report"). Final message ≤10 lines: causes with numbers, crawler share, session drain numbers + boot-listing cost, options. List processes you started and stopped.
  16. Cap ~60 API requests / 150k context.

Branches

Latest commits

  • c98e2043log: T36A rollbackmre
  • ae905f15Merge t36a: tracker#36 apply rechecks, reportmre
  • 796bfaceT36A: report validated fixes, failed live SSH check and verified rollbackmre
  • 55257852log: #53 live, #56 mergedmre
  • 78b39f1bMerge hm56-rows: tracker#56 list builders insert oncemre
  • 7aea52batmdb fix: protect owners without slugs and record passing gatesmre
  • 9b3c2559tmdb fix: revalidate planned identities and reserve target idsmre
  • 6da612fclog: T36A tool defectmre
  • d56ee0daT36A: report unsafe TMDB apply revalidation and stop before livemre
  • 08e55255log: HM56 done, T36A startedmre
  • 91bcdf0eAvoid per-row list copies and reproduce keyed-row blockersmre
  • 5fd2ac75status: #36 GOmre
  • 0d253b45mission: T36Amre
  • 2aa22d23log: #36 GOmre
  • 833aee2flog: #50 closed, HM56 startedmre
  • ac58c1e5mission: HM56mre
  • 58979c0clog: HM54 held for decision, DP65 startedmre
  • bb2ebc67log: #64 live, #53 mergedmre
  • 27cde42fMerge hm53-dom: tracker#53 inputs bound to membersmre
  • 2156cc7flog: HM54 reviewmre