PostgreSQL High Availability Architecture with Patroni
LEVEL: Expert
This course provides a comprehensive introduction to implementing High Availability (HA) in PostgreSQL with Patroni. Participants will learn how to create, manage and operate highly available PostgreSQL clusters using Patroni, etcd, pgBackRest and the VIP Manager for managing read and write access to the current primary server.
Demonstrate technical understanding of the Patroni architecture and its components:Deep understanding of how Patroni, etcd, PostgreSQL operate and interact to ensure high availability.
Become experienced in setting up and operating a Patroni cluster: Hands-on experience setting up and managing a Patroni cluster, including configuring etcd, Patroni, and PostgreSQL.
Manage failover and reliability:Mastering Patroni‘s automatic failover mechanisms to ensure operations, even during primary database failures.
Monitor and maintain highly available PostgreSQL environments:Ability to monitor the health of the Patroni cluster, troubleshoot issues and perform regular maintenance to ensure a stable and resilient environment.
Knowledge of Patroni and its dependencies:Understanding the architecture of Patroni and its dependencies, including etcd for cluster management and PostgreSQL for the database layer.
Best practices for monitoring and maintaining HA environments:Learn best practices for monitoring and maintaining high-availability PostgreSQL environments to minimise downtime and optimise performance.
Course content
Module 1: Introduction to High Availability with PostgreSQL
Importance and requirements of High Availability (HA)
Overview of Patroni as an HA solution
Basics of cluster architecture
Module 2: building blocks of PostgreSQL clusters
Transaction Log (WAL) for Crash Recovery
Backups to create replica PostgreSQL instances
configuring and monitoring PostgreSQL streaming replication
Module 3: Patroni and its components
How Patroni works and its architecture
Integration of etcd as a consensus mechanism
Cluster management, leader election, failover
Module 4: Structure and configuration of a Patroni cluster
Step-by-step instructions for setting up a Patroni cluster