my code lab
lab doc notes postgres.md
1.5 kB · 38 lines
Markdown

PostgreSQL #

High Availability #

  • Do's and Dont's of High Availability 1 2 3

connection pooling tools #

supabase supavisor #

notes from author of postgres high availability cookbook #

https://www.reddit.com/r/PostgreSQL/comments/122p5am/can_someone_share_experience_configuring_highly/jds555v/

recommendations

  • cloud: CloudNativePG - kube operator manages everything
  • general purpose: patroni. Set up etc, haproxy, patroni, postgres and it manages itself
  • simplified, probably okay: pg_auto_failover. Needs a witness node. Good docs, much simpler than patroni.
  • multi-master: edb postgres distributed. Commercial, the only option

avoid

  • pgcluster: dead
  • pgpool-ii: used for read/write load balancing, not HA. Not great for failover
  • bucardo: trigger-based replication, deprecated after postgres logical replication
  • repmgr: legacy