Cryptograss:Moods/performance/todo: Difference between revisions
From PickiPedia: A knowledge base of bluegrass, old time psychedelic jams, and other public domain music
Jump to navigationJump to search
m Merged, says GitHub: https://github.com/cryptograss/maybelle-config/pull/279 |
HN/reddit wave: the two branches to merge, and the traffic-metrics question (#performance, 12 Nov) (via update-page on MediaWiki MCP Server) |
||
| Line 22: | Line 22: | ||
kind: code | kind: code | ||
note: "Item 2 of the low-hanging fruit (4 Nov). Item 1, magenta#385, merged and deployed: /api/servers/ went from 0.6–1.4 s to 18 ms (Server-Timing, block 26,350,822)." | note: "Item 2 of the low-hanging fruit (4 Nov). Item 1, magenta#385, merged and deployed: /api/servers/ went from 0.6–1.4 s to 18 ms (Server-Timing, block 26,350,822)." | ||
- task: "Merge magenta:magent/visitor-polls (a tab with no device polls every 15 s, not 4 and 5), then redeploy maybelle" | |||
who: justin | |||
kind: merge | |||
link: https://magenta.cryptograss.live/ramp/magenta/magent/visitor-polls/ | |||
note: "HN/reddit wave, 11-12 Nov. Each visitor from the link is a polling tab; the 6 Nov ramp queued at ~25 of them. Justin: 'a no-brainer'." | |||
- task: "Merge magenta:magent/tidings-premade (release and picture lists served as kept while one thread rebuilds), then redeploy maybelle" | |||
who: justin | |||
kind: merge | |||
link: https://magenta.cryptograss.live/ramp/magenta/magent/tidings-premade/ | |||
note: "hug-watch, 11 Nov 23:14Z-02:33Z: /api/tidings/ took 4-30 s every ~5 min (the picture scan at PICTURES_KEPT, the release scan at RELEASES_KEPT), on whoever asked. mood_cache.kept: stale-while-revalidate, as /api/servers/ since #385." | |||
- task: "Server-side traffic metrics: requests, visitors, referers, slow looks, on maybelle, with no client code" | |||
who: magent | |||
kind: code | |||
note: "Justin (12 Nov): no tracking code to users. Choices put to him in #performance: GoAccess over gunicorn's access log, or a Traffic card on Status fed by a counting middleware." | |||
- task: "Verify live endpoint timings on maybelle after the perf deploys" | - task: "Verify live endpoint timings on maybelle after the perf deploys" | ||
who: re | who: re | ||
Revision as of 02:41, 12 November 2026
- ☐Poll under load: who-spoke updated in place, not rebuilt; one rebuild of the emergents' settings per change, not one per tabSecond ramp, after #411 + #412: 10 tabs p95 1.9 s, stopped at 25 tabs (p95 4.9 s). Idle poll 870 → 190 ms.
- ☐Wiki reads off the request path: hooked pages kept until their hook (no short TTLs, warm on change); pronouns and time zones pushed on a preferences saveMoved here from #interfaces at Justin's ask (6 Nov). Preferences aren't page saves, so PageSaveComplete never tells of them.
- ☐Realtime Activity Bar Option A (state-flag registry with heartbeat TTL)The activity line is now the biggest cost left on every poll: 115–155 ms idle, ~500 ms under load (6 Nov).
- ☐Moods page script out to a static file with a hash in its name, so a reload after a deploy that didn't touch it is cached (684 KB inline today)Item 2 of the low-hanging fruit (4 Nov). Item 1, magenta#385, merged and deployed: /api/servers/ went from 0.6–1.4 s to 18 ms (Server-Timing, block 26,350,822).
- ☐Merge magenta:magent/visitor-polls (a tab with no device polls every 15 s, not 4 and 5), then redeploy maybelleHN/reddit wave, 11-12 Nov. Each visitor from the link is a polling tab; the 6 Nov ramp queued at ~25 of them. Justin: 'a no-brainer'.
- ☐Merge magenta:magent/tidings-premade (release and picture lists served as kept while one thread rebuilds), then redeploy maybellehug-watch, 11 Nov 23:14Z-02:33Z: /api/tidings/ took 4-30 s every ~5 min (the picture scan at PICTURES_KEPT, the release scan at RELEASES_KEPT), on whoever asked. mood_cache.kept: stale-while-revalidate, as /api/servers/ since #385.
- ☐Server-side traffic metrics: requests, visitors, referers, slow looks, on maybelle, with no client codeJustin (12 Nov): no tracking code to users. Choices put to him in #performance: GoAccess over gunicorn's access log, or a Traffic card on Status fed by a counting middleware.
- ☐Verify live endpoint timings on maybelle after the perf deploysRe-run the 02:15Z timings for /api/moods/ and cold room loads; re-stamp Cryptograss/Moods/Loading and prefetch (research). memory-lane/loadtest/tabs.py (magenta#412) now does the ramp; its second run (6 Nov 19:31Z): 10 tabs p95 1.9 s, stopped at 25.
Done (2)
- ☑The wiki push, its last step: make the secret (openssl rand -hex 32), put it in the vault as memory_lane_wiki_hook_secret and in LocalSettings.local.php on the wiki host as $wgPickiPediaContentMagentaHookSecret; merge maybelle-config#279, redeploy maybelleMoved from #interfaces (6 Nov), where the push item was ticked done with this step still open: /wiki-hooks/ says no WIKI_HOOK_SECRET, #279 is open (checked block 26,358,037). magenta#404 and pickipedia#175 are merged and live; the minute sweep alone serves until then.
- ☑Merge magenta#412 (load test script; a poll stops redoing who-spoke and the emergents' settings), redeploy maybelleFirst run on production (6 Nov) stopped at 5 tabs: poll p50 1.7 s, p95 5 s. Rerun posted 19:31Z, with #411.