Class TsakNodeProps
Props of the redb scheme for cluster node registration and heartbeat tracking.
Each running tsak instance creates one record in this scheme.
[RedbScheme("_tsak_nodes")]
public class TsakNodeProps
Inheritance
Properties
ApiEndpoint
Public API endpoint for this node (e.g. "http://host:9090").
public string ApiEndpoint { get; set; }
Capabilities
Comma-separated capability tags (e.g. "route,cron,kafka").
public string Capabilities { get; set; }
ClusterName
Cluster this node belongs to. Null on a record written before cluster isolation (4.0.x and
public string? ClusterName { get; set; }
Contexts
Context snapshots updated with each heartbeat.
public Dictionary<string, TsakContextInfo> Contexts { get; set; }
Cordoned
Cordoned = takes on no new work (keeps current work running until drained). Orthogonal to
public bool Cordoned { get; set; }
InstanceToken
The worker process that holds the record: a token drawn when the process registers. A process that finds the
public string? InstanceToken { get; set; }
LastHeartbeat
Last heartbeat timestamp (UTC). Updated periodically.
public DateTimeOffset LastHeartbeat { get; set; }
ProtocolVersion
Coordination protocol the node speaks. The nodes of one cluster group must speak one protocol;
public int ProtocolVersion { get; set; }