Patroni is a high availability manager and cluster orchestrator for PostgreSQL. It functions as an automatic failover controller and replication manager that ensures continuous database availability by automating leader election and promoting standby nodes during failures.
The system maintains a consistent cluster state by acting as a distributed consensus coordinator. It synchronizes configuration and manages leader elections through integration with distributed configuration stores such as etcd, ZooKeeper, or Consul.
Its broader capabilities include managing both synchronous and asynchronous replication modes to balance data durability with system latency. It also provides support for distributed database extensions and orchestration within container environments, utilizing native objects and labels to manage cluster state and route traffic.