gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitfafddbf9fafddbf9Merge hm64-catalog: tracker#64 catalog from packed entriesmrefafddbf9/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

  • fafddbf9Merge hm64-catalog: tracker#64 catalog from packed entriesmre
  • b2e2206dlog: #63 livemre
  • 5831e0e0log: HM64 donemre
  • 4042b923Flatten catalog membership rows into paired slotsmre
  • ea8a759elog: #61 #62 live, DP63 and HM64 startedmre
  • 40439456Merge hm63-searchtext: tracker#63 packed search textmre
  • b7e6b48ePack normalized search text behind numeric offsetsmre
  • b35f53e1log: DP62 stale runtime decisionmre
  • f9593602log: Apollo deploy rule correctionmre
  • 3c95f7f3log: DP62 and HM63 startedmre
  • 9c4397c9mission HM63mre
  • 8dfe42c8mission DP62mre
  • e347fef4Merge rv44: tracker#61 #62 on Hybriel day44mre
  • 8274bcf1log: RV44 done, deploy held for the usage windowmre
  • 1ef7a3b1RV44: report day44 gates and migration/restart proofsmre
  • a5f62f6cRV44: re-vendor Hybriel set day44 (source 222edef7, bin 4f0f263e)mre
  • 6159a248Merge branch 'hm62-personindex' into rv44mre
  • a8923d93log: RV44 startedmre
  • cf28cf77mission RV44mre
  • 585782dfLog: tracker#60 Chrome look, STATUS rewrittenmre