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
Webinar Slides: High Volume MySQL HA: SaaS Continuous Operations with Terabyt...
Continuent
 
PDF
Zerto for dr migration to cloud overview
Morgan Davidson
 
PPTX
CS_10_DR_CFD
ajaya gummadi
 
PPTX
Open Sourcing GemFire - Apache Geode
Apache Geode
 
PPTX
An Introduction to Apache Geode (incubating)
Anthony Baker
 
PDF
Tokyo AK Meetup Speedtest - Share.pdf
ssuser2ae721
 
PDF
MySQL Database Architectures - 2022-08
Kenny Gryp
 
PPTX
Times ten 18.1_overview_meetup
Byung Ho Lee
 
PDF
Maximum Availability Architecture - Best Practices for Oracle Database 19c
Glen Hawkins
 
PDF
times ten in-memory database for extreme performance
Oracle Korea
 
PDF
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Miguel Araújo
 
PDF
Best Practices for a Complete Postgres Enterprise Architecture Setup
EDB
 
PDF
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
VMware Tanzu
 
PDF
Slow things down to make them go faster [FOSDEM 2022]
Jimmy Angelakos
 
PDF
Oracle_Patching_Untold_Story_Final_Part2.pdf
Alex446314
 
PDF
VMworld Europe 2014: Virtualizing Databases Doing IT Right – The Sequel
VMworld
 
PPTX
20230614 LinuxONE Distinguished_Recognition ISSIP_Award_Talk.pptx
International Society of Service Innovation Professionals
 
PDF
From Disaster to Recovery: Preparing Your IT for the Unexpected
DataCore Software
 
PPTX
MGT3342BUS - Architecting Data Protection with Rubrik - VMworld 2017
Andrew Miller
 
PDF
New Generation of IBM Power Systems Delivering value with Red Hat Enterprise ...
Filipe Miranda
 
Webinar Slides: High Volume MySQL HA: SaaS Continuous Operations with Terabyt...
Continuent
 
Zerto for dr migration to cloud overview
Morgan Davidson
 
CS_10_DR_CFD
ajaya gummadi
 
Open Sourcing GemFire - Apache Geode
Apache Geode
 
An Introduction to Apache Geode (incubating)
Anthony Baker
 
Tokyo AK Meetup Speedtest - Share.pdf
ssuser2ae721
 
MySQL Database Architectures - 2022-08
Kenny Gryp
 
Times ten 18.1_overview_meetup
Byung Ho Lee
 
Maximum Availability Architecture - Best Practices for Oracle Database 19c
Glen Hawkins
 
times ten in-memory database for extreme performance
Oracle Korea
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Miguel Araújo
 
Best Practices for a Complete Postgres Enterprise Architecture Setup
EDB
 
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
VMware Tanzu
 
Slow things down to make them go faster [FOSDEM 2022]
Jimmy Angelakos
 
Oracle_Patching_Untold_Story_Final_Part2.pdf
Alex446314
 
VMworld Europe 2014: Virtualizing Databases Doing IT Right – The Sequel
VMworld
 
20230614 LinuxONE Distinguished_Recognition ISSIP_Award_Talk.pptx
International Society of Service Innovation Professionals
 
From Disaster to Recovery: Preparing Your IT for the Unexpected
DataCore Software
 
MGT3342BUS - Architecting Data Protection with Rubrik - VMworld 2017
Andrew Miller
 
New Generation of IBM Power Systems Delivering value with Red Hat Enterprise ...
Filipe Miranda
 
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)

PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 

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