Clustered PostgreSQL

16 points by gmem


danthegoodman1

I feel like “clustered” means “multi-master” or “partitioned” nowadays, no? Like I wouldn’t call standbys or read-replicas a cluster because they aren’t doing equivalent work.

mxey

Patroni is great. We’ve used it for a few years and it works extremely well. We also use it with etcd as the DCS and HAProxy in front.

I wish there was a Patroni for MySQL.

juuso

I happened to do something similar a few months ago, but by using CoreDNS’s SkyDNS plugin as a bash script. I decided to do it this way because I felt slightly uneasy about the idea of running a single HAProxy endpoint when the etcd cluster is already meshed. Then again, this was mostly an exercise to run something atop of etcd (which in itself is maintained via auto-configured WireGuard mesh via wirenix). But now I am wondering again – am I missing something regarding the HAProxy setup or is it really the case that people spend the effort to make a redundant PostgreSQL cluster but then slam a single-point-of-failure HTTP proxy in front of it?