fix(perf): #996 Wave 4 — blob-free health probes, narrow data-connections load, off-thread coordinator acks + AdminOps audit, events page cap, capped reservations page

C-6: DeploymentQueries projects Deployment without ArtifactBlob (DbHealthProbe, readiness, ClusterOverview, DriverHost boot).
C-11/A-5: DraftSnapshotFactory.FromConfigDbForDataConnectionsAsync + one-parse-per-artifact LoadAppliedAsync + capped pickers.
H-6: ConfigPublishCoordinator persists acks off the actor thread (AckPersisted); deadline backlog kicked in parallel.
H-3: Restart/Reconnect reply = dispatch; ConfigEdit audit written off-mailbox, failure logged not surfaced.
U-6: ServerHistorian:MaxEventsPerRead (default 10000) pages HistoryReadEvents; advertised as MaxReturnEventValues.
A-8: /reservations active-only by default, projected, capped at 200.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Joseph Doherty
2026-12-03 10:58:50 -05:00
parent b9955f6946
commit ea976ffa81
31 changed files with 1184 additions and 104 deletions
+6
View File
@@ -809,6 +809,12 @@ deployment green fleet-wide. Now:
`Degraded = false, DegradedReason = null` (an old node's DPS JSON decodes clean); `ApplyAckMessage` gained
`bool degraded = 6; optional string degraded_reason = 7;` (an old node's gRPC ack decodes clean). The
outcome stays `APPLIED` — a degraded node *did* apply the revision.
- **Ack rows are written off the coordinator thread (#996, review H-6).** `ConfigPublishCoordinator` persists each node's ack on a pool
thread (`AckPersisted` is piped back; one write per node at a time, a newer ack for the same node waits behind it) and decides
count/seal on the actor thread. With the ConfigDb slow or unreachable (no EF retry strategy ⇒ a connect timeout per call) the
timeouts now overlap instead of serialising N × timeout of unresponsive mailbox; the deadline kicks its whole unpersisted backlog off at
once and decides as soon as the last write lands. The dispatch guard/seed and the terminal seal/fail/timeout writes are still
synchronous single calls (see the follow-up issue).
- **Central records it without a status-model change.** `ConfigPublishCoordinator.PersistNodeAck` keeps the
node's `NodeDeploymentState.Status = Applied` and writes `FailureReason = "Applied degraded: <reason>"`
(`ConfigPublishCoordinator.IsDegraded` = Applied **and** a reason). The deployment still **seals** —