Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

High Availability in PostgreSQL

A collection of practical, hands-on guides covering PostgreSQL High Availability (HA) using Patroni, etcd, HAProxy, streaming replication, and the EDB HA stack (EFM, PEM, Barman).

These notes are written from real lab/production experience and are meant as a quick reference for setting up, operating, and troubleshooting HA PostgreSQL clusters.

📖 Table of Contents

🏗️ Architecture & Concepts

⚙️ Installation & Configuration

🔁 Replication

🔧 Cluster Operations

🌐 Connection Routing

🧩 EDB HA Stack

🎯 Who This Is For

Database administrators, SREs, and engineers who are:

  • Setting up a new HA PostgreSQL environment
  • Migrating from a manual failover process to Patroni
  • Looking for quick, tested reference commands during cluster operations

🛠️ Tech Covered

PostgreSQL · Patroni · etcd · HAProxy · EDB Postgres Advanced Server · EFM · PEM · Barman

📌 Notes

  • Examples are based on RHEL/Ubuntu environments and PostgreSQL versions 14–16; adjust paths and package names for your specific OS and PostgreSQL version.
  • These are living documents — commands, paths, and package repositories may change over time, so always cross-check against current official documentation before applying changes to production systems.

🤝 Contributing

Suggestions, corrections, and pull requests are welcome. If you spot an outdated command or a broken step, please let me know

📄 License

Feel free to use, share, and adapt this content for learning purposes.

About

A collection of hands-on guides for setting up and operating High Availability PostgreSQL clusters using Patroni, etcd, HAProxy, and the EDB HA stack (EFM, PEM, Barman).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors