SlideShare a Scribd company logo
Automate your PostgreSQL
high availability at ScaleGrid
PostgreSQL Solutions
ScaleGrid’s fully managed PostgreSQL
cloud solution and database manage-
ment software for private on-premise
deployments allows you to automate
high availability at cluster creation.
Easily deploy, monitor, provision, and
scale PostgreSQL while keeping full supe-
ruser and SSH access with no vendor
lock-in, and install unlimited PostgreSQL
extensions with no restrictions.
About ScaleGrid
ScaleGrid is a fully managed Database-
as-a-Service (DBaaS) solution used by
thousands of developers, startups, and
enterprise customers including Polaris,
UPS, and Adobe. ScaleGrid supports Mon-
goDB, Redis, MySQL, and PostgreSQL on
public and private clouds, including AWS,
Azure, DigitalOcean, and VMware, and
automates your time-consuming tasks
at any scale so you can focus on product.
Contact Us
sales@scalegrid.io
support@scalegrid.io
Solutions
PostgreSQL Cloud DBaaS
Enterprise On-Premise
Resources
ScaleGrid Blog
Documentation
Supports REST APIs and HAproxy integration.
Handles recovering the health of individual nodes.
Provides notification by invoking the user scripts for
the registered events.
Automatic pg_rewind (dangerous to enable).
Supports NAT-based configuration.
Requires an extra port to be opened.
Detects if a standby is misconfigured with an unknown
or non-existent node in recovery configuration.
Distributed solution which enables the management of
any node from another node in the cluster.
Complete high availability management solution for
the resource, including start, stop, and monitor, and
handle network isolation scenarios.
Quorum behavior can be enforced.
Handles node failures and trigger elections when the
master goes down.
Framework automates the initialization and
configuration of PostgreSQL.
Pros & Cons PAF repmgr Patroni
✘
✘
✘
✘
✘
✘
✘
✘
✘
✘
✘
✘
Pacemaker & Corosync
UDP communication
REST API for Patroni,
2 (min) ports for DCS.
MANUAL INTERVENTION
Network isolate the
standby server from
other servers
Split Brain Scenario
Network isolate the master
server from other servers
Network Isolation
Tests
Which PostgreSQL high availability management tool is best for your deployments? Compare
PostgreSQL Automatic Failover (PAF), Replication Manager (repmgr), and Patroni high availability
tests to discover the framework that offers the best performance.
HIGH AVAILABILITY
FRAMEWORK TEST SCENARIOS
PostgreSQL
✘
Tests were performed while the app was running and inserting data to the PostgreSQL database. The
app was written using PostgreSQL Java JDBC Driver leveraging the connection failover capability.
Agent: patroni
Multi-master
Agent: repmgd
No downtime
Agent: pacemaker
Downtime
Stop the framework
agent process
Downtime
Downtime Downtime
DowntimeReboot the Server
Stop the PostgreSQL
Process and bring it
back immediately
after health check
expiry
Kill the PostgreSQL
Process
Primary Server
Tests
Stop the Framework
Agent Process
Reboot the Server
Stop the PostgreSQL
Process
MANUAL INTERVENTION
No downtime
MANUAL INTERVENTION
No downtime
MANUAL INTERVENTION
No downtime
MANUAL INTERVENTION
No downtime
MANUAL INTERVENTION
No downtime
MANUAL INTERVENTION
UNMANAGED STATE
No downtime
UNMANAGED STATE
No downtime
Kill the PostgreSQL
Process
No downtime
Downtime
No downtime
No downtime
No downtime
No downtime
No downtime
No downtime
No downtime
No downtime
No downtime
No downtime No downtime
Downtime
Patronirepmgr
(Replication Manager)
PAF
(PostgreSQL Automatic Failover)
Patronirepmgr
(Replication Manager)
PAF
(PostgreSQL Automatic Failover)
Patronirepmgr
(Replication Manager)
PAF
(PostgreSQL Automatic Failover)
Standby Server
Tests
repmgr provides several commands to setup and monitor
PostgreSQL replication. It is feature-rich and also eases the job of
the database administrator (DBA). However, it’s not a full fledged
high availability management tool since it will not manage the
resources. Manual intervention is required to ensure the resource
is in proper state.
#3
REPMGR
PostgreSQL Automatic Failover provides several advantages in
handling PostgreSQL high availability. PAF uses IP address failover
instead of rebooting the standby to connect to the new master
during a failover event, proving advantageous in scenarios where
a user does not want to restart the standby nodes. PAF also needs
very little manual intervention and manages the overall health of
all the resources. The only case where manual intervention is a
requirement is in the event of a timeline divergence where the
user can elect to use pg_rewind.
#2
PAF
Patroni is a valuable tool for PostgreSQL database administrators
(DBAs), as it performs end-to-end setup and monitoring of a
PostgreSQL cluster. The flexibility of choosing DCS and standby
creation is an advantage to the end user, as they can choose the
method they are comfortable with.
REST APIs, HaProxy integration, Watchdog support, callbacks and
its feature-rich management makes Patroni the best solution for
PostgreSQL HA management.
#1
PATRONI
What’s the best high availability
framework for PostgreSQL?
Read the analysis of each PostgreSQL
high availability framework test scenario
READ THE FULL REPORT
READ THE FULL REPORT

More Related Content

PDF
High Availability PostgreSQL with Zalando Patroni
PDF
Patroni: Kubernetes-native PostgreSQL companion
PDF
PostgreSQL WAL for DBAs
PDF
Patroni - HA PostgreSQL made easy
PDF
PostgreSQL HA
PDF
アーキテクチャから理解するPostgreSQLのレプリケーション
PDF
PostgreSQLをKubernetes上で活用するためのOperator紹介!(Cloud Native Database Meetup #3 発表資料)
PDF
トランザクション処理可能な分散DB 「YugabyteDB」入門(Open Source Conference 2022 Online/Fukuoka 発...
High Availability PostgreSQL with Zalando Patroni
Patroni: Kubernetes-native PostgreSQL companion
PostgreSQL WAL for DBAs
Patroni - HA PostgreSQL made easy
PostgreSQL HA
アーキテクチャから理解するPostgreSQLのレプリケーション
PostgreSQLをKubernetes上で活用するためのOperator紹介!(Cloud Native Database Meetup #3 発表資料)
トランザクション処理可能な分散DB 「YugabyteDB」入門(Open Source Conference 2022 Online/Fukuoka 発...

What's hot (20)

PDF
あなたの知らないPostgreSQL監視の世界
PDF
Optimizing MariaDB for maximum performance
PDF
Operating PostgreSQL at Scale with Kubernetes
PDF
Deploying Flink on Kubernetes - David Anderson
PDF
NetflixにおけるPresto/Spark活用事例
PDF
Postgresql database administration volume 1
ODP
Monitoring IO performance with iostat and pt-diskstats
PDF
今、改めて考えるPostgreSQLプラットフォーム - マルチクラウドとポータビリティ -(PostgreSQL Conference Japan 20...
PDF
ストリーム処理を支えるキューイングシステムの選び方
PDF
OSSを活用したIaCの実現
PDF
PostgreSQL13でのpg_basebackupの改善について(第13回PostgreSQLアンカンファレンス@オンライン)
PDF
Mastering PostgreSQL Administration
 
PDF
Linux tuning to improve PostgreSQL performance
PDF
PostgreSQL 15 開発最新情報
PDF
PostgreSQLのリカバリ超入門(もしくはWAL、CHECKPOINT、オンラインバックアップの仕組み)
PPTX
初心者向けMongoDBのキホン!
PDF
5ステップで始めるPostgreSQLレプリケーション@hbstudy#13
PPTX
PostgreSQLのロール管理とその注意点(Open Source Conference 2022 Online/Osaka 発表資料)
PDF
binary log と 2PC と Group Commit
PDF
pg_walinspectについて調べてみた!(第37回PostgreSQLアンカンファレンス@オンライン 発表資料)
あなたの知らないPostgreSQL監視の世界
Optimizing MariaDB for maximum performance
Operating PostgreSQL at Scale with Kubernetes
Deploying Flink on Kubernetes - David Anderson
NetflixにおけるPresto/Spark活用事例
Postgresql database administration volume 1
Monitoring IO performance with iostat and pt-diskstats
今、改めて考えるPostgreSQLプラットフォーム - マルチクラウドとポータビリティ -(PostgreSQL Conference Japan 20...
ストリーム処理を支えるキューイングシステムの選び方
OSSを活用したIaCの実現
PostgreSQL13でのpg_basebackupの改善について(第13回PostgreSQLアンカンファレンス@オンライン)
Mastering PostgreSQL Administration
 
Linux tuning to improve PostgreSQL performance
PostgreSQL 15 開発最新情報
PostgreSQLのリカバリ超入門(もしくはWAL、CHECKPOINT、オンラインバックアップの仕組み)
初心者向けMongoDBのキホン!
5ステップで始めるPostgreSQLレプリケーション@hbstudy#13
PostgreSQLのロール管理とその注意点(Open Source Conference 2022 Online/Osaka 発表資料)
binary log と 2PC と Group Commit
pg_walinspectについて調べてみた!(第37回PostgreSQLアンカンファレンス@オンライン 発表資料)
Ad

Similar to What’s the Best PostgreSQL High Availability Framework? PAF vs. repmgr vs. Patroni Infographic (20)

PPT
OGCE Review for Indiana University Research Technologies
PPT
OGCE RT Rroject Review
PDF
Database Tools by Skype
PDF
Greenplum versus redshift and actian vectorwise comparison
PDF
Mastering Aurora PostgreSQL Clusters for Disaster Recovery
PDF
OSMC 2022 | The Power of Metrics, Logs & Traces with Open Source by Emil-Andr...
PDF
[pgday.Seoul 2022] PostgreSQL with Google Cloud
PPT
Building tungsten-clusters-with-postgre sql-hot-standby-and-streaming-replica...
PDF
Google Cloud Next '22 Recap: Serverless & Data edition
PDF
Prometheus: A Next Generation Monitoring System (FOSDEM 2016)
PDF
The Power of Postgres Plus Cloud Database
 
PDF
Prometheus (Microsoft, 2016)
PPTX
Build modern and intelligent applications using Azure Database for PostgreSQL
PDF
Small Overview of Skype Database Tools
PDF
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
PPT
Asko Oja Moskva Architecture Highload
PPTX
Azure Database for PostgreSQL - Top Use Cases.pptx
PPTX
"Spin-up pgbouncer for fun and profit", Vitaliy Kharytonskiy
PDF
Artur Borycki - Beyond Lambda - how to get from logical to physical - code.ta...
PDF
Twelve Factor App
OGCE Review for Indiana University Research Technologies
OGCE RT Rroject Review
Database Tools by Skype
Greenplum versus redshift and actian vectorwise comparison
Mastering Aurora PostgreSQL Clusters for Disaster Recovery
OSMC 2022 | The Power of Metrics, Logs & Traces with Open Source by Emil-Andr...
[pgday.Seoul 2022] PostgreSQL with Google Cloud
Building tungsten-clusters-with-postgre sql-hot-standby-and-streaming-replica...
Google Cloud Next '22 Recap: Serverless & Data edition
Prometheus: A Next Generation Monitoring System (FOSDEM 2016)
The Power of Postgres Plus Cloud Database
 
Prometheus (Microsoft, 2016)
Build modern and intelligent applications using Azure Database for PostgreSQL
Small Overview of Skype Database Tools
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
Asko Oja Moskva Architecture Highload
Azure Database for PostgreSQL - Top Use Cases.pptx
"Spin-up pgbouncer for fun and profit", Vitaliy Kharytonskiy
Artur Borycki - Beyond Lambda - how to get from logical to physical - code.ta...
Twelve Factor App
Ad

More from ScaleGrid.io (7)

PDF
Working with JSON Data in PostgreSQL vs. MongoDB
PDF
Redis vs. MongoDB: Comparing In-Memory Databases with Percona Memory Engine
PPTX
Introduction to Redis Data Structures: Sets
PPTX
Introduction to Redis Data Structures: Sorted Sets
PPTX
Cassandra vs. MongoDB
PPTX
Introduction to Redis Data Structures: Hashes
PPTX
Introduction to Redis Data Structures
Working with JSON Data in PostgreSQL vs. MongoDB
Redis vs. MongoDB: Comparing In-Memory Databases with Percona Memory Engine
Introduction to Redis Data Structures: Sets
Introduction to Redis Data Structures: Sorted Sets
Cassandra vs. MongoDB
Introduction to Redis Data Structures: Hashes
Introduction to Redis Data Structures

Recently uploaded (20)

PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Cloud computing and distributed systems.
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
KodekX | Application Modernization Development
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
Per capita expenditure prediction using model stacking based on satellite ima...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Mobile App Security Testing_ A Comprehensive Guide.pdf
Cloud computing and distributed systems.
Encapsulation_ Review paper, used for researhc scholars
Digital-Transformation-Roadmap-for-Companies.pptx
Approach and Philosophy of On baking technology
Unlocking AI with Model Context Protocol (MCP)
Spectroscopy.pptx food analysis technology
Understanding_Digital_Forensics_Presentation.pptx
sap open course for s4hana steps from ECC to s4
Building Integrated photovoltaic BIPV_UPV.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
MYSQL Presentation for SQL database connectivity
20250228 LYD VKU AI Blended-Learning.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
KodekX | Application Modernization Development
Agricultural_Statistics_at_a_Glance_2022_0.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?

What’s the Best PostgreSQL High Availability Framework? PAF vs. repmgr vs. Patroni Infographic

  • 1. Automate your PostgreSQL high availability at ScaleGrid PostgreSQL Solutions ScaleGrid’s fully managed PostgreSQL cloud solution and database manage- ment software for private on-premise deployments allows you to automate high availability at cluster creation. Easily deploy, monitor, provision, and scale PostgreSQL while keeping full supe- ruser and SSH access with no vendor lock-in, and install unlimited PostgreSQL extensions with no restrictions. About ScaleGrid ScaleGrid is a fully managed Database- as-a-Service (DBaaS) solution used by thousands of developers, startups, and enterprise customers including Polaris, UPS, and Adobe. ScaleGrid supports Mon- goDB, Redis, MySQL, and PostgreSQL on public and private clouds, including AWS, Azure, DigitalOcean, and VMware, and automates your time-consuming tasks at any scale so you can focus on product. Contact Us sales@scalegrid.io support@scalegrid.io Solutions PostgreSQL Cloud DBaaS Enterprise On-Premise Resources ScaleGrid Blog Documentation Supports REST APIs and HAproxy integration. Handles recovering the health of individual nodes. Provides notification by invoking the user scripts for the registered events. Automatic pg_rewind (dangerous to enable). Supports NAT-based configuration. Requires an extra port to be opened. Detects if a standby is misconfigured with an unknown or non-existent node in recovery configuration. Distributed solution which enables the management of any node from another node in the cluster. Complete high availability management solution for the resource, including start, stop, and monitor, and handle network isolation scenarios. Quorum behavior can be enforced. Handles node failures and trigger elections when the master goes down. Framework automates the initialization and configuration of PostgreSQL. Pros & Cons PAF repmgr Patroni ✘ ✘ ✘ ✘ ✘ ✘ ✘ ✘ ✘ ✘ ✘ ✘ Pacemaker & Corosync UDP communication REST API for Patroni, 2 (min) ports for DCS. MANUAL INTERVENTION Network isolate the standby server from other servers Split Brain Scenario Network isolate the master server from other servers Network Isolation Tests Which PostgreSQL high availability management tool is best for your deployments? Compare PostgreSQL Automatic Failover (PAF), Replication Manager (repmgr), and Patroni high availability tests to discover the framework that offers the best performance. HIGH AVAILABILITY FRAMEWORK TEST SCENARIOS PostgreSQL ✘ Tests were performed while the app was running and inserting data to the PostgreSQL database. The app was written using PostgreSQL Java JDBC Driver leveraging the connection failover capability. Agent: patroni Multi-master Agent: repmgd No downtime Agent: pacemaker Downtime Stop the framework agent process Downtime Downtime Downtime DowntimeReboot the Server Stop the PostgreSQL Process and bring it back immediately after health check expiry Kill the PostgreSQL Process Primary Server Tests Stop the Framework Agent Process Reboot the Server Stop the PostgreSQL Process MANUAL INTERVENTION No downtime MANUAL INTERVENTION No downtime MANUAL INTERVENTION No downtime MANUAL INTERVENTION No downtime MANUAL INTERVENTION No downtime MANUAL INTERVENTION UNMANAGED STATE No downtime UNMANAGED STATE No downtime Kill the PostgreSQL Process No downtime Downtime No downtime No downtime No downtime No downtime No downtime No downtime No downtime No downtime No downtime No downtime No downtime Downtime Patronirepmgr (Replication Manager) PAF (PostgreSQL Automatic Failover) Patronirepmgr (Replication Manager) PAF (PostgreSQL Automatic Failover) Patronirepmgr (Replication Manager) PAF (PostgreSQL Automatic Failover) Standby Server Tests repmgr provides several commands to setup and monitor PostgreSQL replication. It is feature-rich and also eases the job of the database administrator (DBA). However, it’s not a full fledged high availability management tool since it will not manage the resources. Manual intervention is required to ensure the resource is in proper state. #3 REPMGR PostgreSQL Automatic Failover provides several advantages in handling PostgreSQL high availability. PAF uses IP address failover instead of rebooting the standby to connect to the new master during a failover event, proving advantageous in scenarios where a user does not want to restart the standby nodes. PAF also needs very little manual intervention and manages the overall health of all the resources. The only case where manual intervention is a requirement is in the event of a timeline divergence where the user can elect to use pg_rewind. #2 PAF Patroni is a valuable tool for PostgreSQL database administrators (DBAs), as it performs end-to-end setup and monitoring of a PostgreSQL cluster. The flexibility of choosing DCS and standby creation is an advantage to the end user, as they can choose the method they are comfortable with. REST APIs, HaProxy integration, Watchdog support, callbacks and its feature-rich management makes Patroni the best solution for PostgreSQL HA management. #1 PATRONI What’s the best high availability framework for PostgreSQL? Read the analysis of each PostgreSQL high availability framework test scenario READ THE FULL REPORT READ THE FULL REPORT