docs(deploy): PROD mxgw — PAR alarms on Galaxy!NewJersey; all four on SQL login wwpdgdbro (ready 200, #60 not needed)
ci / windows-x86 (push) Successful in 1m55s
ci / java (push) Failing after 5m15s
ci / portable (push) Failing after 11m20s

Claude-Session: https://claude.ai/code/session_01GT67AD5mc2BnaaAfY3hqqQ
This commit is contained in:
Joseph Doherty
2026-11-22 12:06:22 -05:00
parent 256b5c1bfc
commit 54367e7408
@@ -86,3 +86,51 @@ On each PAR box: `nssm stop MxAccessGw; nssm remove MxAccessGw confirm`, then de
`C:\ProgramData\ZB\kek\mxgateway.kek`. site-par's connection then goes back to retrying. To serve it from the app-box `C:\ProgramData\ZB\kek\mxgateway.kek`. site-par's connection then goes back to retrying. To serve it from the app-box
gateways instead: `data-connection update --id 1` with `10.220.153.205:5120` / `10.220.153.210:5120`, then gateways instead: `data-connection update --id 1` with `10.220.153.205:5120` / `10.220.153.210:5120`, then
`deploy artifacts --site-id 1`. `deploy artifacts --site-id 1`.
## Later 2026-11-22: alarms on the PAR gateways; all four PROD gateways moved to a SQL login for Galaxy
The owner asked for two changes:
- "make sure the par servers mxaccessgw's are configured to listen to alarms for NAM / NewJersey area (and subareas)";
- "swap all mxaccesgw on all 4 prod to use the galaxy_prod_sql login".
Each change was made in the service's `AppEnvironmentExtra` registry value through WinRM. Before the edit, each box
kept a backup copy of the old value in the same key:
- `AppEnvironmentExtra.bak-20261122-prealarms` (par-vp04 only);
- `AppEnvironmentExtra.bak-20261122-pregalaxysql` (all four).
**Alarms (PAR):**
- `MxGateway__Alarms__Enabled=true`.
- `MxGateway__Alarms__SubscriptionExpression=\\<own box>\Galaxy!NewJersey`, i.e. `\\WONDER-PAR-VP03\…` and
`\\WONDER-PAR-VP04\…`. Each box subscribes on its own name, which is the QA pattern (`\\wonder-app-vq03\Galaxy!NAM`).
- Galaxy facts: `NewJersey` (gobject 6614) is the area under `NAM`. Its sub-areas are `CVDAisle_1` (6762, the nine
reactors) and `Gas_Service` (tag `Gas_Service`, contained name `Gas_Service_1`). All of them are hosted by
`AppEnginePAR` on `WinPlatformPAR01`, with a redundant engine on `WinPlatformPAR02`.
- Alarm references carry the sub-area tag name, e.g. `Galaxy!CVDAisle_1.Z28063.HeartbeatTimeoutAlarm`.
- par-vp04 was done at 16:54Z. Its first restart still had the old Windows-auth login, so the monitor came up on the
alarm manager but degraded: Repository discovery failed with 4060. par-vp03 was done at 17:01Z, together with the SQL
swap.
- vp03/vp04 were already set to `\\WONDER-APP-VP03\Galaxy!ControlSystem` by someone outside this run. That was left
unchanged.
**Galaxy SQL login (all four):**
- `MxGateway__Galaxy__ConnectionString` now uses the SQL login `wwpdgdbro` (`db_datareader` on `ZB`,
WONDER-APP-VP03; from the owner's `GALAXY_PROD_SQL_*`):
`Server=wonder-app-vp03.zmr.zimmer.com;Database=ZB;User Id=wwpdgdbro;Password=***;TrustServerCertificate=True;Encrypt=False;`.
The string was staged by SMB to `_values\galaxy-sql.txt`, read on the box and deleted there. The local copy was
deleted too, and the string was never printed.
- Previously: vp03 used `Data Source=localhost` with Integrated Security; the other three used Integrated Security,
i.e. the machine accounts, which `ZB` refused (scadaproj#60).
- Order: par-vp04 17:00:22Z, par-vp03 17:00:57Z, vp04 17:01:44Z, vp03 17:02:09Z. Each box restarted once, and each
was ready (200) within 3 s of the service coming up.
**Result:**
- `/health/ready` is **200 on all four for the first time**, with galaxy-sql Healthy.
- Alarm discovery `watchList=5659` on all four.
- par-vp03/04 feeds: `ALARM_PROVIDER_MODE_ALARMMGR`, not degraded, 7 active alarms, all in `CVDAisle_1`. Those are
the `HeartbeatTimeoutAlarm` of Z28061, Z28063–Z28067 and Z28069.
- ScadaBridge site-par mirrors exactly those 7 through each instance's `ReactorAlarms` source. Each alarm appears on
its own instance, and every instance still reads 244/244 Good.
- **This makes the scadaproj#60 DBA grant unnecessary** for the gateways.
**Rollback (per box):** copy the `.bak-20261122-pregalaxysql` value back to `AppEnvironmentExtra`, then
`Restart-Service MxAccessGw`.