patroni/patroni
A template for PostgreSQL High Availability with Etcd, Consul, ZooKeeper, or Kubernetes observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 99
- Release rhythm 97
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0.0
- age_days: 4074
- days_rel: 21
- days_push: 7
- n_releases_24m: 25
Adoption not part of the score
8683 stars · 1019 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Patroni is a Python-based high-availability orchestrator for PostgreSQL clusters that automates leader election, failover, and replication management. It integrates with distributed configuration stores such as etcd, ZooKeeper, Consul, Kubernetes, and Raft to coordinate cluster state.
Use cases
- set up a highly available postgresql cluster with automatic failover
- run postgres on kubernetes with leader election and failover
- manage streaming replication and switchover for postgres
- replace manual postgres failover scripts with automated cluster management
- deploy postgres HA with etcd or consul as the consensus store
- orchestrate postgres clusters behind haproxy with health-based routing
When to choose
- you need automated failover and leader election for postgresql
- you run postgres on kubernetes or use etcd/consul/zookeeper for coordination
- you want a battle-tested, actively maintained HA solution with a large community
When to avoid
- you run a single postgres instance and don't need high availability
- you use a database other than postgresql
- you want a fully managed database service rather than self-managed orchestration
Facets
application · maturity active
database deployment monitoring cli databases self-hosted microservices python self-hosted postgresql high-availability failover orchestration replication etcd consul zookeeper haproxy devops linux macos docker kubernetes
2 sources
- readme: https://github.com/patroni/patroni · fetched 2026-08-28 · bf86595f3705
- registry_pypi: https://pypi.org/pypi/patroni/json · fetched 2026-08-29 · cdd62e7c0734
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| patroni/patroni | main | 98 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem