Building a three-node Patroni cluster: sizing the etcd quorum, HAProxy or VIP routing to the leader, bootstrap and replica creation, failover and switchover with patronictl, and the failure tests to run before go-live.
Using repmgr to clone standbys, monitor replication and automate failover with repmgrd: witness servers, fencing scripts, switchover procedures and supported PostgreSQL versions.
Running pg_auto_failover's monitor-based design: the three-node layout, synchronous standby by default, adding more standbys, maintenance operations and protecting the monitor itself.
Creating hot standby replicas with streaming replication: replication roles and pg_hba.conf entries, pg_basebackup, replication slots, standby.signal, and checking replication health.
Choosing between asynchronous, priority-based and quorum synchronous replication: synchronous_standby_names syntax, synchronous_commit levels, write latency, and what happens when a synchronous standby fails.
Sending read traffic to standbys: libpq target_session_attrs and load_balance_hosts, HAProxy health checks through Patroni, replica lag and read-your-writes concerns, and query conflicts on hot standby.
Stopping abandoned or lagging replication slots from filling the disk: max_slot_wal_keep_size, monitoring slot lag, logical slots used by CDC tools, and safely dropping slots.
Relaying WAL through an intermediate standby to reduce load and cross-site bandwidth: topology design, the asynchronous-only limit, failover behavior downstream and monitoring each hop.
Keeping a standby hours behind with recovery_min_apply_delay so a dropped table or bad update can be recovered: choosing the delay, WAL retention on the primary, and how it compares with point-in-time recovery.
Running a warm standby or Patroni standby cluster in a second region: asynchronous replication over WAN links, WAL archive fallback, promotion runbooks, RPO from lag, and DNS or application cutover.
How clusters end up with two primaries and how to stop it: DCS leader locks, Patroni watchdog devices, fencing in repmgr, network partitions and the tests that prove protection works.
Keeping logical subscribers and CDC pipelines running after a primary failover: failover-enabled slots, sync_replication_slots on standbys, synchronized_standby_slots and how Patroni or operators handle them.
Proving a PostgreSQL cluster fails over as designed: planned switchovers, killing processes, network and disk faults, measuring client reconnection time, and writing runbooks operators can follow under pressure.