High Availability Routing for Postgres (HARP) v2.0

High Availability Routing for Postgres (HARP) is a cluster management tool for Bi-directional Replication (BDR) clusters. The core design of the tool is to route all application traffic within a single data center or region to only one node at a time. This node, designated the Lead Master, acts as the principle write target to reduce the potential for data conflicts.

HARP leverages a distributed consensus model to determine availability of the BDR nodes in the cluster. On failure or unavailability of the Lead Master, HARP elects a new Lead Master and redirects application traffic accordingly.

Together with the core capabilities of BDR, this mechanism of routing application traffic to the Lead Master node enables fast failover and switchover without risk of data loss.

HARP requires BDR versions 3.6 and above.