SlideShare a Scribd company logo
Making your
PostgreSQL
Highly Available
Presented by:
Alok Kumar Mishra
Senior Sales Engineer, A/NZ
24th Nov 2020
© Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
Agenda
1. Who is EDB
2. HighAvailability Basics & Terminology
3. How does HighAvailabilitywork?
4. HighAvailabilityfor Postgres using built-in
• Streaming Replication
• Logical Replication
5. Postgres Multi-Node Architecture for High
Availability
6. EDB tools for HighAvailabilitymanagement and
monitoring
2
EDB superchargesPostgreSQL
Largest dedicated
PostgreSQLcompany
Major PostgreSQL
communityleader
Over 5,000 customers-
1 in 4 of Fortune 500
Founded in
2004
Over 10 years of
consecutivequarterly
subscriptiongrowth
500+
employees
Recognised leader in Relational
Database Management Systems
(RDBMS) by both Gartner and Forrester
2019
Challengers Leaders
Visionaries
Abilitytoexecute
NichePlayers
Completenessof
vision
3 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
Thelargest dedicated PostgreSQLcompany
• More customers: Than any dedicatedPostgreSQL company
• More experts: Leading PostgreSQL contributors
• More innovation: Positioned to lead in enterprisePostgreSQL
and hybridcloud
EDB acquires 2ndQuadrant in Sept 2020
+
4 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
High Availability
Basics &
Terminology
High Availability
6 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
High availability (HA) is a characteristicof a system, which aims to ensure an agreed level of
operational performance,usually uptime, for a higher than normal period.
Key principles:
• Eliminatesingle point of failure
• Reliablecrossover
• Detection offailures
Ref:https://en.wikipedia.org/wiki/High_availability
SLAs..
7 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
• Availability mentioned in SLAs are only goals of service provider
• Usually when it’s not met than company pays off the fees
Magic number: 9’s
8 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
Calculated/expressed as a percentage of uptime in a given year based on the service level
agreements.Some companies exclude the planned outage/scheduled downtimebased on their
agreementswith customers on the availabilityof their services.
Availability% Downtime peryear Downtime permonth
Downtime per
week Downtime perday
99.99% ("fournines") 52.60minutes 4.38minutes 1.01minutes 8.64seconds
99.995% ("four and a half
nines") 26.30minutes 2.19minutes 30.24seconds 4.32seconds
99.999% ("fivenines") 5.26minutes 26.30seconds 6.05seconds
864.00
milliseconds
RPO/RTO/MTTR
/GRO
RPO/RTO: Key Components of High Availability
RecoveryPoint Objective(RPO)/RecoveryTimeObjective(RTO)
Recovery Point Objective Recovery TimeObjective
http://www.allnetkc.com/definitions.html
10 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
GRO: Key Component of High Availability
11 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
GeographicRedundancy Objective(GRO)
"...sometimesconsideredthe disaster recovery requirement.This objectiveencompasses what data
needs to be replicated offsite, how often and how far."
https://storageswiss.com/2014/01/22/backup-basics-what-do-slo-rpo-rto-vro-and-gro-
mean/#:~:text=Geographic%20Redundancy%20Objective&text=Simply%20put%2C%20users%20are%20more,multiple%2
0geographic%20requirements%20per%20application.
High Availability
For Postgres:
Key Principles
Eliminate Single
Point ofFailure
Eliminate Single Point of failure
14 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
• WAL shipping based replication
• Replicationbased on the archivedWAL
• Streaming replication(SR)
• Streaming WAL files to one or more standbys
• Logical replication
• Streaming logical data modifications from the WAL.
Eliminate Single Point of failure
15 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
Hot Standby
• Identical to primarysystem
• Data is still mirrored in real time
• Allows READ
• On failure,can replaceprimary
• Approaches
• WAL shippingbased
• Streaming WAL (widelyused after9.0)
Eliminate Single Point of failure
Hot Standby: WALshipping
16 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
Eliminate Single Point of failure
Hot Standby: StreamingReplication
17 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
Eliminate Single Point of failure
18 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
Streaming Replication
• Asynchronous StreamingReplication
• Synchronous StreamingReplication
• synchronous_standby_names
Read more about the parameter in the doc:
https://www.postgresql.org/docs/10/runtime-config-replication.html
Eliminate Single Point of failure
19 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
• Primary server with one or more "hot" standby servers
• Suitable for production environments with high availability and read scaling
• Write performant, but un-replicated transactions may be lost during failover
Property Description
Recovery Time Objective < 60 seconds
Recovery Point Objective Typically a few seconds or less during failover (un-replicated transactions maybe
lost). Dependent on backup strategy for fullrecovery.
Geographic Redundancy Objective Dependent on node placement. Typically multi-availability zone.
Target Availability 99.99% (99.999% may be possible with failover tuning)
Multi node with asynchronous replication
20 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
Eliminate Single Point of failure
21 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
• Primary server with one or more"hot" standby servers
• Suitable for production environments with high availability and read scaling
• Less write performant,but no loss of committed transactions during failover
Property Description
Recovery Time Objective < 60 seconds
Recovery Point Objective Typically a few seconds or less during failover, with no loss ofcommitted
transactions. Dependent on backup strategy for full recovery.
Geographic Redundancy Objective Dependent on node placement. Typically multi-availability zone.
Target Availability 99.99% (99.999% may be possible with failover tuning)
Multi node with synchronous replication
22 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
Reliable
CrossOver &
Detection
of Failure
Reliable Crossover &Detection
of Failure
24 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
• In a redundant system, the crossover point itself becomes a single point of failure.
• Fault-tolerant systems must provide a reliable crossover or automaticswitchover mechanism
to avoidfailure.
• Detection offailures:
• If the above two principles are proactively monitored,then a user may never see a
system failure.
Reliable Crossover &Detection
EDBPostgres Failover Manager:
• Continuously monitors your PostgreSQL service to automatically detectfailures.
• After an outage is confirmed,Failover Manager automatically promotes the most up-to-date
standby databaseas the new master.
25 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
Reliable Crossover &Detection
EDB Postgres Failover Manager:
26 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
RPO/RTO/MTTR
/GPO
RPO/RTO/MTTR/GPO
BackupAnd RecoveryTool
28 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
RPO/RTO/MTTR/GPO
BackupAnd RecoveryTool
29 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
High
Availability
Monitoring
High AvailabilityMonitoring
Postgres EnterpriseManager
31 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
High AvailabilityMonitoring
Postgres EnterpriseManager
32 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
Conclusion
33 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
• High Availabilitycomponents
• Hot Standby (StreamingReplication)
• EDBPostgres Failover Manager
• Postgres EnterpriseManager
• BackupAnd RecoveryTool
• Design consideration
• Near zero downtime softwaremaintenance
• RPO/RTO/GRO
Resources
34 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
• Blog series
• What Does HighAvailability Really Mean
• Patching Minor Version in Postgres HighAvailability(HA) Database Cluster
• Plans &Strategiesfor DBAs
• Key Parameters and Configuration for Streaming Replicationin Postgres 12
• Quick and Reliable Failure Detection with EDB Postgres Failover Manager
© Copyright EnterpriseDBCorporation, 2020. All rightsreserved.37
© Copyright EnterpriseDBCorporation, 2020. All rightsreserved.37

More Related Content

PPTX
PostgreSQL as a Strategic Tool
 
PPTX
New Integration Options with Postgres Enterprise Manager 8.0
 
PDF
Best Practices in Security with PostgreSQL
 
PPTX
An overview of reference architectures for Postgres
 
PPTX
Public Sector Virtual Town Hall: High Availability for PostgreSQL
 
PPTX
Automating a PostgreSQL High Availability Architecture with Ansible
 
PPTX
Beginners Guide to High Availability for Postgres
 
PPTX
New enhancements for security and usability in EDB 13
 
PostgreSQL as a Strategic Tool
 
New Integration Options with Postgres Enterprise Manager 8.0
 
Best Practices in Security with PostgreSQL
 
An overview of reference architectures for Postgres
 
Public Sector Virtual Town Hall: High Availability for PostgreSQL
 
Automating a PostgreSQL High Availability Architecture with Ansible
 
Beginners Guide to High Availability for Postgres
 
New enhancements for security and usability in EDB 13
 

What's hot (20)

PPTX
Overcoming write availability challenges of PostgreSQL
 
PDF
Best Practices & Lessons Learned from Deployment of PostgreSQL
 
PPTX
Expert Guide to Migrating Legacy Databases to Postgres
 
PPTX
An overview of reference architectures for Postgres
 
PPTX
PostgreSQL as a Strategic Tool
 
PDF
Beginner's Guide to High Availability for Postgres - French
 
PPTX
New and Improved Features in PostgreSQL 13
 
PPTX
Szabaduljon ki az Oracle szorításából
 
PPTX
Beginner's Guide to High Availability for Postgres
 
PDF
Beginner's Guide to High Availability for Postgres
 
PPTX
How to use postgresql.conf to configure and tune the PostgreSQL server
 
PDF
PostgreSQL 13 is Coming - Find Out What's New!
 
PPTX
Database Dumps and Backups
 
PDF
Introducing Data Redaction - an enabler to data security in EDB Postgres Adva...
 
PPTX
OLTP+OLAP=HTAP
 
PDF
Remote DBA Service: Powering your DBA needs
 
PPTX
Not all open source is the same
 
PDF
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
 
PPTX
How to Design for Database High Availability
 
PPTX
Migration DB2 to EDB - Project Experience
 
Overcoming write availability challenges of PostgreSQL
 
Best Practices & Lessons Learned from Deployment of PostgreSQL
 
Expert Guide to Migrating Legacy Databases to Postgres
 
An overview of reference architectures for Postgres
 
PostgreSQL as a Strategic Tool
 
Beginner's Guide to High Availability for Postgres - French
 
New and Improved Features in PostgreSQL 13
 
Szabaduljon ki az Oracle szorításából
 
Beginner's Guide to High Availability for Postgres
 
Beginner's Guide to High Availability for Postgres
 
How to use postgresql.conf to configure and tune the PostgreSQL server
 
PostgreSQL 13 is Coming - Find Out What's New!
 
Database Dumps and Backups
 
Introducing Data Redaction - an enabler to data security in EDB Postgres Adva...
 
OLTP+OLAP=HTAP
 
Remote DBA Service: Powering your DBA needs
 
Not all open source is the same
 
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
 
How to Design for Database High Availability
 
Migration DB2 to EDB - Project Experience
 
Ad

Similar to Making your PostgreSQL Database Highly Available (20)

PPTX
Webinar Slides: High Volume MySQL HA: SaaS Continuous Operations with Terabyt...
PDF
Zerto for dr migration to cloud overview
PPTX
CS_10_DR_CFD
PPTX
Open Sourcing GemFire - Apache Geode
PPTX
An Introduction to Apache Geode (incubating)
PDF
Tokyo AK Meetup Speedtest - Share.pdf
PDF
MySQL Database Architectures - 2022-08
PPTX
Times ten 18.1_overview_meetup
PDF
Maximum Availability Architecture - Best Practices for Oracle Database 19c
PDF
times ten in-memory database for extreme performance
PDF
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
PDF
Best Practices for a Complete Postgres Enterprise Architecture Setup
 
PDF
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
PDF
Slow things down to make them go faster [FOSDEM 2022]
PDF
Oracle_Patching_Untold_Story_Final_Part2.pdf
PDF
VMworld Europe 2014: Virtualizing Databases Doing IT Right – The Sequel
PPTX
20230614 LinuxONE Distinguished_Recognition ISSIP_Award_Talk.pptx
PDF
From Disaster to Recovery: Preparing Your IT for the Unexpected
PPTX
MGT3342BUS - Architecting Data Protection with Rubrik - VMworld 2017
PDF
New Generation of IBM Power Systems Delivering value with Red Hat Enterprise ...
Webinar Slides: High Volume MySQL HA: SaaS Continuous Operations with Terabyt...
Zerto for dr migration to cloud overview
CS_10_DR_CFD
Open Sourcing GemFire - Apache Geode
An Introduction to Apache Geode (incubating)
Tokyo AK Meetup Speedtest - Share.pdf
MySQL Database Architectures - 2022-08
Times ten 18.1_overview_meetup
Maximum Availability Architecture - Best Practices for Oracle Database 19c
times ten in-memory database for extreme performance
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Best Practices for a Complete Postgres Enterprise Architecture Setup
 
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
Slow things down to make them go faster [FOSDEM 2022]
Oracle_Patching_Untold_Story_Final_Part2.pdf
VMworld Europe 2014: Virtualizing Databases Doing IT Right – The Sequel
20230614 LinuxONE Distinguished_Recognition ISSIP_Award_Talk.pptx
From Disaster to Recovery: Preparing Your IT for the Unexpected
MGT3342BUS - Architecting Data Protection with Rubrik - VMworld 2017
New Generation of IBM Power Systems Delivering value with Red Hat Enterprise ...
Ad

More from EDB (20)

PDF
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
 
PDF
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
 
PDF
Migre sus bases de datos Oracle a la nube
 
PDF
EFM Office Hours - APJ - July 29, 2021
 
PDF
Benchmarking Cloud Native PostgreSQL
 
PDF
Las Variaciones de la Replicación de PostgreSQL
 
PDF
NoSQL and Spatial Database Capabilities using PostgreSQL
 
PDF
Is There Anything PgBouncer Can’t Do?
 
PDF
Data Analysis with TensorFlow in PostgreSQL
 
PDF
Practical Partitioning in Production with Postgres
 
PDF
A Deeper Dive into EXPLAIN
 
PDF
IOT with PostgreSQL
 
PDF
A Journey from Oracle to PostgreSQL
 
PDF
Psql is awesome!
 
PDF
EDB 13 - New Enhancements for Security and Usability - APJ
 
PPTX
Comment sauvegarder correctement vos données
 
PDF
Cloud Native PostgreSQL - Italiano
 
PDF
New enhancements for security and usability in EDB 13
 
PPTX
Best Practices in Security with PostgreSQL
 
PDF
Cloud Native PostgreSQL - APJ
 
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
 
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
 
Migre sus bases de datos Oracle a la nube
 
EFM Office Hours - APJ - July 29, 2021
 
Benchmarking Cloud Native PostgreSQL
 
Las Variaciones de la Replicación de PostgreSQL
 
NoSQL and Spatial Database Capabilities using PostgreSQL
 
Is There Anything PgBouncer Can’t Do?
 
Data Analysis with TensorFlow in PostgreSQL
 
Practical Partitioning in Production with Postgres
 
A Deeper Dive into EXPLAIN
 
IOT with PostgreSQL
 
A Journey from Oracle to PostgreSQL
 
Psql is awesome!
 
EDB 13 - New Enhancements for Security and Usability - APJ
 
Comment sauvegarder correctement vos données
 
Cloud Native PostgreSQL - Italiano
 
New enhancements for security and usability in EDB 13
 
Best Practices in Security with PostgreSQL
 
Cloud Native PostgreSQL - APJ
 

Recently uploaded (20)

PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
MYSQL Presentation for SQL database connectivity
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Spectroscopy.pptx food analysis technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPT
Teaching material agriculture food technology
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
cuic standard and advanced reporting.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
KodekX | Application Modernization Development
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
MYSQL Presentation for SQL database connectivity
NewMind AI Weekly Chronicles - August'25 Week I
Programs and apps: productivity, graphics, security and other tools
Mobile App Security Testing_ A Comprehensive Guide.pdf
MIND Revenue Release Quarter 2 2025 Press Release
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Encapsulation_ Review paper, used for researhc scholars
Spectroscopy.pptx food analysis technology
Dropbox Q2 2025 Financial Results & Investor Presentation
Building Integrated photovoltaic BIPV_UPV.pdf
Teaching material agriculture food technology
20250228 LYD VKU AI Blended-Learning.pptx
cuic standard and advanced reporting.pdf
Big Data Technologies - Introduction.pptx
KodekX | Application Modernization Development
Diabetes mellitus diagnosis method based random forest with bat algorithm
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Reach Out and Touch Someone: Haptics and Empathic Computing
Build a system with the filesystem maintained by OSTree @ COSCUP 2025

Making your PostgreSQL Database Highly Available

  • 1. Making your PostgreSQL Highly Available Presented by: Alok Kumar Mishra Senior Sales Engineer, A/NZ 24th Nov 2020
  • 2. © Copyright EnterpriseDBCorporation, 2020. All rightsreserved. Agenda 1. Who is EDB 2. HighAvailability Basics & Terminology 3. How does HighAvailabilitywork? 4. HighAvailabilityfor Postgres using built-in • Streaming Replication • Logical Replication 5. Postgres Multi-Node Architecture for High Availability 6. EDB tools for HighAvailabilitymanagement and monitoring 2
  • 3. EDB superchargesPostgreSQL Largest dedicated PostgreSQLcompany Major PostgreSQL communityleader Over 5,000 customers- 1 in 4 of Fortune 500 Founded in 2004 Over 10 years of consecutivequarterly subscriptiongrowth 500+ employees Recognised leader in Relational Database Management Systems (RDBMS) by both Gartner and Forrester 2019 Challengers Leaders Visionaries Abilitytoexecute NichePlayers Completenessof vision 3 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
  • 4. Thelargest dedicated PostgreSQLcompany • More customers: Than any dedicatedPostgreSQL company • More experts: Leading PostgreSQL contributors • More innovation: Positioned to lead in enterprisePostgreSQL and hybridcloud EDB acquires 2ndQuadrant in Sept 2020 + 4 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
  • 6. High Availability 6 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved. High availability (HA) is a characteristicof a system, which aims to ensure an agreed level of operational performance,usually uptime, for a higher than normal period. Key principles: • Eliminatesingle point of failure • Reliablecrossover • Detection offailures Ref:https://en.wikipedia.org/wiki/High_availability
  • 7. SLAs.. 7 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved. • Availability mentioned in SLAs are only goals of service provider • Usually when it’s not met than company pays off the fees
  • 8. Magic number: 9’s 8 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved. Calculated/expressed as a percentage of uptime in a given year based on the service level agreements.Some companies exclude the planned outage/scheduled downtimebased on their agreementswith customers on the availabilityof their services. Availability% Downtime peryear Downtime permonth Downtime per week Downtime perday 99.99% ("fournines") 52.60minutes 4.38minutes 1.01minutes 8.64seconds 99.995% ("four and a half nines") 26.30minutes 2.19minutes 30.24seconds 4.32seconds 99.999% ("fivenines") 5.26minutes 26.30seconds 6.05seconds 864.00 milliseconds
  • 10. RPO/RTO: Key Components of High Availability RecoveryPoint Objective(RPO)/RecoveryTimeObjective(RTO) Recovery Point Objective Recovery TimeObjective http://www.allnetkc.com/definitions.html 10 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
  • 11. GRO: Key Component of High Availability 11 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved. GeographicRedundancy Objective(GRO) "...sometimesconsideredthe disaster recovery requirement.This objectiveencompasses what data needs to be replicated offsite, how often and how far." https://storageswiss.com/2014/01/22/backup-basics-what-do-slo-rpo-rto-vro-and-gro- mean/#:~:text=Geographic%20Redundancy%20Objective&text=Simply%20put%2C%20users%20are%20more,multiple%2 0geographic%20requirements%20per%20application.
  • 14. Eliminate Single Point of failure 14 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved. • WAL shipping based replication • Replicationbased on the archivedWAL • Streaming replication(SR) • Streaming WAL files to one or more standbys • Logical replication • Streaming logical data modifications from the WAL.
  • 15. Eliminate Single Point of failure 15 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved. Hot Standby • Identical to primarysystem • Data is still mirrored in real time • Allows READ • On failure,can replaceprimary • Approaches • WAL shippingbased • Streaming WAL (widelyused after9.0)
  • 16. Eliminate Single Point of failure Hot Standby: WALshipping 16 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
  • 17. Eliminate Single Point of failure Hot Standby: StreamingReplication 17 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
  • 18. Eliminate Single Point of failure 18 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved. Streaming Replication • Asynchronous StreamingReplication • Synchronous StreamingReplication • synchronous_standby_names Read more about the parameter in the doc: https://www.postgresql.org/docs/10/runtime-config-replication.html
  • 19. Eliminate Single Point of failure 19 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved. • Primary server with one or more "hot" standby servers • Suitable for production environments with high availability and read scaling • Write performant, but un-replicated transactions may be lost during failover Property Description Recovery Time Objective < 60 seconds Recovery Point Objective Typically a few seconds or less during failover (un-replicated transactions maybe lost). Dependent on backup strategy for fullrecovery. Geographic Redundancy Objective Dependent on node placement. Typically multi-availability zone. Target Availability 99.99% (99.999% may be possible with failover tuning) Multi node with asynchronous replication
  • 20. 20 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
  • 21. Eliminate Single Point of failure 21 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved. • Primary server with one or more"hot" standby servers • Suitable for production environments with high availability and read scaling • Less write performant,but no loss of committed transactions during failover Property Description Recovery Time Objective < 60 seconds Recovery Point Objective Typically a few seconds or less during failover, with no loss ofcommitted transactions. Dependent on backup strategy for full recovery. Geographic Redundancy Objective Dependent on node placement. Typically multi-availability zone. Target Availability 99.99% (99.999% may be possible with failover tuning) Multi node with synchronous replication
  • 22. 22 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
  • 24. Reliable Crossover &Detection of Failure 24 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved. • In a redundant system, the crossover point itself becomes a single point of failure. • Fault-tolerant systems must provide a reliable crossover or automaticswitchover mechanism to avoidfailure. • Detection offailures: • If the above two principles are proactively monitored,then a user may never see a system failure.
  • 25. Reliable Crossover &Detection EDBPostgres Failover Manager: • Continuously monitors your PostgreSQL service to automatically detectfailures. • After an outage is confirmed,Failover Manager automatically promotes the most up-to-date standby databaseas the new master. 25 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
  • 26. Reliable Crossover &Detection EDB Postgres Failover Manager: 26 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
  • 28. RPO/RTO/MTTR/GPO BackupAnd RecoveryTool 28 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
  • 29. RPO/RTO/MTTR/GPO BackupAnd RecoveryTool 29 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
  • 31. High AvailabilityMonitoring Postgres EnterpriseManager 31 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
  • 32. High AvailabilityMonitoring Postgres EnterpriseManager 32 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.
  • 33. Conclusion 33 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved. • High Availabilitycomponents • Hot Standby (StreamingReplication) • EDBPostgres Failover Manager • Postgres EnterpriseManager • BackupAnd RecoveryTool • Design consideration • Near zero downtime softwaremaintenance • RPO/RTO/GRO
  • 34. Resources 34 © Copyright EnterpriseDBCorporation, 2020. All rightsreserved. • Blog series • What Does HighAvailability Really Mean • Patching Minor Version in Postgres HighAvailability(HA) Database Cluster • Plans &Strategiesfor DBAs • Key Parameters and Configuration for Streaming Replicationin Postgres 12 • Quick and Reliable Failure Detection with EDB Postgres Failover Manager
  • 35. © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.37
  • 36. © Copyright EnterpriseDBCorporation, 2020. All rightsreserved.37