Expand description
Primary Tracker - Tracks current primary node for query routing
Monitors cluster topology and maintains the current primary node information. During switchover, updates are received from the switchover coordinator to ensure queries are routed correctly.
§Topology Providers
The primary tracker uses a TopologyProvider trait to abstract over
different topology sources:
- HeliosDB: Uses the internal
TopologyManagerfrom the replication subsystem (feature-gated behindheliosdb-topology). - PostgreSQL: Polls
pg_stat_replication/pg_is_in_recovery()to detect primary changes (feature-gated behindpostgres-topology). - Manual/Standalone: Programmatic set/clear via API calls.
Modules§
- heliosdb_
provider - Bridge to the HeliosDB-Lite internal
TopologyManager.
Structs§
- Postgres
Node - Postgres
Topology Provider - PostgreSQL-based topology provider.
- Primary
Info - Primary node information
- Primary
Tracker - Primary Tracker
- Topology
Node Info - Information about a node in the cluster topology.
Enums§
- Primary
Change Event - Primary change event
- Topology
Event - Events emitted by a topology provider.
Traits§
- Topology
Provider - Trait abstracting topology discovery.