feat(audit,install): #1030 audit overflow drops exported as otopcua.audit.dropped; scripted SCM-restart-after-cluster-exit gate

- AuditWriterActor: every buffer-full drop is added to OtOpcUaTelemetry.AuditDropped
  (otopcua.audit.dropped{reason=buffer_full, actor}) — the count used to be readable only
  through the actor's own property.
- scripts/install/tests/Test-ScmRestartAfterClusterExit.Windows.ps1: the windev manual gate
  of 2026-12-03 as a script (qfailure restart action; failover/command trigger => non-zero exit,
  7031, Running under a new pid; Stop-Service stays stopped; optional kill control). Parse-checked
  with pwsh on macOS; must be run elevated on a Windows box hosting OtOpcUaHost.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Joseph Doherty
2026-12-03 15:02:09 -05:00
parent 6b19f4add6
commit 2a8bac5bf5
7 changed files with 266 additions and 2 deletions
+9
View File
@@ -504,6 +504,15 @@ two-node pair that choice means *any* crash of the oldest node is a full outage.
that Akka's -1 is invisible to SCM recovery). Positive control: `sc stop` on the fixed build → clean
`Stopped`, exit 0, no recovery. Under `auto-down` the *survivor* no longer needs this (it is never the one
downed); the **downed** node still does.
**Scripted form of that gate (#1030):** `scripts/install/tests/Test-ScmRestartAfterClusterExit.Windows.ps1`, run
elevated on the box hosting an installed `OtOpcUaHost` (the pair's current Primary for the default
`-Trigger Failover`, which pauses while the operator presses *Trigger failover* on the cluster redundancy page;
`-Trigger Command -TriggerCommand '…'` for an unattended trigger). It checks `sc.exe qfailure` has a restart action,
that the leave ends the process non-zero, logs **7031** and comes back `Running` under a new pid, and — as the
negative control — that `Stop-Service` stays `Stopped` with no 7031; `-KillControl` adds a hard-kill leg that
proves the SCM recovery config on its own. It never reconfigures the service and always leaves it running. Not
for the wonder boxes while remote access is on hold.
3. **Both peers listed in `SeedNodes`** on every node, **each node listing itself first**, so a restarted
node can re-join via either peer and a node cold-starting while its peer is dead still forms the
cluster. Without the self-first ordering it waits in `InitJoin` forever (auto-down removes the crash