# hapostgres/pg_auto_failover

Postgres extension and service for automated failover and high-availability

Repository: https://github.com/hapostgres/pg_auto_failover
Canonical: https://ross.abutalabs.com/products/pg_auto_failover
Language: C
License: NOASSERTION
License Family: other
Topics: postgresql, postgres, postgresql-extension, high-availability, auto-failover
Last push: 2026-08-17T15:38:40+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 8, longevity 100
- inputs: {"age_days": 2679, "days_push": 16, "days_rel": 517, "gap_med": null, "n_releases_24m": 1}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1381, forks 142 (observed 2026-08-28T04:04:33.964899+00:00)

## What it is
pg_auto_failover is a PostgreSQL extension and service that monitors and manages automated failover for Postgres clusters, providing high availability with a state-machine-based monitor and keeper service. It supports architectures from a simple primary-secondary pair to multiple standbys and Citus clusters.

## Use cases
- automate failover for a postgres primary-secondary setup
- set up high availability for postgresql with two nodes
- manage multiple postgres standbys with synchronous replication
- run a postgres HA monitor service
- implement high availability for a citus cluster
- perform safe switchover and failover without data loss

## When to avoid
- you use a managed Postgres service that already provides HA
- you need multi-master or active-active replication
- you prefer orchestrating failover via Kubernetes operators or Patroni

## Facets
- artifact type: service
- maturity: active
- function: database, monitoring, alerting, deployment
- domain: databases, self-hosted, microservices
- platform: self-hosted
- tags: postgresql, high-availability, failover, replication, postgres-extension, citus, devops, linux, macos, docker

## Member repositories
- hapostgres/pg_auto_failover (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:33.964899+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:40:10.358694+00:00, confidence not recorded.
  - readme: https://github.com/hapostgres/pg_auto_failover (fetched 2026-08-28T04:04:33.964899+00:00, sha 756d42815769)
- Data as of 2026-08-30T08:39:29.467469+00:00.
