feat: author and inspect grpc data connections

This commit is contained in:
Joseph Doherty
2026-11-16 20:58:43 -05:00
parent 8ad03e9c5d
commit 1df29a3124
31 changed files with 1246 additions and 141 deletions
+20
View File
@@ -907,6 +907,26 @@ Full detail: the enablement runbook at
[`docs/operations/2026-07-20-localdb-pair-replication.md`](operations/2026-07-20-localdb-pair-replication.md)
and the `LocalDb` section of [`docs/Configuration.md`](Configuration.md).
## Data-connection routing across independent pairs
The current-data gRPC plane uses deployed endpoint sets and authenticated capabilities, independently
of Akka pair membership, mesh command routing and OPC UA client failover. A logical Cluster target
selects a ready primary of the expected application cluster. A Node target pins the expected node;
`ReadyReplica` is an explicit read/subscription policy, while writes require primary authority.
Neither a secondary nor an import mapping forwards a rejected pinned write to its partner.
A role or serving-incarnation change invalidates old projected authority. Read/subscription recovery
rediscovers the eligible server and starts a new epoch and fresh snapshot; transitions in the gap
can be lost. A write already submitted with an unknown outcome is never automatically replayed on
the new primary. Only proven pre-dispatch rejection establishes that a write did not execute;
driver confirmation, acceptance without confirmation and outcome unknown remain distinct.
Same-cluster peer imports and cross-cluster imports use explicit directional connections and
consumer scopes. They do not merge gossip rings, alter local driver ownership or start a second
device connection. Dedicated TLS and target credentials are independent of the existing h2c mesh
planes. See [Data connections](DataConnections.md) for operational controls and
[Read/write operations](ReadWriteOperations.md) for completion semantics.
## Client-side failover
The OtOpcUa Client CLI at `src/Client/ZB.MOM.WW.OtOpcUa.Client.CLI` supports `-F` / `--failover-urls` for automatic client-side failover; for long-running subscriptions the CLI monitors session KeepAlive and reconnects to the next available server, recreating the subscription on the new endpoint. See [`Client.CLI.md`](Client.CLI.md).