docs(index): OtOpcUa pluggable historian (SqlServer #652, QuestDB #666)

This commit is contained in:
Joseph Doherty
2026-10-11 04:42:08 -04:00
parent c713925ac7
commit c6e60cb6c4
2 changed files with 26 additions and 1 deletions
@@ -167,3 +167,28 @@ AddRoute of the dev Mac (`oee-tagdump-mac`, `10.181.206.245.1.1`) on the two tes
`DeltaApplied`, host `ApplyChildDelta`, `DriverSpawnPlan.ToApplyDelta`, actor mid-connect adoption) — unreachable
since #516 and the home of the #663/#664 latent bugs. A driver config change is now unambiguously a respawn.
`IDriver.ReinitializeAsync` kept as a per-driver contract. **ScadaBridge impact: none** (no behaviour change).
- **2026-10-09 #652 (closed; OtOpcUa merge `8ec7a83c`, pushed with `ee67b637`).** Pluggable historian:
`ServerHistorian:Backend` = `Gateway` (default) | `SqlServer`. The SqlServer backend stores typed values with their
**real status** (the recorder used to stamp every sample Good), pushes 13 aggregates down to T-SQL, historizes
comms loss as an Empty `BadNoCommunication` outage marker, and serves OPC UA **HistoryUpdate**
(Insert/Replace/Update/DeleteRaw/DeleteAtTime). That is gated by a new `HistoryUpdate` permission and never implied
by `WriteOperate`, and the Gateway backend refuses it with `BadHistoryOperationUnsupported`. Outbox records are now
format v2, so drain the outbox before downgrading. Live gate passed:
`docs/plans/2026-10-09-pluggable-historian-live-gate.md`. Follow-ups #667–#671; #670 (OpcUaClient never goes Bad on
upstream session loss) is open. **ScadaBridge impact: none by default** (Gateway is unchanged). On a SqlServer or
QuestDB node, HistoryRead returns real stored statuses and a client may HistoryUpdate.
- **2026-10-11 #666 (closed; OtOpcUa `ee67b637`).** Third historian backend, `ServerHistorian:Backend=QuestDb`, at
parity with SqlServer:
- Npgsql/PG wire only.
- Microsecond timestamps; HistoryRead paging steps by the backend's resolution via the new
`IHistorianDataSource.TimestampResolutionTicks`.
- Soft-delete HistoryUpdate: a `deleted` flag plus tombstone rows, INSERT only, under `DEDUP UPSERT KEYS(ts,tag)`.
- Optional table TTL via `ServerHistorian:QuestDb:RetentionDays`.
- The connection pool is capped at 24 by default, because QuestDB allows 64 connections.
Dialect-free logic moved to `Driver.Historian.Sql.Common`, and one conformance suite runs against both SQL backends.
docker-dev gains an overlay, `docker-dev/docker-compose.questdb.yml`. The live gate passed all six legs, including a
real outbox-replay redelivery that does not resurrect a deleted row:
`docs/plans/2026-10-10-questdb-historian-live-gate.md`. The gate found **#672**: a crash (SIGKILL) failover leaves
about 30 s with no historization, because #537 Primary-gated capture waits for Akka downing. It is
backend-independent; clean failovers are gap-free. **ScadaBridge impact: none by default**; the same as SqlServer
when selected.