Patroni is a cluster management software for PostgreSQL that provides automatic failover for high availability. It uses PostgreSQL streaming replication and a third-party distributed consensus store. Use this tag for questions about Patroni code and its usage or for questions about software architecture involving PostgreSQL high availability.
Patroni is a postgresql high-availability solution that can use etcd, consul,
kubernetes or zookeeper as its distributed consensus store.
This holds the shared configuration and is used to determine which nodes are available and who should be the streaming replication primary.
Patroni manages the PostgreSQL servers on each node, initializing and promoting them as required. Managing the cluster and the PostgreSQL is done with the patronictl
command.
Resources: