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
- a1a88bd4gc1: search skips the stale-key string while no entry is stale; /my/unwatched asks a kept id set instead of building a key string per episode rowmre
- cd830744gc1: dbSearch: no split / map / list copy per candidate (scores from the stored text, top list touched only when the hit can enter)mre
- 451db7cdgc1: show page and check clicks read the kept watched set instead of building one from a by-value copy of every watchmre
- ddb4127egc1: TRACKER_QSTATS=1 logs queue and cache sizes every 10 s (measurement only)mre
- da60547fstatus: GC1 done, backup bugmre
- e4171021log: GC1 result, backup hard-link bugmre
- f1597214deploy.sh backup: tar --hard-dereference (hot tar stored mpackdb sidecars as hard links to .sessions files)mre
- 6b58571elog: GC windowmre
- 5c8baa1fdeploy lock: hold only around deploy.shmre
- b8dac822log: hybriel#309mre
- bf676d9elog: GC1 startedmre
- c7828541mission GC1mre
- ef949994conductor: neutral ticket rulemre
- 89e91ef3log: RV39 livemre
- ee2b677alog: RV39 deployingmre
- c1c4178cMerge branch 'rv39'mre
- a016e9abReapply "Merge branch 'rv39'"mre
- f29e2502log: RV39 gate fixmre
- d9fce111browser gate #26: exact frame count incl. SL1 people step (hybriel#308)mre
- ad529ac1log: m572 verdictmre