Skip to main content

Module cluster

Module cluster 

Source
Expand description

Cluster coordination and node management.

Nodes discover each other via PostgreSQL (forge_nodes table, heartbeat-based). Singleton processes (scheduler, daemons) use advisory locks for leader election: if the leader crashes, PostgreSQL releases the lock and a standby node acquires it.

Structs§

ClusterInfo
Information about the cluster.
LeaderInfo
Leadership information for a role.
NodeId
Unique node identifier.
NodeInfo
Information about a node in the cluster.
ParseLeaderRoleError
ParseNodeRoleError
ParseNodeStatusError

Enums§

LeaderRole
Leader role for coordinated operations.
NodeRole
Node role in the cluster.
NodeStatus
Node status in the cluster.