tracker
All repositories: gitoria
3.9 KB
# ST1-stalls: read-only diagnosis of the remaining 2-14 s stalls on live tracker (no change)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."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.## Rules- Worker rules: /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (read fully).- 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.- 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/.- 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.## Questions to answer with measurements1. 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.2. Share of traffic from crawlers (user agents) and which routes they hit; how many requests trigger person fills.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)?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.## Report/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.Cap ~60 API requests / 150k context.
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