SlideShare a Scribd company logo
Best practices & lessons
learned from deployment
of Postgres
Marc Linster, CTO
September 23, 2020
What is the
challenge?
• How to get the most mileage out
of the best open source
relational database
• How do leaders do it?
• Where do they start?
• How do they drive the change?
Proven
Practices
● Understand the application
landscape and the fit for
PostgreSQL
● Understand how to eat the
elephant - one byte at a time
● Foster collaboration to drive
adoption
● Use standardization to enable
automation
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.4
Open Source wins in the RDBMS space
By 2022, more than 70% of new in-house applications will be developed on an OSDBMS or
OSDBMS-based dbPaaS, and 50% of existing proprietary RDBMS instances will have been
converted or be in process of converting.
By 2022, more than 60% of all global organizations will formalize their management of internal skills
and standards related to OSDBMS to enable better use of open source in production.
Gartner Group - State of the Open-Source DBMS Market, 2019
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.5
PostgreSQL won
If you bet… you bet on PostgreSQL
Most Loved DatabaseMost Commonly Used Database Postgres Popularity
Source: Stack Overflow Developer Survey, 2019 Source: DB-Engines.com, 2020
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.6
Postgres is second
most popular image
in containers (after
Nginx)
Source: Datadog, Nov 2019, https://www.datadoghq.com/container-report/
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.7
100 TB+; read-only;
relational +;
multiple topics;
rel. Integrity not
relevant ; data
scientist focus
Hadoop,
Cassandra
Data volume and
velocity
Understand Where PostgreSQL Shines
Data Lake
Data
Warehouse
Data Mart ODS
System of
Record
System of
Engagement
Edge
Computing
Mobile
Computing
50TB+; read
only; relational;
star/cube/mat.
view; periodic
refresh; multiple
topics; analyst
focused
10TB+; read only;
relational;
star/cube/mat.
view; periodic
refresh; single
topic; citizen
analyst focus
10TB+; read only;
relational only;
normalized data
model; concurrent
refresh; citizen
analyst focused
1-20TB;
read/write; 90%
relational; ACID;
ERP/CRM, Line
of business
focused
< 2TB; read/write;
relational + doc +
GIS; ACID or
BASE; micro
services; website
and social media
focus
< 2TB; read/write;
relational + doc +
GIS; ACID or
BASE; micro
services; M2M,
IoT focus
< 1GB;
read/write;
relational + doc
+ GIS; single
user; micro
services IoT,
mobile app focus
Redshift,
Snowflake,
Teradata, Exadata,
BigQuery
Exadata, Oracle
DB, SQL Server,
Postgres
Oracle, SQL
Server, Postgres
Oracle, SQL
Server, Postgres
MongoDB,
MySQL, Redis,
Postgres,
MySQL, Postgres SQLite, Realm
Innovation; cost;
compatibility; no
vendor lock in;
Multi-model;
innovation; cost;
Available Evrywhr
Hardware
acceleration; MPP;
S3 integration
Hardware
failover
Native write
scalability
No single user
footprint; no
replication from/to
mobile
Multi-model;
innovation; cost;
Available Evrywhr
Analytics capab.;
compatibility;
heterogeneous rep.
Analytics capab.;
compatibility; ease
of integration.
Description
Key players
PostgreSQL Strengths
PostgreSQL Limitations
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.8
Create a Reasonable Plan
Temptation:
● Go for major impact
● Address the worst legacy problem first
Recipe for success:
● Tier your applications
● Develop reference architectures
● Understand your maturity
● Find the balance between feasible and meaningful
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.9
Define a Tiering Framework
(sample framework)
RPO: 24 hours
RTO: 24 hours
GRO: NA
DB Failover time: NA
An. maint. window: 24
hours
SLA: 99.5%
RPO: 1 min
RTO: <1 min (Failover)
6 hours (PITR)
GRO: NA
DB Failover time: <1 min
An. maint. window: 6 hours
SLA: 99.99%
RPO: No data loss
RTO: <1 min (Failover)
< 3 hours (PITR)
GRO: 1 min
DB Failover time: <1 min
An. maint. window: 4 hours
SLA: 99.999%
RPO: No data loss
RTO: <1 min (Failover)
< 3 hours (PITR)
GRO: 1 min
DB Failover time: <1 min
An. maint. window: 4 hours
SLA: 99.999%
RPO: No data loss
RTO: <1 min (Failover)
< 3 hours (PITR)
GRO: 1 min
DB Failover time: <1 min
An. maint. window: 4 hours
SLA: 99.999%
Departmental
Departmental
Mission Critical
Enterprise
Mission Critical
Enterprise
Mission Critical
High Volume
Enterprise
Mission Critical
High Volume &
High Scale
< 1TB; < 500 TPS; <
100 users
< 1TB; < 500 TPS; <
100 users
< 5TB; < 5000 TPS; <
1000 users
< 5TB; < 10,000 TPS;
< 1000 users
< 20TB; < 10,000
TPS; > 1000 users
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.10
Define Reference Architectures
● CPU, Memory, Storage
● Local, metro, geo-distributed
● Replicas for redundancy,
read-scalability or both
● Streaming replication, logical
replication or both?
● Connection pooling, query
routing, or both?
● SLA, RPO, RTO, GRO
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.11 © Copyright EnterpriseDB Corporation, 2020. All rights reserved.11
Emerging
• Getting started with PostgreSQL
• Often for a single project
• For test/dev apps
Strategic
• PostgreSQL considered a “standard”
• Many production apps incl. tier 1
• Concerns for scalability, HA, and automation
Expanding
• Increasingly for production apps
• Tools and automation important
• Worries about database security
Your PostgreSQL journey
Value of PostgreSQL
PostgreSQL Maturity
Understand your
Position on the
Maturity Curve
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.12
Focus on Collaboration and Evangelizing
Problem Evangelizing Enablement
Successful open source adoption benefits from organizational change
● DBA teams and
development teams are
often at arms length
● “The infrastructure is
ready, but nobody uses it”
● “We would build on
Postgres, but the DBAs
can’t handle it”
● Create a bottom-up
innovation movement
● Informal discussions,
lunch & learns,
hackathons, meetups
● Create DevOps culture -
break down the walls
between developers
and DBAs
● Make sure DBAs are
ready to support
production
● Consider Remote DBA
Services
● Invest in automation to
be responsive
Standardization
and Automation
• Open source == agility
• Agility == speed and scale
• There is no scalability without
automation
• Automation requires
standardization
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.14
Core PostgreSQL Architectures
Database servers
• Single Node
• Multi-node cluster with asynchronous replication
• Multi-node cluster with synchronous replication
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.15
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.16
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%
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.17
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%
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.18
Postgres Deployment Automation
Technology Decision
Choices
• Terraform
• CloudFormation
• Ansible
• Chef
• Puppet
• Salt
• Configuration Management Vs Provisioning
• Procedural Vs Declarative
• With local install or not
• Mutable Infrastructure Vs Immutable
Infrastructure
• Agent Vs Agentless
Factors to Consider
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.19
Deployment Tool Survey (June 2020)
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.20
EDB Postgres on Ansible Galaxy
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.21
Recommended Practices
• Understand the application landscape and the fit
for PostgreSQL
• Understand how to eat the elephant - one byte at a
time
• Foster collaboration to drive adoption
• Use standardization and automation to drive agility
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.22
Resources
Thank You
https://www.enterprisedb.com/white-papers
● Tuning Postgres on Windows and Linux
https://www.enterprisedb.com/blog
● Reference architectures
● Automated deployment scripts (Ansible and Terraform)
https://galaxy.ansible.com/edb_devops/edb_postgres
● Ansible Roles for deployment

More Related Content

PPTX
PostgreSQL as a Strategic Tool
 
PDF
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
 
PPTX
Migration DB2 to EDB - Project Experience
 
PDF
Making your PostgreSQL Database Highly Available
 
PPTX
Public Sector Virtual Town Hall: High Availability for PostgreSQL
 
PPTX
Expert Guide to Migrating Legacy Databases to Postgres
 
PDF
Best Practices in Security with PostgreSQL
 
PPTX
Overcoming write availability challenges of PostgreSQL
 
PostgreSQL as a Strategic Tool
 
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
 
Migration DB2 to EDB - Project Experience
 
Making your PostgreSQL Database Highly Available
 
Public Sector Virtual Town Hall: High Availability for PostgreSQL
 
Expert Guide to Migrating Legacy Databases to Postgres
 
Best Practices in Security with PostgreSQL
 
Overcoming write availability challenges of PostgreSQL
 

What's hot (20)

PPTX
How to Design for Database High Availability
 
PPTX
New enhancements for security and usability in EDB 13
 
PPTX
PostgreSQL as a Strategic Tool
 
PDF
Remote DBA Service: Powering your DBA needs
 
PDF
Auditing and Monitoring PostgreSQL/EPAS
 
PPTX
PostgreSQL to Accelerate Innovation
 
PPTX
Replacing Oracle with EDB Postgres
 
PPTX
Webinar: Managing Postgres at Scale
 
PPTX
Database Dumps and Backups
 
PPTX
Automating a PostgreSQL High Availability Architecture with Ansible
 
PDF
EDB & ELOS Technologies - Break Free from Oracle
 
PPTX
An Expert Guide to Migrating Legacy Databases to PostgreSQL
 
PDF
Beginner's Guide to High Availability for Postgres - French
 
PDF
Why Care Risk Choose PostgreSQL
 
PPTX
Beginner's Guide to High Availability for Postgres
 
PDF
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
 
PPTX
An overview of reference architectures for Postgres
 
PPTX
Break Free from Oracle
 
PPTX
Szabaduljon ki az Oracle szorításából
 
PDF
Beginner's Guide to High Availability for Postgres
 
How to Design for Database High Availability
 
New enhancements for security and usability in EDB 13
 
PostgreSQL as a Strategic Tool
 
Remote DBA Service: Powering your DBA needs
 
Auditing and Monitoring PostgreSQL/EPAS
 
PostgreSQL to Accelerate Innovation
 
Replacing Oracle with EDB Postgres
 
Webinar: Managing Postgres at Scale
 
Database Dumps and Backups
 
Automating a PostgreSQL High Availability Architecture with Ansible
 
EDB & ELOS Technologies - Break Free from Oracle
 
An Expert Guide to Migrating Legacy Databases to PostgreSQL
 
Beginner's Guide to High Availability for Postgres - French
 
Why Care Risk Choose PostgreSQL
 
Beginner's Guide to High Availability for Postgres
 
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
 
An overview of reference architectures for Postgres
 
Break Free from Oracle
 
Szabaduljon ki az Oracle szorításából
 
Beginner's Guide to High Availability for Postgres
 
Ad

Similar to Best Practices & Lessons Learned from Deployment of PostgreSQL (20)

PPTX
An overview of reference architectures for Postgres
 
PPTX
Community vs. Commercial Open Source
PPTX
Preview of the EDB Postgres Roadmap
 
PDF
PostgreSQL High Availability in a Containerized World
PDF
Which postgres is_right_for_me_20130517
 
PDF
Exploring Postgres with Bruce Momjian
 
PDF
Reducing Database Pain & Costs with Postgres
 
PPTX
Enterprise-class security with PostgreSQL - 2
PDF
Azure Databases for PostgreSQL, MySQL and MariaDB
PPTX
EDB: Power to Postgres
PDF
Top 10 Tips for an Effective Postgres Deployment
 
PDF
Public Sector Virtual Town Hall
 
PDF
10/ EnterpriseDB @ OPEN'16
PPTX
Enterprise grade deployment and security with PostgreSQL
PDF
Optimizing Open Source for Greater Database Savings & Control
 
PDF
Optimizing Open Source for Greater Database Savings and Control
 
PDF
PGConf.ASIA 2019 Bali - Keynote Speech 2 - Ivan Pachenko
PPTX
Transform your DBMS to drive engagement innovation with Big Data
PDF
Drive DBMS Transformation with EDB Postgres
 
PPTX
Postgres Takes Charge Around the World
 
An overview of reference architectures for Postgres
 
Community vs. Commercial Open Source
Preview of the EDB Postgres Roadmap
 
PostgreSQL High Availability in a Containerized World
Which postgres is_right_for_me_20130517
 
Exploring Postgres with Bruce Momjian
 
Reducing Database Pain & Costs with Postgres
 
Enterprise-class security with PostgreSQL - 2
Azure Databases for PostgreSQL, MySQL and MariaDB
EDB: Power to Postgres
Top 10 Tips for an Effective Postgres Deployment
 
Public Sector Virtual Town Hall
 
10/ EnterpriseDB @ OPEN'16
Enterprise grade deployment and security with PostgreSQL
Optimizing Open Source for Greater Database Savings & Control
 
Optimizing Open Source for Greater Database Savings and Control
 
PGConf.ASIA 2019 Bali - Keynote Speech 2 - Ivan Pachenko
Transform your DBMS to drive engagement innovation with Big Data
Drive DBMS Transformation with EDB Postgres
 
Postgres Takes Charge Around the World
 
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)

PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
A Presentation on Artificial Intelligence
PDF
Modernizing your data center with Dell and AMD
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Approach and Philosophy of On baking technology
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Electronic commerce courselecture one. Pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Encapsulation theory and applications.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
A Presentation on Artificial Intelligence
Modernizing your data center with Dell and AMD
Dropbox Q2 2025 Financial Results & Investor Presentation
Approach and Philosophy of On baking technology
Spectral efficient network and resource selection model in 5G networks
Electronic commerce courselecture one. Pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Per capita expenditure prediction using model stacking based on satellite ima...
Understanding_Digital_Forensics_Presentation.pptx
NewMind AI Monthly Chronicles - July 2025
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Encapsulation_ Review paper, used for researhc scholars
Encapsulation theory and applications.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Network Security Unit 5.pdf for BCA BBA.
Unlocking AI with Model Context Protocol (MCP)
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx

Best Practices & Lessons Learned from Deployment of PostgreSQL

  • 1. Best practices & lessons learned from deployment of Postgres Marc Linster, CTO September 23, 2020
  • 2. What is the challenge? • How to get the most mileage out of the best open source relational database • How do leaders do it? • Where do they start? • How do they drive the change?
  • 3. Proven Practices ● Understand the application landscape and the fit for PostgreSQL ● Understand how to eat the elephant - one byte at a time ● Foster collaboration to drive adoption ● Use standardization to enable automation
  • 4. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.4 Open Source wins in the RDBMS space By 2022, more than 70% of new in-house applications will be developed on an OSDBMS or OSDBMS-based dbPaaS, and 50% of existing proprietary RDBMS instances will have been converted or be in process of converting. By 2022, more than 60% of all global organizations will formalize their management of internal skills and standards related to OSDBMS to enable better use of open source in production. Gartner Group - State of the Open-Source DBMS Market, 2019
  • 5. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.5 PostgreSQL won If you bet… you bet on PostgreSQL Most Loved DatabaseMost Commonly Used Database Postgres Popularity Source: Stack Overflow Developer Survey, 2019 Source: DB-Engines.com, 2020
  • 6. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.6 Postgres is second most popular image in containers (after Nginx) Source: Datadog, Nov 2019, https://www.datadoghq.com/container-report/
  • 7. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.7 100 TB+; read-only; relational +; multiple topics; rel. Integrity not relevant ; data scientist focus Hadoop, Cassandra Data volume and velocity Understand Where PostgreSQL Shines Data Lake Data Warehouse Data Mart ODS System of Record System of Engagement Edge Computing Mobile Computing 50TB+; read only; relational; star/cube/mat. view; periodic refresh; multiple topics; analyst focused 10TB+; read only; relational; star/cube/mat. view; periodic refresh; single topic; citizen analyst focus 10TB+; read only; relational only; normalized data model; concurrent refresh; citizen analyst focused 1-20TB; read/write; 90% relational; ACID; ERP/CRM, Line of business focused < 2TB; read/write; relational + doc + GIS; ACID or BASE; micro services; website and social media focus < 2TB; read/write; relational + doc + GIS; ACID or BASE; micro services; M2M, IoT focus < 1GB; read/write; relational + doc + GIS; single user; micro services IoT, mobile app focus Redshift, Snowflake, Teradata, Exadata, BigQuery Exadata, Oracle DB, SQL Server, Postgres Oracle, SQL Server, Postgres Oracle, SQL Server, Postgres MongoDB, MySQL, Redis, Postgres, MySQL, Postgres SQLite, Realm Innovation; cost; compatibility; no vendor lock in; Multi-model; innovation; cost; Available Evrywhr Hardware acceleration; MPP; S3 integration Hardware failover Native write scalability No single user footprint; no replication from/to mobile Multi-model; innovation; cost; Available Evrywhr Analytics capab.; compatibility; heterogeneous rep. Analytics capab.; compatibility; ease of integration. Description Key players PostgreSQL Strengths PostgreSQL Limitations
  • 8. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.8 Create a Reasonable Plan Temptation: ● Go for major impact ● Address the worst legacy problem first Recipe for success: ● Tier your applications ● Develop reference architectures ● Understand your maturity ● Find the balance between feasible and meaningful
  • 9. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.9 Define a Tiering Framework (sample framework) RPO: 24 hours RTO: 24 hours GRO: NA DB Failover time: NA An. maint. window: 24 hours SLA: 99.5% RPO: 1 min RTO: <1 min (Failover) 6 hours (PITR) GRO: NA DB Failover time: <1 min An. maint. window: 6 hours SLA: 99.99% RPO: No data loss RTO: <1 min (Failover) < 3 hours (PITR) GRO: 1 min DB Failover time: <1 min An. maint. window: 4 hours SLA: 99.999% RPO: No data loss RTO: <1 min (Failover) < 3 hours (PITR) GRO: 1 min DB Failover time: <1 min An. maint. window: 4 hours SLA: 99.999% RPO: No data loss RTO: <1 min (Failover) < 3 hours (PITR) GRO: 1 min DB Failover time: <1 min An. maint. window: 4 hours SLA: 99.999% Departmental Departmental Mission Critical Enterprise Mission Critical Enterprise Mission Critical High Volume Enterprise Mission Critical High Volume & High Scale < 1TB; < 500 TPS; < 100 users < 1TB; < 500 TPS; < 100 users < 5TB; < 5000 TPS; < 1000 users < 5TB; < 10,000 TPS; < 1000 users < 20TB; < 10,000 TPS; > 1000 users
  • 10. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.10 Define Reference Architectures ● CPU, Memory, Storage ● Local, metro, geo-distributed ● Replicas for redundancy, read-scalability or both ● Streaming replication, logical replication or both? ● Connection pooling, query routing, or both? ● SLA, RPO, RTO, GRO
  • 11. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.11 © Copyright EnterpriseDB Corporation, 2020. All rights reserved.11 Emerging • Getting started with PostgreSQL • Often for a single project • For test/dev apps Strategic • PostgreSQL considered a “standard” • Many production apps incl. tier 1 • Concerns for scalability, HA, and automation Expanding • Increasingly for production apps • Tools and automation important • Worries about database security Your PostgreSQL journey Value of PostgreSQL PostgreSQL Maturity Understand your Position on the Maturity Curve
  • 12. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.12 Focus on Collaboration and Evangelizing Problem Evangelizing Enablement Successful open source adoption benefits from organizational change ● DBA teams and development teams are often at arms length ● “The infrastructure is ready, but nobody uses it” ● “We would build on Postgres, but the DBAs can’t handle it” ● Create a bottom-up innovation movement ● Informal discussions, lunch & learns, hackathons, meetups ● Create DevOps culture - break down the walls between developers and DBAs ● Make sure DBAs are ready to support production ● Consider Remote DBA Services ● Invest in automation to be responsive
  • 13. Standardization and Automation • Open source == agility • Agility == speed and scale • There is no scalability without automation • Automation requires standardization
  • 14. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.14 Core PostgreSQL Architectures Database servers • Single Node • Multi-node cluster with asynchronous replication • Multi-node cluster with synchronous replication
  • 15. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.15 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%
  • 16. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.16 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%
  • 17. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.17 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%
  • 18. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.18 Postgres Deployment Automation Technology Decision Choices • Terraform • CloudFormation • Ansible • Chef • Puppet • Salt • Configuration Management Vs Provisioning • Procedural Vs Declarative • With local install or not • Mutable Infrastructure Vs Immutable Infrastructure • Agent Vs Agentless Factors to Consider
  • 19. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.19 Deployment Tool Survey (June 2020)
  • 20. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.20 EDB Postgres on Ansible Galaxy
  • 21. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.21 Recommended Practices • Understand the application landscape and the fit for PostgreSQL • Understand how to eat the elephant - one byte at a time • Foster collaboration to drive adoption • Use standardization and automation to drive agility
  • 22. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.22 Resources Thank You https://www.enterprisedb.com/white-papers ● Tuning Postgres on Windows and Linux https://www.enterprisedb.com/blog ● Reference architectures ● Automated deployment scripts (Ansible and Terraform) https://galaxy.ansible.com/edb_devops/edb_postgres ● Ansible Roles for deployment