From a2d316560392146bad578b263af25e12d9a02bed Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 3 Dec 2026 15:48:44 -0500 Subject: [PATCH] docs(grpc-data): #1057 follow-ups in DataConnections.md (#994 scaling section) --- docs/DataConnections.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/DataConnections.md b/docs/DataConnections.md index ecf289f31..27b73b2fb 100644 --- a/docs/DataConnections.md +++ b/docs/DataConnections.md @@ -264,6 +264,26 @@ items or an origin is busy. Perf harness: `GrpcDataWave3PerfTests` (`Category=Perf`, opt-in `OTOPCUA_GRPCDATA_PERF=1`). +Follow-ups (#1057): + +- **An item the delivery index cannot hold is refused in its own acknowledgement.** Items register in the session's + delivery index at admission, before the Open/Add ack is built, so a refusal is that item's `LimitExceeded`. It used to + register after the ack had been queued as Good, so a failure could only stop the whole session. Items still waiting for + their first value register at admission too, so their later recovery cannot reset the stream for capacity. +- **A sibling source's invalidation no longer resets an in-flight snapshot.** A snapshot adopts a newer partition control + stamp once none of its own captured sources changed, as interest leases already did (R-9). Its own sources' + invalidation, a partition-wide invalidation and a retired binding still reset it. +- **Snapshot admission is per stream.** The origin used to admit `MaxStreamsPerPrincipal` (8) concurrent snapshots per + principal, shared by all of that principal's streams, so a consumer's third cohort with snapshots outstanding was + refused and its stream reset ("Snapshot admission exhausted"). Each stream now has 8 slots + (`SubscriptionTransportCapacity.SnapshotSlotsPerStream`), and the principal and node caps are sized so every admitted + stream can hold all of them. The snapshot byte budgets still bound memory. A stream's own waiting-item recoveries may use + at most half its slots, so the peer's outstanding commands always find theirs. +- **Less allocation per projected value.** The mapped-subject resolve, the origin's catalog resolve and the policy scope key + no longer allocate. The origin's latest-version check peeks instead of retaining a second copy of the sample, and the + session tick reuses its working lists. Measured with the perf harness (10k-item cohort, 100 versions at 1k/s): about + 5.3 KB to about 4.3 KB allocated per delivered value. That figure includes the harness's own per-value copies. + ### Mixed versions (X0 rollout) The remote history and alarm work (`docs/plans/2026-11-23-grpc-data-connections-history-alarms-plan.md`)