Patroni – is a high availability solution for PostgreSQL developed by Zalando to manage hundreds of databases in the cloud as well as in traditional data centers. It implements automatic failover and works together with Etcd Zookeeper or Consul to store and retrieve PostgreSQL cluster information in a consistent way and ensure there is only one leader at a time avoiding split-brains