PostgreSQL High Availability with Patroni, etcd, HAProxy and keepalived

serene snowy mountain landscape with pines

PostgreSQL has a mature, production-grade high availability stack that costs nothing in licensing and is straightforward to operate once it is set up.

This lab builds a six-node HA cluster using four open-source components: Patroni for cluster management and automatic failover, etcd as the distributed consensus store, HAProxy for load balancing and connection routing, and keepalived for a floating virtual IP that survives HAProxy node failures.

The result is a cluster where a primary failure is detected and a new primary is elected in under 30 seconds, with no manual intervention required.

Continue reading “PostgreSQL High Availability with Patroni, etcd, HAProxy and keepalived”

5 Oracle to PostgreSQL Migration Projects That Failed (And Why)

blue and multicolored abstract paitning

TL;DR: Most Oracle to PostgreSQL migrations that fail don’t fail because PostgreSQL wasn’t ready.
They fail because the project wasn’t ready.
The five patterns below repeat across organisations and sectors because teams make the same assumptions: that the tools handle more than they do, that PL/SQL volume is smaller than it is, and that a rollback plan can be improvised at 2am.

Continue reading “5 Oracle to PostgreSQL Migration Projects That Failed (And Why)”