fix(hosts): driver health is per (driver, node) — ReportingNodeId on DriverHealthChanged + telemetry proto (#847)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
@page "/hosts"
|
||||
@* Two views, top to bottom. (1) Akka cluster topology: each member's NodeId (host:port), roles,
|
||||
leader status — the cluster-membership view. (2) Driver instances: live driver-health grouped by
|
||||
cluster. The health feed (DriverHealthChanged) carries no per-Akka-member identity, so the rows
|
||||
are cluster-scoped (keyed per driver instance across the cluster, not per member). The section
|
||||
cluster. Each health snapshot carries its reporting node (DriverHealthChanged.ReportingNodeId, #847), so the
|
||||
rows are one per (driver instance, node) — a driver Faulted on one node and Healthy on its peer shows both. The section
|
||||
reads the in-process driver-health snapshot store directly + reloads its config from the ConfigDB. *@
|
||||
@attribute [Authorize(Policy = AdminUiPolicies.AuthenticatedRead)]
|
||||
@rendermode RenderMode.InteractiveServer
|
||||
@@ -152,6 +152,7 @@ else
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Driver</th>
|
||||
<th title="The node reporting this row — each node of a redundant pair runs the driver, so a driver has one row per node">Node</th>
|
||||
<th>Type</th>
|
||||
<th>Status</th>
|
||||
<th>Hosts</th>
|
||||
@@ -166,14 +167,14 @@ else
|
||||
@if (g.Drivers.Count == 0)
|
||||
{
|
||||
<tr>
|
||||
<td colspan="9"><span class="text-muted">No drivers.</span></td>
|
||||
<td colspan="10"><span class="text-muted">No drivers.</span></td>
|
||||
</tr>
|
||||
}
|
||||
else
|
||||
{
|
||||
@foreach (var d in g.Drivers)
|
||||
{
|
||||
<tr @key="@($"row-{d.DriverInstanceId}")">
|
||||
<tr @key="@($"row-{d.RowKey}")">
|
||||
<td>
|
||||
@(d.Name ?? d.DriverInstanceId)
|
||||
@if (d.RediscoveryNeededUtc is not null)
|
||||
@@ -203,6 +204,16 @@ else
|
||||
</div>
|
||||
}
|
||||
</td>
|
||||
<td>
|
||||
@if (d.NodeId is null)
|
||||
{
|
||||
<span class="text-muted" title="Reported by a node that predates per-node health (#847)">—</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="mono">@d.NodeId</span>
|
||||
}
|
||||
</td>
|
||||
<td>@(d.DriverType ?? "—")</td>
|
||||
<td><span class="chip @DriverChipClass(d.State)">@d.State</span></td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user