Sobes.tech
Middle+

Have you worked with Percona? Tell us about orchestration in Patroni.

sobes.tech AI

Answer from AI

Percona is a distribution of MySQL and PostgreSQL with extended features and improved performance. In the context of orchestration, PostgreSQL often uses Patroni — a cluster management system with automatic failover.

Patroni provides high availability for PostgreSQL clusters by using distributed consensus (such as Etcd, Consul, or ZooKeeper) to coordinate master and replica roles. Key features of Patroni:

  • Automatic failover: when the master fails, one of the replicas becomes the new master.
  • Node health monitoring.
  • Management of PostgreSQL configuration and replica synchronization.

Example of operation:

  1. All nodes run Patroni, which monitors the PostgreSQL status.
  2. A leader (master) is elected via Etcd.
  3. If the master is unavailable, Patroni initiates the election of a new master among the replicas.

Thus, Patroni ensures fault tolerance and automatic cluster recovery for PostgreSQL, which is critical for high-load systems and availability requirements.