# EnterpriseDB/repmgr

A lightweight replication manager for PostgreSQL (Postgres)

Repository: https://github.com/EnterpriseDB/repmgr
Canonical: https://ross.abutalabs.com/products/repmgr
Homepage: https://repmgr.org/
Language: C
License: NOASSERTION
License Family: other
Topics: repmgr, replication, postgresql, postgres, ha, failover, autofailover, cluster, replication-manager
Last push: 2026-03-28T16:04:11+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 74, release rhythm 40, longevity 100
- inputs: {"age_days": 5503, "days_push": 158, "days_rel": 622, "gap_med": 27, "n_releases_24m": 2}
- 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 1707, forks 262 (observed 2026-08-28T04:05:25.432529+00:00)

## What it is
repmgr is an open-source suite of tools (a CLI plus the repmgrd daemon) for managing replication and failover in PostgreSQL server clusters. It automates standby setup, replication monitoring, and manual or automatic failover/switchover operations as a PostgreSQL extension.

## Use cases
- set up PostgreSQL streaming replication standby servers
- automate automatic failover when the primary goes down
- perform planned switchover between primary and standby
- monitor replication health across a PostgreSQL cluster
- clone a new standby from an existing node
- promote a standby to primary and reattach other standbys
- send event notifications on replication cluster changes

## When to choose
- you run a PostgreSQL cluster and need high availability with automatic failover
- you want a mature, EDB-maintained tool tightly integrated with PostgreSQL's built-in replication
- you need manual switchover for maintenance windows
- you want event notifications and monitoring of replication lag

## When to avoid
- you use a database other than PostgreSQL
- you need multi-master or logical replication management
- you prefer a fully managed cloud HA solution like RDS or Cloud SQL
- you need quorum-based consensus failover with external witness-only setups unsupported by your topology

## Facets
- artifact type: cli-tool
- maturity: stable
- function: database, monitoring, deployment, developer-tools
- domain: databases, self-hosted, microservices
- platform: cli, self-hosted
- tags: postgresql, replication, high-availability, failover, autofailover, standby-management, switchover, postgres-extension, gplv3, devops, linux, docker

## Member repositories
- EnterpriseDB/repmgr (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:25.432529+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-30T03:37:25.477412+00:00, confidence not recorded.
  - readme: https://github.com/EnterpriseDB/repmgr (fetched 2026-08-28T04:05:25.432529+00:00, sha bf0c91fabe14)
  - homepage: https://repmgr.org/ (fetched 2026-08-29T11:11:30.896171+00:00, sha f6c1133e43d5)
  - site_page: https://www.repmgr.org/docs/current/index.html (fetched 2026-08-29T11:11:30.906054+00:00, sha a7323db757ec)
  - site_page: https://www.repmgr.org/docs/current/repmgr.html (fetched 2026-08-29T11:11:30.908863+00:00, sha 021585600e64)
  - site_page: https://www.repmgr.org/docs/5.4/index.html (fetched 2026-08-29T11:11:30.916258+00:00, sha 7e085fbd5710)
  - site_page: https://www.repmgr.org/docs/5.3/index.html (fetched 2026-08-29T11:11:30.918007+00:00, sha feda3034d4aa)
  - site_page: https://www.repmgr.org/docs/5.2/index.html (fetched 2026-08-29T11:11:30.919622+00:00, sha 7cdfe8b6f19e)
  - site_page: https://www.repmgr.org/docs/5.1/index.html (fetched 2026-08-29T11:11:30.921258+00:00, sha 355fa326e880)
  - site_page: https://www.repmgr.org/docs/5.0/index.html (fetched 2026-08-29T11:11:30.922775+00:00, sha 5b570c9cde10)
  - site_page: https://www.repmgr.org/docs/4.4/index.html (fetched 2026-08-29T11:11:30.924310+00:00, sha 4b2430301e33)
- Data as of 2026-08-30T08:39:29.467469+00:00.
