vd03 event rate dropped 355→240/s after the R1/R2 redeploy: root cause unknown (#238 ruled out on windev) #239

Open
opened 2026-12-01 19:41:34 -05:00 by dohertj2 · 0 comments
Owner

At the 2026-11-21 R1/R2 deploy on wonder-app-vd03 (docs/deploy/2026-11-21-vd03-perf-r1-r2.md, #236) the gateway event rate fell from ~355/s to ~242/s and has not recovered. The Historian shows the source load unchanged, and AdviseSupervisory is still 810. ScadaBridge logged "Seed read returned no value for 298 tag(s)" after each reconnect.

#238 was the suspected cause: ReadBulk snapshot teardown removing the client's own item. The windev live run did not support it. On windev, MXAccess gives a re-added address a new item handle (client 1, snapshot 2, then 3), and the old worker (54367e74) left the client's advice intact: a later write still arrived on handle 1. The #238 fix is defensive (fix/238-readbulk-teardown). It only explains the drop if vd03's MXAccess reuses handles, which is unverified.

To do

  • On vd03, use deploy-scoped or SMB/HTTP/SQL means (not ad-hoc WinRM). Find which of the 810 tags stopped delivering: compare per-tag OnDataChange counts, dashboard/session metrics or Historian against the 298 seed-read misses.
  • Check whether vd03's MXAccess returns the existing handle on a repeated AddItem. The live test ReadBulkOfClientHeldTag on the #238 branch records this.
  • Rule out R1 drain-thread or R2 relay changes dropping or coalescing events (sequence gaps, overflow counters).
  • Blocks the QA ring of #236.
At the 2026-11-21 R1/R2 deploy on wonder-app-vd03 (`docs/deploy/2026-11-21-vd03-perf-r1-r2.md`, #236) the gateway event rate fell from ~355/s to ~242/s and has not recovered. The Historian shows the source load unchanged, and `AdviseSupervisory` is still 810. ScadaBridge logged "Seed read returned no value for 298 tag(s)" after each reconnect. #238 was the suspected cause: ReadBulk snapshot teardown removing the client's own item. **The windev live run did not support it.** On windev, MXAccess gives a re-added address a *new* item handle (client 1, snapshot 2, then 3), and the old worker (`54367e74`) left the client's advice intact: a later write still arrived on handle 1. The #238 fix is defensive (`fix/238-readbulk-teardown`). It only explains the drop if vd03's MXAccess reuses handles, which is unverified. **To do** - On vd03, use deploy-scoped or SMB/HTTP/SQL means (not ad-hoc WinRM). Find which of the 810 tags stopped delivering: compare per-tag OnDataChange counts, dashboard/session metrics or Historian against the 298 seed-read misses. - Check whether vd03's MXAccess returns the existing handle on a repeated AddItem. The live test `ReadBulkOfClientHeldTag` on the #238 branch records this. - Rule out R1 drain-thread or R2 relay changes dropping or coalescing events (sequence gaps, overflow counters). - Blocks the QA ring of #236.
dohertj2 added the area:workerpriority:p1type:bug labels 2026-12-01 19:41:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/mxaccessgw#239