SlideShare a Scribd company logo
The Top 10 List for Planning a Postgres Deployment 
To listen to the recording of this presentation, please visit www.enterprisedb.com - 
click on the Resources tab – and view the list of On-Demand Webcasts 
© 2014 EDB All rights reserved. 1
Agenda 
• EnterpriseDB Overview 
• Preparation, Planning, and Postgres 
• Top 10 Questions to Ask 
• Ongoing Questions and Dealing with Change 
• Summary and Resources 
• Q&A 
© 2014 EnterpriseDB Corporation. All rights reserved. 2
Brief EDB Overview 
© 2014 EnterpriseDB Corporation. All rights reserved. 3
POSTGRES 
innovation 
Services 
& training 
© 2014 EnterpriseDB Corporation. All rights reserved. 4 
ENTERPRISE 
reliability 
24/7 
support 
Enterprise-class 
features & tools 
Indemnification 
Product 
road-map 
Control 
Thousands 
of developers 
Fast 
development 
cycles 
Low cost 
No vendor 
lock-in 
Advanced 
features 
Enabling commercial 
adoption of Postgres
Postgres Plus 
Advanced Server Postgres Plus 
Management Performance 
© 2014 EnterpriseDB Corporation. All rights reserved. 5 
Cloud Database 
High Availability 
REMOTE 
DBA 24x7 
SUPPORT 
PROFESSIONAL 
SERVICES 
TRAINING 
EDB Serves 
All Your Postgres Needs 
PostgreSQL 
Security
EDB Customers 
EDB currently has over 2,500 total customers including 50 of the Fortune 
500 and 98 of the Forbes Global 2000 
© 2014 EnterpriseDB Corporation. All rights reserved. 6
Gartner 2014 ODBMS Magic Quadrant 
© 2014 EnterpriseDB Corporation. All rights reserved. 7 
Gartner Comments: 
• “EnterpriseDB is the primary 
contributor to the PostgreSQL 
Community” 
• “EnterpriseDB’s Postgres Plus 
Oracle compatibility is now more 
than sufficient to run both 
mission-critical and nonmission-critical 
applications” 
• “Infor, a major application 
platform independent software 
vendor, added EnterpriseDB as 
a DBMS platform choice” 
• “Reference customers continue 
to identify the compatibility with 
Oracle, the stability of the DBMS 
and the product support as 
strengths”
Preparation, Planning, 
and Postgres 
© 2014 EnterpriseDB Corporation. All rights reserved. 8
Deployment Planning ‘Timeline’ 
Hardware (Acquire and Configure) 
Application (Usage Pattern, Response 
Expectations) 
Availability Requirements 
Upgrades 
Recovery (Objectives and Continuity) 
© 2014 EnterpriseDB Corporation. All rights reserved. 9
Why? When? 
• Why ask these questions? 
− Keep everyone on the same page 
− Not everyone knows what you know 
− Your answers might mean something unforeseen by others 
• When to ask these questions? 
− Early 
− Often 
© 2011 EnterpriseDB . All rights reserved. 
© 2014 EnterpriseDB Corporation. All rights reserved. 10
Quick Poll 
Postgres Database Maturity Stage 
© 2014 EnterpriseDB Corporation. All rights reserved. 11
Audience Quick Poll #1 
• Question: What stage are you currently in with your 
Postgres project? 
• Answer choices: 
a. Evaluation or Proof of Concept 
b. Development – active development 
c. Deployment – planning for production or recently launched 
d. Maintenance 
© 2014 EnterpriseDB Corporation. All rights reserved. 12
The Top 10 List 
© 2014 EnterpriseDB Corporation. All rights reserved. 13
10 Questions to Ask Yourself and Others 
1. Where should I focus my money? 
2. How should I partition the I/O? 
3. What does my app want? 
4. Can my app handle what the DB offers? 
5. Highly available or highly recoverable? 
6. Is ASYNC enough or do I need SYNC? 
7. Cascaded replication or fanned? 
8. How do I upgrade? 
9. Why upgrade? 
10. How much data can I afford to lose? 
© 2014 EnterpriseDB Corporation. All rights reserved. 14
Hardware 
© 2014 EnterpriseDB Corporation. All rights reserved. 15
1. Acquiring Hardware – Where should I 
focus my money? 
• Where should I focus my money? 
− RAM 
− Max it out 
− ECC 
− I/O 
− Low latency 
− Battery backed 
− Local, not network 
− CPU 
− More cache == more better 
− Less CPUs, more cores 
− One 12-core CPU > Two 6-core CPU 
© 2014 EnterpriseDB Corporation. All rights reserved. 16
2. How Should I Partition the I/O ? 
© 2011 EnterpriseDB . All rights reserved. 
© 2014 EnterpriseDB Corporation. All rights reserved. 17 
http://www.enterprisedb.com/ahc 
• $PGDATA/pg_xlog 
− SSDs 
− ext2 
• $PGDATA/pg_log 
− syslog 
• $PGDATA/pg_stat_tmp 
− tmpfs 
• $PGDATA/base 
− zfs, ext4, xfs - YES 
− btrfs - not yet 
− ext3 - NO
I/O Partitioning (cont.) 
• Tablespaces (you should be using them) 
− Group like objects into a tablespace of their own 
− Indexes 
− Reporting/historical tables 
− zfs, ext4, xfs 
− Indexes on SSD 
• Things to avoid 
− Hardware deduplication (just don't) 
− Hybrid SSD/HDD (use tablespaces instead) 
− NFS, GlusterFS, FUSE, remote* storage 
© 2014 EnterpriseDB Corporation. All rights reserved. 18
File System and Storage Subsystem 
• Types of Storage Systems 
− Direct Attached Storage (DAS) 
− Storage Area Network (SAN) w. Fiber Channel 
− Storage Area Network (SAN) w. iSCSI 
− Network File System (NFS) 
• DAS: Fast and low latency 
• SAN: Fast, expensive (w. Fiber Channel), scalable, can 
include redundancy and smart file system operations 
• NFS: Not an optimal solution for Postgres 
© 2014 EnterpriseDB Corporation. All rights reserved. 19
Your Application 
© 2014 EnterpriseDB Corporation. All rights reserved. 20
3. What Does My App Want? 
• A few long-running connections crunching lots of data? 
− large work_mem 
− Emphasize effective_cache over shared_buffers 
• Lots of 'quick hit' connections? 
− connection pooling 
− larger shared_buffers 
• More read? Or more write? 
− autovacuum aggressiveness 
− Checkpoint spreading 
© 2011 EnterpriseDB . All rights reserved. 
© 2014 EnterpriseDB Corporation. All rights reserved. 21
4. Can My App Handle what the DB Offers? 
• Can the app recover from a failed 
transaction? 
− During failover, for example 
• Can the app re-request if the answer 
isn't up-to-date? 
− Read-only slave, slightly behind the 
master 
• Can the app handle 'eventual 
consistency'? 
− Multi-master replication 
© 2011 EnterpriseDB . All rights reserved. 
© 2014 EnterpriseDB Corporation. All rights reserved. 22
Availability 
© 2014 EnterpriseDB Corporation. All rights reserved. 23
5. High Availability or High Recoverability? 
• Highly available 
− Enterprise Failover Manager (EFM) 
− xDB 
• Highly recoverable 
− Warm standby 
− WAL archiving 
− PITR 
• Geographically durable 
− xDB 
− Cascaded Replication 
© 2011 EnterpriseDB . All rights reserved. 
© 2014 EnterpriseDB Corporation. All rights reserved. 24
6. Is ASYNC Enough or Do I Need SYNC? 
• ASYNC Replication 
− Default 
− Eventually consistent 
− May be 1+ transactions behind 
− Unlimited* number of ASYNC slaves 
• SYNC Replication 
− Atypical 
− Immediately consistent 
− Performance implications on the master 
− Only ever one SYNC slave 
© 2011 EnterpriseDB . All rights reserved. 
© 2014 EnterpriseDB Corporation. All rights reserved. 25
7. Cascaded or Fanned Replication? 
• Cascaded 
− Can survive death of the master 
− May introduce replication lag 
• Fanned 
− Does not survive death of the master 
− No additional replication lag 
• Both 
− No reason you can't mix-n-match 
© 2011 EnterpriseDB . All rights reserved. 
© 2014 EnterpriseDB Corporation. All rights reserved. 26 
OR
Upgrades 
© 2014 EnterpriseDB Corporation. All rights reserved. 27
Quick Poll 
Upgrade Policies 
© 2014 EnterpriseDB Corporation. All rights reserved. 28
Audience Quick Poll #2 
• Question: What is your current upgrade policy? 
• Answer choices: 
a. Fully defined patch mgmt. policy w/ standing maintenance 
windows 
b. We apply security fixes only as needed 
c. We apply patches/upgrades whenever the mood strikes us 
d. We apply patches/upgrades when the vendor forces it 
e. Upgrades? 
© 2014 EnterpriseDB Corporation. All rights reserved. 29
8. How Do I Upgrade? 
• Postgres version number: xx.yy.zz 
− xx.yy = major version (8.4, 9.2, 9.3) 
− zz = minor version (9.1.14, 9.3.5) 
• Current version: 
− 9.3.x → 9.3.5 
− 9.2.x → 9.2.9 
• Major version changes 
− Not backwards compatible for stored data 
− Dump/load 
− pg_upgrade 
• Minor version changes 
− Replace the binaries, restart 
© 2014 EnterpriseDB Corporation. All rights reserved. 30
How Do I Upgrade (cont.)? 
• Use replication ! 
• Upgrade the slave first 
− If a minor release upgrade, streaming replication 
− If a major release upgrade, logical replication 
• Failover to the upgraded slave 
• Upgrade the old master 
• Slave the old master to the new master 
• Fail back (optional) 
© 2014 EnterpriseDB Corporation. All rights reserved. 31
9. Why Upgrade? 
• Postgres minor releases fix only: 
− Frequently-encountered bugs 
− Security bugs 
− Data corruption bugs 
• As such, you are more at risk by not upgrading 
• Major versions are supported for 5 years which lessens 
the upgrade burden significantly 
© 2014 EnterpriseDB Corporation. All rights reserved. 32
Recovery 
© 2014 EnterpriseDB Corporation. All rights reserved. 33
10. How Much Data Can I Afford to Lose? 
• What’s the loss to the business per minute of the app 
being down? 
− High cost == design for high availability 
− Think multi-master replication 
− Think offsite replication 
− Think automatic failover 
• What’s the loss to the business for every transaction 
you can’t recover? 
− High cost == design for high recoverability 
− Think SYNC replication 
− Think continuous WAL archiving 
− Think outside the db (zfs snapshots, RHCS, Veritas clustering) 
© 2014 EnterpriseDB Corporation. All rights reserved. 34
Why Do I Need Backup and Recovery? 
• Backup and Recovery Strategies protect you in case of: 
− Catastrophic device failure 
− Site failure 
− Maintenance 
− Operator error 
− Compliance 
− Data corruption 
• Consider 
− Allowable PITR timeframe 
− Data retention policy 
− Test, test, test 
− Periodic backup validation 
© 2014 EnterpriseDB Corporation. All rights reserved. 35
What Are My Recovery Options? 
• Various recovery options are available: 
− PITR 
− BART / Barman 
− pg_basebackup 
− pg_dump 
• How long does restoration take? 
• Do I know how to restore using my chosen method? 
© 2014 EnterpriseDB Corporation. All rights reserved. 36
Dealing with Change – 
Ongoing Questions 
© 2014 EnterpriseDB Corporation. All rights reserved. 37
Moving Forward 
• When things change 
− Database load 
− Hardware 
− Software versions 
− Business needs 
− User base grows 
And 
• At minimum, annually 
=> Reconsider all questions 
© 2014 EnterpriseDB Corporation. All rights reserved. 38
Summary and Useful Resources 
© 2014 EnterpriseDB Corporation. All rights reserved. 39
Summary 
• Preparation, Planning, and Postgres 
− Most problems occur after moving to production 
− Many times these problems were foreshadowed 
− Try to think of “what's next” as much as “what's now” 
• Communicate 
− Nothing exists in a vacuum 
− Seek input from other teams 
− Proactively “push” info to others 
• Evaluate, Adjust, and Repeat 
− Monitor all the things 
− Define your 'line in the sand' 
© 2014 EnterpriseDB Corporation. All rights reserved. 40
What You Can Do 
• Get the team ready for Postgres - Developer, DBA, Infrastructure 
• EDB Knowledge Base 
• Get Certified - http://www.enterprisedb.com/training 
• Follow the conversation: 
− #postgres on Twitter 
− Planet PostgreSQL, @planetpostgres , http://planet.postgresql.org 
• User groups and Meetups – almost all major cities 
− http://www.postgresql.org/community/user-groups/ 
− http://postgresql.meetup.com/ 
© 2014 EnterpriseDB Corporation. All rights reserved. 41
Architectural 
Health Check 
• Review of 
database, 
OS, env. 
settings 
• Guidance on 
tuning, 
backup, high 
availability 
strategies 
Kick Start 
• Training 
• Flex 
consulting 
• Developer 
subscription 
© 2014 EnterpriseDB Corporation. All rights reserved. 42 
Training and 
Certification 
• Flexible 
formats: 
on-demand, 
live virtual, 
on-site 
• Continuing 
education 
and Postgres 
certification 
Remote DBA 
Services 
• 24 x 7 
monitoring 
• Supplemental 
staff 
• Architectural 
health check 
• Access to 
Postgres 
expertise 
How We Can Help 
Whitepapers and Recorded Webinars 
http://www.enterprisedb.com/resources-community
To listen to the recording of this presentation, visit www.enterprisedb.com - click on 
the Resources tab – and view the list of On-Demand Webcasts. 
To learn more about EDB’s Subscription Options, please contact 
sales@enterprisedb.com 
© 2014 EnterpriseDB Corporation. All rights reserved. 43

More Related Content

What's hot (20)

Solution sap hana
Solution sap hana
希典 陈
 
Inter connect2016 yss1841-cloud-storage-options-v4
Inter connect2016 yss1841-cloud-storage-options-v4
Tony Pearson
 
Presentation atmos architecture overview
Presentation atmos architecture overview
xKinAnx
 
Storwize SVC presentation February 2017
Storwize SVC presentation February 2017
Joe Krotz
 
Production House reaps on Cost Savings with Tyrone Unified Storage.
Production House reaps on Cost Savings with Tyrone Unified Storage.
Sukhbir Singh
 
The Best Storage For V Mware Environments Customer Presentation Jul201
The Best Storage For V Mware Environments Customer Presentation Jul201
Michael Hudak
 
IBM FlashSystems A9000/R presentation
IBM FlashSystems A9000/R presentation
Joe Krotz
 
Provisioning server high_availability_considerations2
Provisioning server high_availability_considerations2
Nuno Alves
 
Spectrum Scale final
Spectrum Scale final
Joe Krotz
 
All Flash is not Equal: Tony Pearson contrasts IBM FlashSystem with Solid-Sta...
All Flash is not Equal: Tony Pearson contrasts IBM FlashSystem with Solid-Sta...
Tony Pearson
 
Emc vplex deep dive
Emc vplex deep dive
solarisyougood
 
HP & OCSL Webinar StoreOnce 28th Of August 2013
HP & OCSL Webinar StoreOnce 28th Of August 2013
OCSL
 
S ss0885 spectrum-scale-elastic-edge2015-v5
S ss0885 spectrum-scale-elastic-edge2015-v5
Tony Pearson
 
Data core overview - haluk-final
Data core overview - haluk-final
Haluk Ulubay
 
S016579 data-optimization-spectrum-control-brazil-v2
S016579 data-optimization-spectrum-control-brazil-v2
Tony Pearson
 
S de0882 new-generation-tiering-edge2015-v3
S de0882 new-generation-tiering-edge2015-v3
Tony Pearson
 
Postgres in production.2014
Postgres in production.2014
EDB
 
Virtual SAN vs Good Old SANs: Can't they just get along?
Virtual SAN vs Good Old SANs: Can't they just get along?
DataCore Software
 
Understanding IBM i HA Options
Understanding IBM i HA Options
Precisely
 
IBM Storage at SAPPHIRE 2017
IBM Storage at SAPPHIRE 2017
Paula Koziol
 
Solution sap hana
Solution sap hana
希典 陈
 
Inter connect2016 yss1841-cloud-storage-options-v4
Inter connect2016 yss1841-cloud-storage-options-v4
Tony Pearson
 
Presentation atmos architecture overview
Presentation atmos architecture overview
xKinAnx
 
Storwize SVC presentation February 2017
Storwize SVC presentation February 2017
Joe Krotz
 
Production House reaps on Cost Savings with Tyrone Unified Storage.
Production House reaps on Cost Savings with Tyrone Unified Storage.
Sukhbir Singh
 
The Best Storage For V Mware Environments Customer Presentation Jul201
The Best Storage For V Mware Environments Customer Presentation Jul201
Michael Hudak
 
IBM FlashSystems A9000/R presentation
IBM FlashSystems A9000/R presentation
Joe Krotz
 
Provisioning server high_availability_considerations2
Provisioning server high_availability_considerations2
Nuno Alves
 
Spectrum Scale final
Spectrum Scale final
Joe Krotz
 
All Flash is not Equal: Tony Pearson contrasts IBM FlashSystem with Solid-Sta...
All Flash is not Equal: Tony Pearson contrasts IBM FlashSystem with Solid-Sta...
Tony Pearson
 
HP & OCSL Webinar StoreOnce 28th Of August 2013
HP & OCSL Webinar StoreOnce 28th Of August 2013
OCSL
 
S ss0885 spectrum-scale-elastic-edge2015-v5
S ss0885 spectrum-scale-elastic-edge2015-v5
Tony Pearson
 
Data core overview - haluk-final
Data core overview - haluk-final
Haluk Ulubay
 
S016579 data-optimization-spectrum-control-brazil-v2
S016579 data-optimization-spectrum-control-brazil-v2
Tony Pearson
 
S de0882 new-generation-tiering-edge2015-v3
S de0882 new-generation-tiering-edge2015-v3
Tony Pearson
 
Postgres in production.2014
Postgres in production.2014
EDB
 
Virtual SAN vs Good Old SANs: Can't they just get along?
Virtual SAN vs Good Old SANs: Can't they just get along?
DataCore Software
 
Understanding IBM i HA Options
Understanding IBM i HA Options
Precisely
 
IBM Storage at SAPPHIRE 2017
IBM Storage at SAPPHIRE 2017
Paula Koziol
 

Similar to Top10 list planningpostgresdeployment.2014 (20)

Top 10 Tips for an Effective Postgres Deployment
Top 10 Tips for an Effective Postgres Deployment
EDB
 
Tales from the Postgres Front - and What We Can Learn
Tales from the Postgres Front - and What We Can Learn
EDB
 
Postgres in Production - Best Practices 2014
Postgres in Production - Best Practices 2014
EDB
 
Optimizing Open Source for Greater Database Savings & Control
Optimizing Open Source for Greater Database Savings & Control
EDB
 
Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA
EDB
 
10/ EnterpriseDB @ OPEN'16
10/ EnterpriseDB @ OPEN'16
Kangaroot
 
Best Practices for a Complete Postgres Enterprise Architecture Setup
Best Practices for a Complete Postgres Enterprise Architecture Setup
EDB
 
Postgres for the Future
Postgres for the Future
EDB
 
PostgreSQL worst practices, version FOSDEM PGDay 2017 by Ilya Kosmodemiansky
PostgreSQL worst practices, version FOSDEM PGDay 2017 by Ilya Kosmodemiansky
PostgreSQL-Consulting
 
Reducing Database Pain & Costs with Postgres
Reducing Database Pain & Costs with Postgres
EDB
 
Transform your DBMS to drive engagement innovation with Big Data
Transform your DBMS to drive engagement innovation with Big Data
Ashnikbiz
 
Business Continuity Considerations for a More Reliable Postgres Environment
Business Continuity Considerations for a More Reliable Postgres Environment
EDB
 
From Database to Strategy - Sandor Klein
From Database to Strategy - Sandor Klein
Kangaroot
 
Tapping into New Postgres Resources with Remote DBAs
Tapping into New Postgres Resources with Remote DBAs
EDB
 
PostgreSQL as a Strategic Tool
PostgreSQL as a Strategic Tool
EDB
 
EDB corporate prague_march_2015
EDB corporate prague_march_2015
Miloslav Hašek
 
Postgres survey podcast
Postgres survey podcast
inside-BigData.com
 
EDB Executive Presentation 101515
EDB Executive Presentation 101515
Pierre Fricke
 
EnterpriseDB Postgres Survey Results - 2013
EnterpriseDB Postgres Survey Results - 2013
EDB
 
EnterpriseDB's Best Practices for Postgres DBAs
EnterpriseDB's Best Practices for Postgres DBAs
EDB
 
Top 10 Tips for an Effective Postgres Deployment
Top 10 Tips for an Effective Postgres Deployment
EDB
 
Tales from the Postgres Front - and What We Can Learn
Tales from the Postgres Front - and What We Can Learn
EDB
 
Postgres in Production - Best Practices 2014
Postgres in Production - Best Practices 2014
EDB
 
Optimizing Open Source for Greater Database Savings & Control
Optimizing Open Source for Greater Database Savings & Control
EDB
 
Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA
EDB
 
10/ EnterpriseDB @ OPEN'16
10/ EnterpriseDB @ OPEN'16
Kangaroot
 
Best Practices for a Complete Postgres Enterprise Architecture Setup
Best Practices for a Complete Postgres Enterprise Architecture Setup
EDB
 
Postgres for the Future
Postgres for the Future
EDB
 
PostgreSQL worst practices, version FOSDEM PGDay 2017 by Ilya Kosmodemiansky
PostgreSQL worst practices, version FOSDEM PGDay 2017 by Ilya Kosmodemiansky
PostgreSQL-Consulting
 
Reducing Database Pain & Costs with Postgres
Reducing Database Pain & Costs with Postgres
EDB
 
Transform your DBMS to drive engagement innovation with Big Data
Transform your DBMS to drive engagement innovation with Big Data
Ashnikbiz
 
Business Continuity Considerations for a More Reliable Postgres Environment
Business Continuity Considerations for a More Reliable Postgres Environment
EDB
 
From Database to Strategy - Sandor Klein
From Database to Strategy - Sandor Klein
Kangaroot
 
Tapping into New Postgres Resources with Remote DBAs
Tapping into New Postgres Resources with Remote DBAs
EDB
 
PostgreSQL as a Strategic Tool
PostgreSQL as a Strategic Tool
EDB
 
EDB corporate prague_march_2015
EDB corporate prague_march_2015
Miloslav Hašek
 
EDB Executive Presentation 101515
EDB Executive Presentation 101515
Pierre Fricke
 
EnterpriseDB Postgres Survey Results - 2013
EnterpriseDB Postgres Survey Results - 2013
EDB
 
EnterpriseDB's Best Practices for Postgres DBAs
EnterpriseDB's Best Practices for Postgres DBAs
EDB
 
Ad

More from EDB (20)

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

Recently uploaded (20)

Edge-banding-machines-edgeteq-s-200-en-.pdf
Edge-banding-machines-edgeteq-s-200-en-.pdf
AmirStern2
 
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
Safe Software
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
Reducing Conflicts and Increasing Safety Along the Cycling Networks of East-F...
Reducing Conflicts and Increasing Safety Along the Cycling Networks of East-F...
Safe Software
 
Murdledescargadarkweb.pdfvolumen1 100 elementary
Murdledescargadarkweb.pdfvolumen1 100 elementary
JorgeSemperteguiMont
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Shashikant Jagtap
 
PyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent Integration
barqawicloud
 
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Safe Software
 
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
AmirStern2
 
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Alliance
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
Introduction to Typescript - GDG On Campus EUE
Introduction to Typescript - GDG On Campus EUE
Google Developer Group On Campus European Universities in Egypt
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
Enabling BIM / GIS integrations with Other Systems with FME
Enabling BIM / GIS integrations with Other Systems with FME
Safe Software
 
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
Edge AI and Vision Alliance
 
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Anish Kumar
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
Edge-banding-machines-edgeteq-s-200-en-.pdf
Edge-banding-machines-edgeteq-s-200-en-.pdf
AmirStern2
 
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
Safe Software
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
Reducing Conflicts and Increasing Safety Along the Cycling Networks of East-F...
Reducing Conflicts and Increasing Safety Along the Cycling Networks of East-F...
Safe Software
 
Murdledescargadarkweb.pdfvolumen1 100 elementary
Murdledescargadarkweb.pdfvolumen1 100 elementary
JorgeSemperteguiMont
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Agentic AI: Beyond the Buzz- LangGraph Studio V2
Shashikant Jagtap
 
PyData - Graph Theory for Multi-Agent Integration
PyData - Graph Theory for Multi-Agent Integration
barqawicloud
 
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Safe Software
 
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
cnc-drilling-dowel-inserting-machine-drillteq-d-510-english.pdf
AmirStern2
 
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Alliance
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
Enabling BIM / GIS integrations with Other Systems with FME
Enabling BIM / GIS integrations with Other Systems with FME
Safe Software
 
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
Edge AI and Vision Alliance
 
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
Your startup on AWS - How to architect and maintain a Lean and Mean account J...
angelo60207
 
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Scaling GenAI Inference From Prototype to Production: Real-World Lessons in S...
Anish Kumar
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 

Top10 list planningpostgresdeployment.2014

  • 1. The Top 10 List for Planning a Postgres Deployment To listen to the recording of this presentation, please visit www.enterprisedb.com - click on the Resources tab – and view the list of On-Demand Webcasts © 2014 EDB All rights reserved. 1
  • 2. Agenda • EnterpriseDB Overview • Preparation, Planning, and Postgres • Top 10 Questions to Ask • Ongoing Questions and Dealing with Change • Summary and Resources • Q&A © 2014 EnterpriseDB Corporation. All rights reserved. 2
  • 3. Brief EDB Overview © 2014 EnterpriseDB Corporation. All rights reserved. 3
  • 4. POSTGRES innovation Services & training © 2014 EnterpriseDB Corporation. All rights reserved. 4 ENTERPRISE reliability 24/7 support Enterprise-class features & tools Indemnification Product road-map Control Thousands of developers Fast development cycles Low cost No vendor lock-in Advanced features Enabling commercial adoption of Postgres
  • 5. Postgres Plus Advanced Server Postgres Plus Management Performance © 2014 EnterpriseDB Corporation. All rights reserved. 5 Cloud Database High Availability REMOTE DBA 24x7 SUPPORT PROFESSIONAL SERVICES TRAINING EDB Serves All Your Postgres Needs PostgreSQL Security
  • 6. EDB Customers EDB currently has over 2,500 total customers including 50 of the Fortune 500 and 98 of the Forbes Global 2000 © 2014 EnterpriseDB Corporation. All rights reserved. 6
  • 7. Gartner 2014 ODBMS Magic Quadrant © 2014 EnterpriseDB Corporation. All rights reserved. 7 Gartner Comments: • “EnterpriseDB is the primary contributor to the PostgreSQL Community” • “EnterpriseDB’s Postgres Plus Oracle compatibility is now more than sufficient to run both mission-critical and nonmission-critical applications” • “Infor, a major application platform independent software vendor, added EnterpriseDB as a DBMS platform choice” • “Reference customers continue to identify the compatibility with Oracle, the stability of the DBMS and the product support as strengths”
  • 8. Preparation, Planning, and Postgres © 2014 EnterpriseDB Corporation. All rights reserved. 8
  • 9. Deployment Planning ‘Timeline’ Hardware (Acquire and Configure) Application (Usage Pattern, Response Expectations) Availability Requirements Upgrades Recovery (Objectives and Continuity) © 2014 EnterpriseDB Corporation. All rights reserved. 9
  • 10. Why? When? • Why ask these questions? − Keep everyone on the same page − Not everyone knows what you know − Your answers might mean something unforeseen by others • When to ask these questions? − Early − Often © 2011 EnterpriseDB . All rights reserved. © 2014 EnterpriseDB Corporation. All rights reserved. 10
  • 11. Quick Poll Postgres Database Maturity Stage © 2014 EnterpriseDB Corporation. All rights reserved. 11
  • 12. Audience Quick Poll #1 • Question: What stage are you currently in with your Postgres project? • Answer choices: a. Evaluation or Proof of Concept b. Development – active development c. Deployment – planning for production or recently launched d. Maintenance © 2014 EnterpriseDB Corporation. All rights reserved. 12
  • 13. The Top 10 List © 2014 EnterpriseDB Corporation. All rights reserved. 13
  • 14. 10 Questions to Ask Yourself and Others 1. Where should I focus my money? 2. How should I partition the I/O? 3. What does my app want? 4. Can my app handle what the DB offers? 5. Highly available or highly recoverable? 6. Is ASYNC enough or do I need SYNC? 7. Cascaded replication or fanned? 8. How do I upgrade? 9. Why upgrade? 10. How much data can I afford to lose? © 2014 EnterpriseDB Corporation. All rights reserved. 14
  • 15. Hardware © 2014 EnterpriseDB Corporation. All rights reserved. 15
  • 16. 1. Acquiring Hardware – Where should I focus my money? • Where should I focus my money? − RAM − Max it out − ECC − I/O − Low latency − Battery backed − Local, not network − CPU − More cache == more better − Less CPUs, more cores − One 12-core CPU > Two 6-core CPU © 2014 EnterpriseDB Corporation. All rights reserved. 16
  • 17. 2. How Should I Partition the I/O ? © 2011 EnterpriseDB . All rights reserved. © 2014 EnterpriseDB Corporation. All rights reserved. 17 http://www.enterprisedb.com/ahc • $PGDATA/pg_xlog − SSDs − ext2 • $PGDATA/pg_log − syslog • $PGDATA/pg_stat_tmp − tmpfs • $PGDATA/base − zfs, ext4, xfs - YES − btrfs - not yet − ext3 - NO
  • 18. I/O Partitioning (cont.) • Tablespaces (you should be using them) − Group like objects into a tablespace of their own − Indexes − Reporting/historical tables − zfs, ext4, xfs − Indexes on SSD • Things to avoid − Hardware deduplication (just don't) − Hybrid SSD/HDD (use tablespaces instead) − NFS, GlusterFS, FUSE, remote* storage © 2014 EnterpriseDB Corporation. All rights reserved. 18
  • 19. File System and Storage Subsystem • Types of Storage Systems − Direct Attached Storage (DAS) − Storage Area Network (SAN) w. Fiber Channel − Storage Area Network (SAN) w. iSCSI − Network File System (NFS) • DAS: Fast and low latency • SAN: Fast, expensive (w. Fiber Channel), scalable, can include redundancy and smart file system operations • NFS: Not an optimal solution for Postgres © 2014 EnterpriseDB Corporation. All rights reserved. 19
  • 20. Your Application © 2014 EnterpriseDB Corporation. All rights reserved. 20
  • 21. 3. What Does My App Want? • A few long-running connections crunching lots of data? − large work_mem − Emphasize effective_cache over shared_buffers • Lots of 'quick hit' connections? − connection pooling − larger shared_buffers • More read? Or more write? − autovacuum aggressiveness − Checkpoint spreading © 2011 EnterpriseDB . All rights reserved. © 2014 EnterpriseDB Corporation. All rights reserved. 21
  • 22. 4. Can My App Handle what the DB Offers? • Can the app recover from a failed transaction? − During failover, for example • Can the app re-request if the answer isn't up-to-date? − Read-only slave, slightly behind the master • Can the app handle 'eventual consistency'? − Multi-master replication © 2011 EnterpriseDB . All rights reserved. © 2014 EnterpriseDB Corporation. All rights reserved. 22
  • 23. Availability © 2014 EnterpriseDB Corporation. All rights reserved. 23
  • 24. 5. High Availability or High Recoverability? • Highly available − Enterprise Failover Manager (EFM) − xDB • Highly recoverable − Warm standby − WAL archiving − PITR • Geographically durable − xDB − Cascaded Replication © 2011 EnterpriseDB . All rights reserved. © 2014 EnterpriseDB Corporation. All rights reserved. 24
  • 25. 6. Is ASYNC Enough or Do I Need SYNC? • ASYNC Replication − Default − Eventually consistent − May be 1+ transactions behind − Unlimited* number of ASYNC slaves • SYNC Replication − Atypical − Immediately consistent − Performance implications on the master − Only ever one SYNC slave © 2011 EnterpriseDB . All rights reserved. © 2014 EnterpriseDB Corporation. All rights reserved. 25
  • 26. 7. Cascaded or Fanned Replication? • Cascaded − Can survive death of the master − May introduce replication lag • Fanned − Does not survive death of the master − No additional replication lag • Both − No reason you can't mix-n-match © 2011 EnterpriseDB . All rights reserved. © 2014 EnterpriseDB Corporation. All rights reserved. 26 OR
  • 27. Upgrades © 2014 EnterpriseDB Corporation. All rights reserved. 27
  • 28. Quick Poll Upgrade Policies © 2014 EnterpriseDB Corporation. All rights reserved. 28
  • 29. Audience Quick Poll #2 • Question: What is your current upgrade policy? • Answer choices: a. Fully defined patch mgmt. policy w/ standing maintenance windows b. We apply security fixes only as needed c. We apply patches/upgrades whenever the mood strikes us d. We apply patches/upgrades when the vendor forces it e. Upgrades? © 2014 EnterpriseDB Corporation. All rights reserved. 29
  • 30. 8. How Do I Upgrade? • Postgres version number: xx.yy.zz − xx.yy = major version (8.4, 9.2, 9.3) − zz = minor version (9.1.14, 9.3.5) • Current version: − 9.3.x → 9.3.5 − 9.2.x → 9.2.9 • Major version changes − Not backwards compatible for stored data − Dump/load − pg_upgrade • Minor version changes − Replace the binaries, restart © 2014 EnterpriseDB Corporation. All rights reserved. 30
  • 31. How Do I Upgrade (cont.)? • Use replication ! • Upgrade the slave first − If a minor release upgrade, streaming replication − If a major release upgrade, logical replication • Failover to the upgraded slave • Upgrade the old master • Slave the old master to the new master • Fail back (optional) © 2014 EnterpriseDB Corporation. All rights reserved. 31
  • 32. 9. Why Upgrade? • Postgres minor releases fix only: − Frequently-encountered bugs − Security bugs − Data corruption bugs • As such, you are more at risk by not upgrading • Major versions are supported for 5 years which lessens the upgrade burden significantly © 2014 EnterpriseDB Corporation. All rights reserved. 32
  • 33. Recovery © 2014 EnterpriseDB Corporation. All rights reserved. 33
  • 34. 10. How Much Data Can I Afford to Lose? • What’s the loss to the business per minute of the app being down? − High cost == design for high availability − Think multi-master replication − Think offsite replication − Think automatic failover • What’s the loss to the business for every transaction you can’t recover? − High cost == design for high recoverability − Think SYNC replication − Think continuous WAL archiving − Think outside the db (zfs snapshots, RHCS, Veritas clustering) © 2014 EnterpriseDB Corporation. All rights reserved. 34
  • 35. Why Do I Need Backup and Recovery? • Backup and Recovery Strategies protect you in case of: − Catastrophic device failure − Site failure − Maintenance − Operator error − Compliance − Data corruption • Consider − Allowable PITR timeframe − Data retention policy − Test, test, test − Periodic backup validation © 2014 EnterpriseDB Corporation. All rights reserved. 35
  • 36. What Are My Recovery Options? • Various recovery options are available: − PITR − BART / Barman − pg_basebackup − pg_dump • How long does restoration take? • Do I know how to restore using my chosen method? © 2014 EnterpriseDB Corporation. All rights reserved. 36
  • 37. Dealing with Change – Ongoing Questions © 2014 EnterpriseDB Corporation. All rights reserved. 37
  • 38. Moving Forward • When things change − Database load − Hardware − Software versions − Business needs − User base grows And • At minimum, annually => Reconsider all questions © 2014 EnterpriseDB Corporation. All rights reserved. 38
  • 39. Summary and Useful Resources © 2014 EnterpriseDB Corporation. All rights reserved. 39
  • 40. Summary • Preparation, Planning, and Postgres − Most problems occur after moving to production − Many times these problems were foreshadowed − Try to think of “what's next” as much as “what's now” • Communicate − Nothing exists in a vacuum − Seek input from other teams − Proactively “push” info to others • Evaluate, Adjust, and Repeat − Monitor all the things − Define your 'line in the sand' © 2014 EnterpriseDB Corporation. All rights reserved. 40
  • 41. What You Can Do • Get the team ready for Postgres - Developer, DBA, Infrastructure • EDB Knowledge Base • Get Certified - http://www.enterprisedb.com/training • Follow the conversation: − #postgres on Twitter − Planet PostgreSQL, @planetpostgres , http://planet.postgresql.org • User groups and Meetups – almost all major cities − http://www.postgresql.org/community/user-groups/ − http://postgresql.meetup.com/ © 2014 EnterpriseDB Corporation. All rights reserved. 41
  • 42. Architectural Health Check • Review of database, OS, env. settings • Guidance on tuning, backup, high availability strategies Kick Start • Training • Flex consulting • Developer subscription © 2014 EnterpriseDB Corporation. All rights reserved. 42 Training and Certification • Flexible formats: on-demand, live virtual, on-site • Continuing education and Postgres certification Remote DBA Services • 24 x 7 monitoring • Supplemental staff • Architectural health check • Access to Postgres expertise How We Can Help Whitepapers and Recorded Webinars http://www.enterprisedb.com/resources-community
  • 43. To listen to the recording of this presentation, visit www.enterprisedb.com - click on the Resources tab – and view the list of On-Demand Webcasts. To learn more about EDB’s Subscription Options, please contact [email protected] © 2014 EnterpriseDB Corporation. All rights reserved. 43