diff --git a/docs/DataConnections.md b/docs/DataConnections.md index feeb1449b..73e5f5282 100644 --- a/docs/DataConnections.md +++ b/docs/DataConnections.md @@ -170,7 +170,7 @@ pre-H2 origin, or a call without the header answers unsupported — the v1 respo | `DataConnection.HistoryTimeoutMilliseconds` | 30000 | Each call's deadline is the smaller of the caller's remaining budget and this; expiry ⇒ `BadTimeout`. The origin also cancels every unary call at its own `DataConnections:UnaryTimeout` (30 s default), so the effective ceiling is the smaller of the two; that origin cancel is reported `BadTimeout` too, never an endpoint failure | | `DataExport.MaxConcurrentHistoryReads` | 4 | Concurrent history requests per principal; past it ⇒ `BadTooManyOperations` | | `DataExport.MaxHistoryValuesPerPage` | 10000 | Per-node page ceiling; an uncapped Raw read pages at it and returns a continuation. Processed intervals and AtTime times above it are refused `BadTooManyOperations` before any backend read | -| `DataExport.MaxHistoryResponseBytes` | 4 MiB | Larger answers travel in bounded chunks the consumer reassembles. The origin stops reading once a response is full and serves the remaining nodes on the next chunk call; remainders it holds count against a per-principal byte budget (concurrent reads × max(response limit, one page)) — past it a node is `BadTooManyOperations`, never dropped silently | +| `DataExport.MaxHistoryResponseBytes` | 4 MiB (256 KiB–64 MiB) | Larger answers travel in bounded chunks the consumer reassembles. The origin stops reading once a response is full and serves the remaining nodes on the next chunk call; remainders it holds count against a per-principal byte budget (concurrent reads × max(response limit, one page)) — past it a node is `BadTooManyOperations`, never dropped silently | | `RemoteNamespaceMapping.MaxHistoryAssemblyBytesPerRequest` | 16 MiB | Used by projected reads (H3); a direct consumer's budget is its request `MaxBytes` | **Continuations.** Origin continuations are single-use, idle-expire after 60 s and are bound to the principal, the HTTP/2 @@ -178,6 +178,14 @@ connection, the serving incarnation and role, the view and the request details. that issued its token: an origin restart, a failover or a lost page answers `BadContinuationPointInvalid` (start a fresh read; a fresh read may move endpoint). Release unused continuations with `ReleaseAsync`. +**Sharing the history limiter.** Remote reads hold at most N − max(1, N/4) of the origin's N process-wide history batch +slots (`ServerHistorian:MaxConcurrentHistoryReadBatches`); past that a remote request is `BadTooManyOperations` unsent, so +local OPC UA clients keep at least one slot. At N = 1 there is no reservation: the one slot is shared. + +**Limit changes.** Deploying a change to a principal's history limits (`MaxConcurrentHistoryReads`, +`MaxHistoryValuesPerPage`, `MaxHistoryResponseBytes`) or the export's batch size clears that principal's live origin +sessions and their continuation/chunk tokens; open reads then answer `BadContinuationPointInvalid` and start fresh. + **Consistency.** History follows the connection's consistency. `ReadyReplica` is allowed; the newest seconds can lag on a secondary while its continuous-historization outbox drains.