gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit6a6d71ea6a6d71eaLog: gitoria membershipmre6a6d71ea/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

  • 6a6d71eaLog: gitoria membershipmre
  • 8b842dc8Log + CONDUCTOR: gitoria PR switch-onmre
  • 6bb7c20estatus: window 2026-11-09mre
  • 5db84974Log: Apollo window GO, AP56b started, BS1 copy removedmre
  • e84586a7Mission AP56bmre
  • 15917f03Record PR workflow rule (gitoria#50)mre
  • 942ac995status: paused workers statemre
  • 44b934e5log: respawn cleanupmre
  • 03a80097Log: Anton GC A/Bmre
  • c7cdef62Log: Apollo STOP, workers pausedmre
  • d0c083fbLog: usage stopmre
  • c6d464e5Log: Apollo GO backlog, AP56 and BS1 startedmre
  • 1eb6f1a1Missions AP56, BS1mre
  • 4871f8adLog: AP52 live on day52, browser gate greenmre
  • d9bf2988Merge ap52: day52, tracker#58 server argument, #51 modal close rule, #56 keyed season rowsmre
  • c4a60ef2Log: RT52 retest passed, AP52 startedmre
  • 83760a55Browser gate: search results belong to the address form of the typed text (tracker#52 navigate replace)mre
  • 6e951d91AP52: show-page rows are keyed records; closing a season is one upsert and removes (tracker#56, hybriel#331)mre
  • 3bb4ccddAP52: modal close button refers to its nested rule with Style.buttonModalX (tracker#51, hybriel#333)mre
  • ba16933fAP52: login callback and title route are static handlers taking the server as third argument (tracker#58, hybriel#332)mre