High availability, pooling, proxies and upgrades
Database tools reference hubs
The tools that sit around PostgreSQL, MySQL, and MariaDB: failover managers, connection poolers, query-routing proxies, and the major version upgrade path. Each page below covers how the tool works, its configuration, and how our engineers operate it.
PostgreSQL high availability and pooling
5 pagesFailover managers and connection poolers for PostgreSQL clusters.
Patroni
Production Patroni reference hub for PostgreSQL cluster orchestration: etcd v3 DCS quorum, patroni.yml leader lease timers, Linux softdog fencing.
PgBouncer
PgBouncer 1.21 to 1.23 reference: transaction vs session pooling, max_prepared_statements, pool sizing, SHOW POOLS cl_waiting triage, and so_reuseport scaling.
Pgpool-II
Production Pgpool-II 4.4 & 4.5 architecture reference and Pgpool vs PgBouncer comparison: pgpool.conf child-process sizing, query-level read/write splitting.
repmgr
repmgr 5.4 and 5.5 PostgreSQL replication reference: repmgr.conf timers, repmgrd witness quorum, Barman standby cloning, and repmgr standby switchover runbooks.
Stolon
Stolon PostgreSQL HA explained: keeper, sentinel and proxy roles, stolonctl fixes, v0.17.0 (2021) as the last release, and moving to Patroni or CloudNativePG.
MySQL and MariaDB proxies and routing
3 pagesQuery-routing proxies and load balancers in front of MySQL and MariaDB.
ProxySQL
ProxySQL explained: how this MySQL proxy splits reads and writes by hostgroup, what breaks connection multiplexing, and the admin SQL we run on 2.6 and 2.7.
HAProxy
Production HAProxy 2.8 & 3.0 LTS database routing reference: Layer-4 TCP port splitting (:5000 write / :5001 read), Patroni :8008 HTTP health probes.
MariaDB MaxScale
MariaDB MaxScale readwritesplit with causal_reads, transaction_replay, and mariadbmon or galeramon failover, plus 25.01 licensing and ProxySQL advice.
Major version upgrades
1 pageMoving PostgreSQL, MySQL, and MariaDB to a supported major version.
Consulting
3 pagesConsulting engagements for ProxySQL, PgBouncer, and Patroni.
ProxySQL consulting
ProxySQL consulting: query rules and routing, connection pooling, query rewrite and firewall, MySQL/MariaDB HA integration, observability design.
PgBouncer consulting
PgBouncer consulting: pool mode selection (session/transaction/statement), pool sizing, PgBouncer vs RDS Proxy, prepared statements, HA topology.
Patroni consulting
Patroni consulting: DCS selection (etcd/Consul/ZooKeeper/K8s), failover tuning, watchdog config, callback hooks, multi-region HA topology.
Running one of these tools in production?
Tell us which tools sit in front of your databases and what is going wrong. A senior engineer will scope the work with you.