Review 2026-12-02 Phase 1: Land existing event-path perf branches + bound STA pump drain #252

Closed
opened 2026-12-02 16:07:37 -05:00 by dohertj2 · 2 comments
Owner

Phase 1 — Land the existing perf work (p1)

MXA-002 / WIP-002 / MXA-006. The fixes are already written, tested on windev, and deployed on DEV vd03 (worker CPU 45% → 0.3% of a core). They were never merged. The branches stack:

main ── feat/worker-perf-prototype (+3, #236) ── feat/gateway-relay-hops (+7, #235) ── fix/readbulk-subscription-teardown (+8, #238)
  1. Rebase fix/readbulk-subscription-teardown onto main (each branch is 2 commits behind). It carries all three.
  2. Run the windev worker CI (windev-worker-ci.ps1 -Sha <sha> -Mode test) and the gateway suite.
  3. Merge to main, then follow the rollout plan committed on the branch (3be20983) for QA and PROD.
  4. Then re-assess WIP-001 (pump drain starving the STA). The record-info pin raises the ~700 ev/s ceiling a lot, but the drain is still unbounded. Cap PeekMessage dispatches per loop iteration (for example 64), then service the work queue and stamp activity. Test: a fake message flood with a queued command; the command runs and no StaHung fires.

Close perf.md by moving it into docs/ (or deleting it, since it is untracked) once the work is merged.

High findings filed separately:

Existing issues: MXA-002 / WIP-002 are the unmerged work tracked by #236 (rollout) and #235 (gateway relay). #238 is closed but its fix is still only on fix/readbulk-subscription-teardown, not on main (MXA-006).


Source: code-reviews/2026-12-02-perf-bugs/README.md and code-reviews/2026-12-02-perf-bugs/PLAN.md (commit f200bda6 on local branch docs/review-2026-12-02-perf-bugs, not yet pushed). Reviewed at 54367e74.

## Phase 1 — Land the existing perf work (p1) MXA-002 / WIP-002 / MXA-006. The fixes are already written, tested on windev, and deployed on DEV vd03 (worker CPU 45% → 0.3% of a core). They were never merged. The branches stack: ``` main ── feat/worker-perf-prototype (+3, #236) ── feat/gateway-relay-hops (+7, #235) ── fix/readbulk-subscription-teardown (+8, #238) ``` 1. Rebase `fix/readbulk-subscription-teardown` onto `main` (each branch is 2 commits behind). It carries all three. 2. Run the windev worker CI (`windev-worker-ci.ps1 -Sha <sha> -Mode test`) and the gateway suite. 3. Merge to `main`, then follow the rollout plan committed on the branch (`3be20983`) for QA and PROD. 4. Then re-assess **WIP-001** (pump drain starving the STA). The record-info pin raises the ~700 ev/s ceiling a lot, but the drain is still unbounded. Cap `PeekMessage` dispatches per loop iteration (for example 64), then service the work queue and stamp activity. Test: a fake message flood with a queued command; the command runs and no `StaHung` fires. Close `perf.md` by moving it into `docs/` (or deleting it, since it is untracked) once the work is merged. **High findings filed separately:** - [ ] #246 WIP-001 **Existing issues:** MXA-002 / WIP-002 are the unmerged work tracked by #236 (rollout) and #235 (gateway relay). #238 is closed but its fix is still only on `fix/readbulk-subscription-teardown`, not on `main` (MXA-006). --- Source: `code-reviews/2026-12-02-perf-bugs/README.md` and `code-reviews/2026-12-02-perf-bugs/PLAN.md` (commit `f200bda6` on local branch `docs/review-2026-12-02-perf-bugs`, not yet pushed). Reviewed at `54367e74`.
dohertj2 added the area:gatewayarea:workerpriority:p1type:review-finding labels 2026-12-02 16:07:37 -05:00
Author
Owner

Decision (2026-12-03, recorded as D4/D5/D6 in code-reviews/2026-12-02-perf-bugs/PLAN.md): rebase fix/readbulk-subscription-teardown onto main and merge as one unit after windev worker CI; add the untracked perf.md as docs/WorkerEventPathPerformance.md in the same merge; close #238 on merge. QA/PROD deploy is a separate, explicitly requested step.

Decision (2026-12-03, recorded as D4/D5/D6 in `code-reviews/2026-12-02-perf-bugs/PLAN.md`): rebase `fix/readbulk-subscription-teardown` onto `main` and merge as one unit after windev worker CI; add the untracked `perf.md` as `docs/WorkerEventPathPerformance.md` in the same merge; close #238 on merge. QA/PROD deploy is a separate, explicitly requested step.
Author
Owner

Merged to main at 68043411 (pushed 2026-12-03). Gateway suite 1610 passed / 0 failed (macOS); windev worker CI 836 passed / 0 failed on that SHA.

Perf stack rebased and merged as one unit (D4), WIP-001 bounded, doc added (D6), #238 closed (D5). QA/PROD rollout stays on #236.

Merged to `main` at `68043411` (pushed 2026-12-03). Gateway suite 1610 passed / 0 failed (macOS); windev worker CI 836 passed / 0 failed on that SHA. Perf stack rebased and merged as one unit (D4), WIP-001 bounded, doc added (D6), #238 closed (D5). QA/PROD rollout stays on #236.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/mxaccessgw#252