{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/5"}],"enrichment":{"capability":"Patroni orchestrates PostgreSQL high-availability clusters using distributed configuration stores like etcd, Consul, ZooKeeper, or Kubernetes to manage failover, replication, and cluster state.","skillfed_tags":["postgres-ha","cluster-orchestration","distributed-consensus"],"use_cases":["Automate failover and replica promotion in multi-node PostgreSQL deployments without manual intervention.","Manage PostgreSQL cluster state and configuration consistently across nodes using etcd or Consul as a distributed store.","Integrate PostgreSQL high availability with Kubernetes by running Patroni natively on K8s clusters.","Set up streaming replication with automatic synchronization and durability guarantees across geographically distributed replicas.","Monitor and control PostgreSQL cluster health and member status via REST API from external orchestration tools."],"what_it_does":"Patroni is a Python orchestration framework that automates PostgreSQL high-availability cluster management by coordinating replica promotion, failover, and configuration across multiple nodes using a distributed consensus store. It supports PostgreSQL 9.3 to 18 and integrates with etcd, Consul, ZooKeeper, Kubernetes, and Raft as its backing configuration and state store.\n\nYou deploy Patroni on each PostgreSQL node in your cluster; it handles leader election, streaming replication setup, and automatic failover when the primary becomes unavailable. It includes HAProxy integration for a single application endpoint and supports both asynchronous and synchronous replication modes. Configuration is YAML-based with environment variable overrides, and the package includes a REST API for monitoring and control.","worth_installing":"Yes. Patroni is production-stable (Development Status 5), actively maintained with recent releases, has no known vulnerabilities, and low install friction. It is the standard choice for PostgreSQL HA orchestration in environments using etcd, Consul, ZooKeeper, or Kubernetes. Install it if you need automated failover and cluster coordination; skip it if you manage PostgreSQL replication manually or use a managed database service."},"id":"patroni","links":{"html":"https://skillfed.io/packages/patroni","md":"https://skillfed.io/packages/patroni.md","pypi":"https://pypi.org/project/patroni/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-12","license_spdx":null,"license_treatment":"permissive","name":"patroni","python_support":"unspecified","summary":"PostgreSQL High-Available orchestrator and CLI"},"popularity":{"monthly_downloads":93981,"position":13350,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.1.5"}
