fix(host): dev site seed no longer targets the metrics port; validator rejects seed-vs-MetricsPort
This commit is contained in:
@@ -124,6 +124,14 @@ public static class StartupValidator
|
||||
_ => SeedNodePort(seed) != grpcPort,
|
||||
$"entry '{seed}' must not target the gRPC port " +
|
||||
$"({grpcPort}); seed nodes must reference Akka remoting ports");
|
||||
|
||||
// Same failure mode as the gRPC guard: the Kestrel HTTP/1.1
|
||||
// metrics listener is not an Akka.Remote endpoint, so a seed on
|
||||
// it dials a doomed association forever.
|
||||
p.Require("ScadaBridge:Cluster:SeedNodes",
|
||||
_ => SeedNodePort(seed) != metricsPort,
|
||||
$"entry '{seed}' must not target the metrics port " +
|
||||
$"({metricsPort}); seed nodes must reference Akka remoting ports");
|
||||
}
|
||||
})
|
||||
.ThrowIfInvalid();
|
||||
|
||||
Reference in New Issue
Block a user