SlideShare a Scribd company logo
Reference
Architectures
Dave Page
Vibhor Kumar
October 2020
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.2
• Slides and recording will be available in next 48 hours
• Submit questions via Zoom – will be answering at end
• We will be sharing info about EDB and Postgres later
Welcome – Housekeeping Items
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.3
Agenda
• Introduction to EDB
• What are reference architectures?
• Architecture properties
• Core Architectures
• Add-on architectures:
• Pooling & Load Balancing/Query Routing
• Management
• Summary
• Q&A
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.4
• Enterprise PostgreSQL and Open Source innovations
• 5,000+ global customers
• Recognized by Gartner Magic Quadrant for 7 years in a row
• One of the only sub-$1bn revenue companies
• Recently acquired 2ndQuadrant, making us the largest
dedicated PostgreSQL company in the world with over 500
employees
• PostgreSQL community leadership, employing over 25
committers and recognised contributors
2019
Challengers Leaders
Niche Players Visionaries
Abilitytoexecute
Completeness of vision
1986
The Design
of PostgreSQL
1996
Birth of
PostgreSQL
2004
EDB
is founded
2020
TodayMaterialized
Views
Parallel
Query
JIT
Compilation
Heap Only
Tuples (HOT)
Serializable
Parallel Query
We’re database fanatics who care
deeply about PostgreSQL
Expertise
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.5
• A set of pre-designed tried-and-test deployment patterns for PostgreSQL
• Intended as a starting point:
• Easy to try out
• Can be used as-is
• Can be used as a foundation
• Core architectures for the database server
• Add-on architectures provide additional capabilities
What are Reference Architectures?
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.6
Architecture Properties
Recovery Time Objective (RTO)
"The Recovery Time Objective (RTO) is the targeted duration of time and a service level within
which a business process must be restored after a disaster (or disruption) in order to avoid
unacceptable consequences associated with a break in business continuity."
https://en.wikipedia.org/wiki/Disaster_recovery#Recovery_Time_Objective
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.7
Architecture Properties
Recovery Point Objective (RPO)
"A Recovery Point Objective (RPO) is defined by business continuity planning. It is the maximum
targeted period in which data (transactions) might be lost from an IT service due to a major
incident.
If RPO is measured in minutes (or even a few hours), then in practice, off-site mirrored backups
must be continuously maintained; a daily off-site backup on tape will not suffice."
https://en.wikipedia.org/wiki/Disaster_recovery#Recovery_Point_Objective
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.8
Architecture Properties
Geographic Redundancy Objective (GRO)
"... sometimes considered the disaster recovery requirement. This objective encompasses what
data needs to be replicated off site, 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
%20geographic%20requirements%20per%20application.
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.9
Architecture Properties
Target Availability
"The degree to which a system, subsystem or equipment is in a specified operable and
committable state at the start of a mission, when the mission is called for at an unknown, i.e. a
random, time."
"Normally high availability systems might be specified as 99.98%, 99.999% or 99.9996%."
https://en.wikipedia.org/wiki/Availability
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.10
Architecture Properties
A note on Target Availability
• A target is NOT a guarantee!
• Availability is affected by more than just the software application:
• Operating system
• Hardware
• Network
• Environment (power, cooling etc)
• Upgrades/maintenance
• Quoted maximum target availabilities apply to EDB software maintenance only!
Availability Max downtime/year
99% 3d, 15h, 39m, 29s
99.9% 8h, 45m, 56s
99.99% 52m, 35s
99.999% 5m, 15s
99.9999% 31s
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.11
Core Architectures
Database servers
• Single Node
• Multi-node cluster with asynchronous replication
• Multi-node cluster with synchronous replication
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.12
• The most basic deployment
• A single PostgreSQL server for development/testing
• Not generally recommended for production applications
Single Node
Property Description
Recovery Time Objective Dependent on database size and backup strategy
Recovery Point Objective Dependent on backup strategy
Geographic Redundancy Objective N/A
Target Availability 99.9%
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.13
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.14
• 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
Multi node with asynchronous replication
Property Description
Recovery Time Objective < 60 seconds
Recovery Point Objective Typically a few seconds or less during failover (un-replicated transactions may be
lost). 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)
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.15
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.16
• 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
Multi node with synchronous replication
Property Description
Recovery Time Objective < 60 seconds
Recovery Point Objective Typically a few seconds or less during failover, with no loss of committed
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)
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.17
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.18
Add-on Architectures
Pooling & Load Balancing/Query Routing
• pgBouncer
• pgPool
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.19
• Connection pooling to minimise connections to PostgreSQL and reduce
connection startup time
• Load balancing over hot standby servers for read-only connections:
• The application must be able to separate read and read/write
connections
• Supports Windows as well as Linux
Load balancing with pgBouncer
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.20
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.21
• Connection pooling to minimise connections to PostgreSQL and reduce
connection startup time
• Load balancing over hot standby servers for read-only connections
• Query routing for read-only vs. read-write transactions:
• Use with great care!
• Views, triggers and functions/procedures may mask write activity
Load balancing and query routing with pgPool
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.22
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.23
Add-on Architectures
Management
• Monitoring with Postgres Enterprise Manager (PEM)
• Backup & Recovery with Backup and Recovery Tool
(BART)
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.24
• Use when you have one or more PostgreSQL instances or clusters that you wish to monitor
and manage.
• PEM provides 24x7 monitoring and alerting, and tools for managing your database server,
including all functionality found in pgAdmin:
• Pre-built and self-built dashboards
• Capacity management predictive reporting
• Wait state performance analysis with EDB Postgres Advanced Server
• SQL profiling
• Tuning, logging, and audit logging wizards
• Static deployment analysis and recommendations
Monitoring & Management with Postgres
Enterprise Manager (PEM)
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.25
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.26
• Use when you have one or more PostgreSQL instances or clusters that you need to
backup for disaster recovery purposes.
• May be required to meet recovery time objectives.
• Backups can be full restores (i.e. the database cluster is restored in its entirety), or
Point In Time Recovery (PITR) may be used to restore the cluster to the state it was
in at a specific point in time.
• May be required to meet recovery point objects
• Can be managed with Postgres Enterprise Manager.
Backup & Recovery with Backup and Recovery Tool
(BART)
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.27
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.28
Conclusion
Easy to use deployment patterns for PostgreSQL
EDB Reference Architectures make it easy to get your PostgreSQL
deployments up and running in battle-hardened configurations
• EDB Reference Architectures on Github
Upcoming webinar on 11 November 2020:
Automating a Postgres high availability architecture with Ansible
Thank You

More Related Content

What's hot (20)

PPTX
Expert Guide to Migrating Legacy Databases to Postgres
EDB
 
PPTX
Beginners Guide to High Availability for Postgres
EDB
 
PPTX
PostgreSQL as a Strategic Tool
EDB
 
PPTX
New enhancements for security and usability in EDB 13
EDB
 
PPTX
Database Dumps and Backups
EDB
 
PPTX
Replacing Oracle with EDB Postgres
EDB
 
PDF
Beginner's Guide to High Availability for Postgres - French
EDB
 
PDF
Best Practices & Lessons Learned from Deployment of PostgreSQL
EDB
 
PPTX
OLTP+OLAP=HTAP
EDB
 
PPTX
How to Design for Database High Availability
EDB
 
PPTX
How to use postgresql.conf to configure and tune the PostgreSQL server
EDB
 
PDF
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
EDB
 
PDF
Understand the Query Plan to Optimize Performance with EXPLAIN and EXPLAIN AN...
EDB
 
PPTX
New and Improved Features in PostgreSQL 13
EDB
 
PDF
PostgreSQL 13 is Coming - Find Out What's New!
EDB
 
PDF
Beginner's Guide to High Availability for Postgres
EDB
 
PPTX
New Integration Options with Postgres Enterprise Manager 8.0
EDB
 
PPTX
An Expert Guide to Migrating Legacy Databases to PostgreSQL
EDB
 
PDF
Remote DBA Service: Powering your DBA needs
EDB
 
PDF
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
EDB
 
Expert Guide to Migrating Legacy Databases to Postgres
EDB
 
Beginners Guide to High Availability for Postgres
EDB
 
PostgreSQL as a Strategic Tool
EDB
 
New enhancements for security and usability in EDB 13
EDB
 
Database Dumps and Backups
EDB
 
Replacing Oracle with EDB Postgres
EDB
 
Beginner's Guide to High Availability for Postgres - French
EDB
 
Best Practices & Lessons Learned from Deployment of PostgreSQL
EDB
 
OLTP+OLAP=HTAP
EDB
 
How to Design for Database High Availability
EDB
 
How to use postgresql.conf to configure and tune the PostgreSQL server
EDB
 
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
EDB
 
Understand the Query Plan to Optimize Performance with EXPLAIN and EXPLAIN AN...
EDB
 
New and Improved Features in PostgreSQL 13
EDB
 
PostgreSQL 13 is Coming - Find Out What's New!
EDB
 
Beginner's Guide to High Availability for Postgres
EDB
 
New Integration Options with Postgres Enterprise Manager 8.0
EDB
 
An Expert Guide to Migrating Legacy Databases to PostgreSQL
EDB
 
Remote DBA Service: Powering your DBA needs
EDB
 
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
EDB
 

Similar to An overview of reference architectures for Postgres (20)

PDF
Best Practices for a Complete Postgres Enterprise Architecture Setup
EDB
 
PPTX
EDB: Power to Postgres
Ashnikbiz
 
PDF
Architecture for building scalable and highly available Postgres Cluster
Ashnikbiz
 
PPTX
Enterprise grade deployment and security with PostgreSQL
Himanchali -
 
PDF
Business Continuity Considerations for a More Reliable Postgres Environment
EDB
 
PPTX
OVHcloud – Enterprise Cloud Databases
OVHcloud
 
PPTX
Enterprise-class security with PostgreSQL - 2
Ashnikbiz
 
PPTX
EDB Database Servers and Tools
Ashnikbiz
 
PDF
Does Anyone Really Need RAC?
EDB
 
PDF
Tapping into New Postgres Resources with Remote DBAs
EDB
 
PPTX
Neuerungen in EDB Postgres 11
EDB
 
PPTX
Community vs. Commercial Open Source
Justin Reock
 
PDF
EDB Postgres Failover Manager
EDB
 
PPTX
PostgreSQL to Accelerate Innovation
EDB
 
PPTX
Les nouveautés d'EDB Postgres 11
EDB
 
PDF
Creating customized openSUSE versions with SUSE Studio
elliando dias
 
PDF
EnterpriseDB's Best Practices for Postgres DBAs
EDB
 
PDF
20230511 - PGConf Nepal - Clustering in PostgreSQL_ Because one database serv...
Umair Shahid
 
PDF
Patroni - HA PostgreSQL made easy
Alexander Kukushkin
 
PDF
PostgreSQL High Availability in a Containerized World
Jignesh Shah
 
Best Practices for a Complete Postgres Enterprise Architecture Setup
EDB
 
EDB: Power to Postgres
Ashnikbiz
 
Architecture for building scalable and highly available Postgres Cluster
Ashnikbiz
 
Enterprise grade deployment and security with PostgreSQL
Himanchali -
 
Business Continuity Considerations for a More Reliable Postgres Environment
EDB
 
OVHcloud – Enterprise Cloud Databases
OVHcloud
 
Enterprise-class security with PostgreSQL - 2
Ashnikbiz
 
EDB Database Servers and Tools
Ashnikbiz
 
Does Anyone Really Need RAC?
EDB
 
Tapping into New Postgres Resources with Remote DBAs
EDB
 
Neuerungen in EDB Postgres 11
EDB
 
Community vs. Commercial Open Source
Justin Reock
 
EDB Postgres Failover Manager
EDB
 
PostgreSQL to Accelerate Innovation
EDB
 
Les nouveautés d'EDB Postgres 11
EDB
 
Creating customized openSUSE versions with SUSE Studio
elliando dias
 
EnterpriseDB's Best Practices for Postgres DBAs
EDB
 
20230511 - PGConf Nepal - Clustering in PostgreSQL_ Because one database serv...
Umair Shahid
 
Patroni - HA PostgreSQL made easy
Alexander Kukushkin
 
PostgreSQL High Availability in a Containerized World
Jignesh Shah
 
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
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PDF
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 

An overview of reference architectures for Postgres

  • 2. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.2 • Slides and recording will be available in next 48 hours • Submit questions via Zoom – will be answering at end • We will be sharing info about EDB and Postgres later Welcome – Housekeeping Items
  • 3. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.3 Agenda • Introduction to EDB • What are reference architectures? • Architecture properties • Core Architectures • Add-on architectures: • Pooling & Load Balancing/Query Routing • Management • Summary • Q&A
  • 4. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.4 • Enterprise PostgreSQL and Open Source innovations • 5,000+ global customers • Recognized by Gartner Magic Quadrant for 7 years in a row • One of the only sub-$1bn revenue companies • Recently acquired 2ndQuadrant, making us the largest dedicated PostgreSQL company in the world with over 500 employees • PostgreSQL community leadership, employing over 25 committers and recognised contributors 2019 Challengers Leaders Niche Players Visionaries Abilitytoexecute Completeness of vision 1986 The Design of PostgreSQL 1996 Birth of PostgreSQL 2004 EDB is founded 2020 TodayMaterialized Views Parallel Query JIT Compilation Heap Only Tuples (HOT) Serializable Parallel Query We’re database fanatics who care deeply about PostgreSQL Expertise
  • 5. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.5 • A set of pre-designed tried-and-test deployment patterns for PostgreSQL • Intended as a starting point: • Easy to try out • Can be used as-is • Can be used as a foundation • Core architectures for the database server • Add-on architectures provide additional capabilities What are Reference Architectures?
  • 6. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.6 Architecture Properties Recovery Time Objective (RTO) "The Recovery Time Objective (RTO) is the targeted duration of time and a service level within which a business process must be restored after a disaster (or disruption) in order to avoid unacceptable consequences associated with a break in business continuity." https://en.wikipedia.org/wiki/Disaster_recovery#Recovery_Time_Objective
  • 7. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.7 Architecture Properties Recovery Point Objective (RPO) "A Recovery Point Objective (RPO) is defined by business continuity planning. It is the maximum targeted period in which data (transactions) might be lost from an IT service due to a major incident. If RPO is measured in minutes (or even a few hours), then in practice, off-site mirrored backups must be continuously maintained; a daily off-site backup on tape will not suffice." https://en.wikipedia.org/wiki/Disaster_recovery#Recovery_Point_Objective
  • 8. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.8 Architecture Properties Geographic Redundancy Objective (GRO) "... sometimes considered the disaster recovery requirement. This objective encompasses what data needs to be replicated off site, 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 %20geographic%20requirements%20per%20application.
  • 9. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.9 Architecture Properties Target Availability "The degree to which a system, subsystem or equipment is in a specified operable and committable state at the start of a mission, when the mission is called for at an unknown, i.e. a random, time." "Normally high availability systems might be specified as 99.98%, 99.999% or 99.9996%." https://en.wikipedia.org/wiki/Availability
  • 10. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.10 Architecture Properties A note on Target Availability • A target is NOT a guarantee! • Availability is affected by more than just the software application: • Operating system • Hardware • Network • Environment (power, cooling etc) • Upgrades/maintenance • Quoted maximum target availabilities apply to EDB software maintenance only! Availability Max downtime/year 99% 3d, 15h, 39m, 29s 99.9% 8h, 45m, 56s 99.99% 52m, 35s 99.999% 5m, 15s 99.9999% 31s
  • 11. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.11 Core Architectures Database servers • Single Node • Multi-node cluster with asynchronous replication • Multi-node cluster with synchronous replication
  • 12. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.12 • The most basic deployment • A single PostgreSQL server for development/testing • Not generally recommended for production applications Single Node Property Description Recovery Time Objective Dependent on database size and backup strategy Recovery Point Objective Dependent on backup strategy Geographic Redundancy Objective N/A Target Availability 99.9%
  • 13. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.13
  • 14. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.14 • 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 Multi node with asynchronous replication Property Description Recovery Time Objective < 60 seconds Recovery Point Objective Typically a few seconds or less during failover (un-replicated transactions may be lost). 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)
  • 15. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.15
  • 16. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.16 • 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 Multi node with synchronous replication Property Description Recovery Time Objective < 60 seconds Recovery Point Objective Typically a few seconds or less during failover, with no loss of committed 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)
  • 17. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.17
  • 18. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.18 Add-on Architectures Pooling & Load Balancing/Query Routing • pgBouncer • pgPool
  • 19. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.19 • Connection pooling to minimise connections to PostgreSQL and reduce connection startup time • Load balancing over hot standby servers for read-only connections: • The application must be able to separate read and read/write connections • Supports Windows as well as Linux Load balancing with pgBouncer
  • 20. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.20
  • 21. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.21 • Connection pooling to minimise connections to PostgreSQL and reduce connection startup time • Load balancing over hot standby servers for read-only connections • Query routing for read-only vs. read-write transactions: • Use with great care! • Views, triggers and functions/procedures may mask write activity Load balancing and query routing with pgPool
  • 22. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.22
  • 23. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.23 Add-on Architectures Management • Monitoring with Postgres Enterprise Manager (PEM) • Backup & Recovery with Backup and Recovery Tool (BART)
  • 24. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.24 • Use when you have one or more PostgreSQL instances or clusters that you wish to monitor and manage. • PEM provides 24x7 monitoring and alerting, and tools for managing your database server, including all functionality found in pgAdmin: • Pre-built and self-built dashboards • Capacity management predictive reporting • Wait state performance analysis with EDB Postgres Advanced Server • SQL profiling • Tuning, logging, and audit logging wizards • Static deployment analysis and recommendations Monitoring & Management with Postgres Enterprise Manager (PEM)
  • 25. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.25
  • 26. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.26 • Use when you have one or more PostgreSQL instances or clusters that you need to backup for disaster recovery purposes. • May be required to meet recovery time objectives. • Backups can be full restores (i.e. the database cluster is restored in its entirety), or Point In Time Recovery (PITR) may be used to restore the cluster to the state it was in at a specific point in time. • May be required to meet recovery point objects • Can be managed with Postgres Enterprise Manager. Backup & Recovery with Backup and Recovery Tool (BART)
  • 27. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.27
  • 28. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.28 Conclusion Easy to use deployment patterns for PostgreSQL EDB Reference Architectures make it easy to get your PostgreSQL deployments up and running in battle-hardened configurations • EDB Reference Architectures on Github Upcoming webinar on 11 November 2020: Automating a Postgres high availability architecture with Ansible Thank You