Files
lmxopcua/docs/plans/evidence/2026-11-13-717-t13/rig/compose.t13b.yml
T
Joseph Doherty 36eb6d558d
v2-ci / unit-tests (push) Has been cancelled
docs(717): Mode=Unset re-check after c569f806 (no change); a leaving node reports 0
T13b: the isolated otopcua-t13b pair with OpcUa:Redundancy:Mode absent, on origin/master f826af8e
(it contains c569f806) and A/B on c569f806^ (687256d6). Every check passes on both builds:
- levels 250/240;
- Good data on both nodes;
- writes, Acknowledge, AddComment and alarm delivery on the Secondary;
- graceful stop: the survivor reaches 250 259 ms after Leaving (pre-fix 270 ms);
- crash: 250 at +43.6 s (pre-fix +42.8 s), with no demotion at auto-down;
- rejoin at 240 with no failback.
The role-decision changes are gated on IsWarm and do not run under Unset.

Plan L5, the design's section 4.3 and the Warm table in Redundancy.md now say a Leaving/Exiting node
reports ServiceLevel 0, not 90 (ComputeWarm returns 0 for any member that is not Up/Joining; T13 note A).

Claude-Session: https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
2026-11-13 06:44:46 -05:00

103 lines
4.2 KiB
YAML

# Isolated #717 T13b (Unset recheck) pair. Project name otopcua-t13b; own network, own SQL + volumes, own image tag.
name: otopcua-t13b
x-host-env: &host-env
OTOPCUA_ROLES: "admin,driver,cluster-MAIN"
ASPNETCORE_URLS: "http://+:9000"
ConnectionStrings__ConfigDb: "Server=sql,1433;Database=OtOpcUa;User Id=sa;Password=OtOpcUa!Dev123;TrustServerCertificate=True;"
Secrets__SqlitePath: "/data/otopcua-secrets.db"
Secrets__Replication__Enabled: "true"
Secrets__Replication__AnnounceInterval: "00:00:05"
ZB_SECRETS_MASTER_KEY: "ZYGhIX0luS/XsevpCB2W18jYHMcqO6AjM9oXy+T6Zp4="
Security__ApiKeys__Pepper: "t13-apikey-pepper-not-for-production"
# LDAP block is validated at boot; it is AdminUI-login only and login is disabled, so point it at loopback
# (nothing here contacts the shared GLAuth).
Security__Ldap__Enabled: "true"
Security__Ldap__DevStubMode: "false"
Security__Ldap__Server: "127.0.0.1"
Security__Ldap__Port: "3893"
Security__Ldap__Transport: "None"
Security__Ldap__AllowInsecure: "true"
Security__Ldap__SearchBase: "dc=zb,dc=local"
Security__Ldap__ServiceAccountDn: "cn=serviceaccount,dc=zb,dc=local"
Security__Ldap__ServiceAccountPassword: "unused"
Cluster__Hostname: "0.0.0.0"
Cluster__Port: "4053"
ConfigServe__GrpcListenPort: "4055"
ConfigServe__ApiKey: "configserve-t13-key"
ConfigSource__Mode: "Direct"
Telemetry__GrpcListenPort: "4056"
Telemetry__Mode: "Grpc"
Telemetry__ApiKey: "telemetry-t13-key"
TelemetryDial__Mode: "Grpc"
TelemetryDial__ApiKey: "telemetry-t13-key"
Cluster__Roles__0: "admin"
Cluster__Roles__1: "driver"
Cluster__Roles__2: "cluster-MAIN"
MeshTransport__Mode: "Grpc"
MeshTransport__GrpcPsk: "t13-mesh-psk-MAIN"
MeshTransport__CentralGrpcEndpoints__0: "http://central-1:4055"
MeshTransport__CentralGrpcEndpoints__1: "http://central-2:4055"
MeshTransport__ClusterPsks__MAIN: "t13-mesh-psk-MAIN"
Security__Jwt__SigningKey: "t13-signing-key-with-at-least-32-bytes-of-utf8-content-12345678"
Security__Jwt__Issuer: "otopcua-t13"
Security__Jwt__Audience: "otopcua-t13"
Security__DeployApiKey: "t13-deploy-key"
Security__Auth__DisableLogin: "true"
Security__Acl__Enabled: "false"
ServerHistorian__Enabled: "false"
ContinuousHistorization__Enabled: "false"
Serilog__MinimumLevel__Override__Microsoft.EntityFrameworkCore: "Warning"
Serilog__MinimumLevel__Override__Microsoft.AspNetCore: "Warning"
LocalDb__Path: "/app/data/otopcua-localdb.db"
Serilog__WriteTo__0__Args__outputTemplate: "[{Timestamp:HH:mm:ss.fff} {Level:u3}] {Message:lj}{NewLine}{Exception}"
services:
sql:
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
ACCEPT_EULA: "Y"
SA_PASSWORD: "OtOpcUa!Dev123"
MSSQL_PID: Developer
ports: ["24339:1433"]
volumes: [t13b-mssql-data:/var/opt/mssql]
healthcheck:
test: ["CMD-SHELL", "/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P 'OtOpcUa!Dev123' -No -Q 'SELECT 1' || exit 1"]
interval: 10s
timeout: 5s
retries: 20
central-1:
image: otopcua-host:${T13_IMAGE:-t13b-f826af8e}
mem_limit: 2g
restart: unless-stopped
depends_on: { sql: { condition: service_healthy } }
environment:
<<: *host-env
Cluster__PublicHostname: "central-1"
OpcUa__ApplicationUri: "urn:OtOpcUa:central-1"
OpcUa__PeerApplicationUris__0: "urn:OtOpcUa:central-2"
Cluster__SeedNodes__0: "akka.tcp://otopcua@central-1:4053"
Cluster__SeedNodes__1: "akka.tcp://otopcua@central-2:4053"
ports: ["24840:4840", "29210:9000"]
volumes: [t13b-c1:/app/data, t13b-c1:/data]
central-2:
image: otopcua-host:${T13_IMAGE:-t13b-f826af8e}
mem_limit: 2g
restart: unless-stopped
depends_on: { sql: { condition: service_healthy }, central-1: { condition: service_started } }
environment:
<<: *host-env
Cluster__PublicHostname: "central-2"
OpcUa__ApplicationUri: "urn:OtOpcUa:central-2"
OpcUa__PeerApplicationUris__0: "urn:OtOpcUa:central-1"
Cluster__SeedNodes__0: "akka.tcp://otopcua@central-2:4053"
Cluster__SeedNodes__1: "akka.tcp://otopcua@central-1:4053"
ports: ["24841:4840", "29211:9000"]
volumes: [t13b-c2:/app/data, t13b-c2:/data]
volumes:
t13b-mssql-data:
t13b-c1:
t13b-c2: