News for hackers. Stuff that matters.
Re:Mastering PostgreSQL Administration [pdf] by rdg42 on Sunday September 27, 2020 @02:35PM (#24609027)
You should have a look at https://github.com/citusdata/pg_auto_failover

This project makes is super easy to setup a resilient and highly-available postgresql cluster.

And since the postgresql client lib handle connection to multiple replica... no need for some kind of load-balancer (pg_bouncer, pgpool...) in front of it anymore (even if they can still be useful sometimes).

Re:Mastering PostgreSQL Administration [pdf] by samokhvalov on Sunday September 27, 2020 @05:23PM (#24610228)
pgbouncer is not a load balancer, it's a connection pooler.

The former is used to split reads and writes (and so far I haven't seen "magic" tools that automate it well, pgpool has lots of issues; this task is better to solve in app code -- most modern frameworks either already solved it such as RoR, or at least work well with 2 connections),

the latter is used to multiplex connections and improve performance similarly to nginx, haproxy, envoy, but with native Postgres protocol support.