Class NodeCordonState
Process-local cordon flag for this node. A cordoned node keeps its current work running but
takes on no new work — its ClusteredRoutePolicy loops stop acquiring route locks and
release the ones they hold (so the routes fail over to peers), enabling a graceful drain before
planned maintenance.
The durable source of truth is TsakNodeProps.Cordoned in the registry (visible to every
node and the dashboard); this in-memory mirror lets the per-route watch loops read the flag
cheaply — no database hit per route per tick. The node's heartbeat pass refreshes it from its own
registry record, so a cordon set via the API on any node is picked up within one heartbeat.
public sealed class NodeCordonState
Inheritance
Properties
IsCordoned
public bool IsCordoned { get; set; }