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

What's hot (20)

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

Similar to Making your PostgreSQL Database Highly Available (20)

PPTX
High Availability and Disaster Recovery in PostgreSQL - EQUNIX
Julyanto SUTANDANG
 
PDF
Creating customized openSUSE versions with SUSE Studio
elliando dias
 
PDF
Comparing high availability solutions with percona xtradb cluster and percona...
Marco Tusa
 
PDF
PostgreSQL HA
haroonm
 
PPTX
Enterprise grade deployment and security with PostgreSQL
Himanchali -
 
PDF
PostgreSQL High Availability in a Containerized World
Jignesh Shah
 
PDF
20230511 - PGConf Nepal - Clustering in PostgreSQL_ Because one database serv...
Umair Shahid
 
PDF
EDB Postgres Failover Manager
EDB
 
PDF
Best Practices for a Complete Postgres Enterprise Architecture Setup
EDB
 
PDF
Contrasting High Availability, Fault Tolerance, and Disaster Recovery
MaryJWilliams2
 
PDF
PostgreSQL High Availability in a Containerized World
Jignesh Shah
 
PDF
Patroni - HA PostgreSQL made easy
Alexander Kukushkin
 
PDF
Architecture for building scalable and highly available Postgres Cluster
Ashnikbiz
 
PDF
What’s the Best PostgreSQL High Availability Framework? PAF vs. repmgr vs. Pa...
ScaleGrid.io
 
PDF
Webinar slides: How to Measure Database Availability?
Severalnines
 
PDF
PostgreSQL on Kubernetes: Realizing High Availability with PGO (Postgres Ibiz...
NTT DATA Technology & Innovation
 
PDF
Business Continuity Considerations for a More Reliable Postgres Environment
EDB
 
PPTX
OVHcloud – Enterprise Cloud Databases
OVHcloud
 
PDF
HIGH AVAILABILITY AND LOAD BALANCING FOR POSTGRESQL DATABASES: DESIGNING AND ...
IJDMS
 
PPTX
HA & DR System Design - Concepts and Solution
Continuity and Resilience
 
High Availability and Disaster Recovery in PostgreSQL - EQUNIX
Julyanto SUTANDANG
 
Creating customized openSUSE versions with SUSE Studio
elliando dias
 
Comparing high availability solutions with percona xtradb cluster and percona...
Marco Tusa
 
PostgreSQL HA
haroonm
 
Enterprise grade deployment and security with PostgreSQL
Himanchali -
 
PostgreSQL High Availability in a Containerized World
Jignesh Shah
 
20230511 - PGConf Nepal - Clustering in PostgreSQL_ Because one database serv...
Umair Shahid
 
EDB Postgres Failover Manager
EDB
 
Best Practices for a Complete Postgres Enterprise Architecture Setup
EDB
 
Contrasting High Availability, Fault Tolerance, and Disaster Recovery
MaryJWilliams2
 
PostgreSQL High Availability in a Containerized World
Jignesh Shah
 
Patroni - HA PostgreSQL made easy
Alexander Kukushkin
 
Architecture for building scalable and highly available Postgres Cluster
Ashnikbiz
 
What’s the Best PostgreSQL High Availability Framework? PAF vs. repmgr vs. Pa...
ScaleGrid.io
 
Webinar slides: How to Measure Database Availability?
Severalnines
 
PostgreSQL on Kubernetes: Realizing High Availability with PGO (Postgres Ibiz...
NTT DATA Technology & Innovation
 
Business Continuity Considerations for a More Reliable Postgres Environment
EDB
 
OVHcloud – Enterprise Cloud Databases
OVHcloud
 
HIGH AVAILABILITY AND LOAD BALANCING FOR POSTGRESQL DATABASES: DESIGNING AND ...
IJDMS
 
HA & DR System Design - Concepts and Solution
Continuity and Resilience
 
Ad

More from EDB (20)

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

Recently uploaded (20)

PPTX
Enabling the Digital Artisan – keynote at ICOCI 2025
Alan Dix
 
PDF
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
PDF
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
PDF
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
PDF
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
PDF
Why aren't you using FME Flow's CPU Time?
Safe Software
 
PPSX
Usergroup - OutSystems Architecture.ppsx
Kurt Vandevelde
 
PDF
Python Conference Singapore - 19 Jun 2025
ninefyi
 
PDF
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
PDF
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
PDF
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
PDF
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
PDF
The Growing Value and Application of FME & GenAI
Safe Software
 
PPTX
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
DOCX
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
PDF
LLM Search Readiness Audit - Dentsu x SEO Square - June 2025.pdf
Nick Samuel
 
PPTX
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
PDF
Database Benchmarking for Performance Masterclass: Session 1 - Benchmarking F...
ScyllaDB
 
PDF
Open Source Milvus Vector Database v 2.6
Zilliz
 
PDF
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 
Enabling the Digital Artisan – keynote at ICOCI 2025
Alan Dix
 
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
Why aren't you using FME Flow's CPU Time?
Safe Software
 
Usergroup - OutSystems Architecture.ppsx
Kurt Vandevelde
 
Python Conference Singapore - 19 Jun 2025
ninefyi
 
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
The Growing Value and Application of FME & GenAI
Safe Software
 
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
LLM Search Readiness Audit - Dentsu x SEO Square - June 2025.pdf
Nick Samuel
 
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
Database Benchmarking for Performance Masterclass: Session 1 - Benchmarking F...
ScyllaDB
 
Open Source Milvus Vector Database v 2.6
Zilliz
 
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 

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