SlideShare a Scribd company logo
Scaling with Postgres Robert Treat Percona Performance Conference 2009
Disclaimer Every “really big” site uses custom solutions. Don’t expect to get there using out of the box software. You don’t have to reinvent the wheel. But you may have to build the car.
Who am I ? OmniTI TB+ databases top 100 websites Oracle/MySQL/Postgres Not necessarily in that order :-) P.S. We’re Hiring
Scaling Databases 101 Implementation Tuning Optimize Queries Optimize Schema Throw Hardware At It Caching Replication Federation
Implementation Normalization Foreign Keys Relational Modeling Mostly Irrelevant
Implementation Monitoring nagios, munin, etc..  check_postgres Trending cacti, noit watch your hardware!
Tuning Get the Basics Right http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server Someday Xlogs, Checkpoints Vacuum Strategy Costs and other Minutia
Optimize Queries explain explain analyze explain analyze verbose
Optimize Queries writing queries tuned to your databases planner
Optimize Schema indexing partial, functional fix data types add/remove tables de-normalize (maybe)
Why is this important? Postgres is good at scaling vertically Flawed database schema hides the real problems
Why is this unimportant? Optimizing is often a trade off of time vs. money It is not an ultimate solution
Throw Hardware At It Find your bottlenecks Memory / RAM CPU  I/O, DISKS  usually the biggest problem
Can you take me higher? 32 Cores 128 GB+ RAM Spindles out the wazoo tablespaces
Caching Internal materialized views External memcached, et al.  static files
Oh, the places you’ll go Nothing Fancy or Exciting Solid Engineering Understanding needs / limits Top 1000+ Website
Replication Ignore the hype Triggers won’t destroy your site Scripting solves a lot of config issues Telling your DBA to do his !@#$ job solves config issues too Add-on is FUD for Modular
Replication Truth in advertising Oracle does it better MySQL does it simpler
Replication Scaling Reads Master, many slaves Slony, Londiste, Bucardo, PGPoolII Scaling Writes Mostly impossible Bucardo, PGPoolII
What is Federation? A process for eliminating performance and/or scaleability as a requirement for your database
Federation MySQL software has no federation advantage MySQL community has large federation advantage
Federation Things to consider Horizontal Partitioning  Application Based Partitioning BASE  golconde, gearman
El Fin www.xzilla.net www.omniti.com www.postgresql.us
Postgres BOF Tonight @ 7:30 PM Location @ Camino Real
Ad

Recommended

Past, Present, and Pachyderm - All Things Open - 2013
Past, Present, and Pachyderm - All Things Open - 2013
Robert Treat
 
Postgres 9.4 First Look
Postgres 9.4 First Look
Robert Treat
 
Hypertable Berlin Buzzwords
Hypertable Berlin Buzzwords
hypertable
 
Dawarehouse como servicio en azure (sqldw)
Dawarehouse como servicio en azure (sqldw)
Enrique Catala Bañuls
 
OSDC 2014: Sebastian Harl - SysDB the system management and inventory collect...
OSDC 2014: Sebastian Harl - SysDB the system management and inventory collect...
NETWAYS
 
Jan 2015 - Cassandra101 Manchester Meetup
Jan 2015 - Cassandra101 Manchester Meetup
Christopher Batey
 
Microsoft SQL Server - Benchmark Presentation
Microsoft SQL Server - Benchmark Presentation
Microsoft Private Cloud
 
Kevin Kempter PostgreSQL Backup and Recovery Methods @ Postgres Open
Kevin Kempter PostgreSQL Backup and Recovery Methods @ Postgres Open
PostgresOpen
 
Propelling IoT Innovation with Predictive Analytics
Propelling IoT Innovation with Predictive Analytics
SingleStore
 
Quick reference for curl
Quick reference for curl
Rajkumar Asohan, PMP
 
ClickHouse Defense Against the Dark Arts - Intro to Security and Privacy
ClickHouse Defense Against the Dark Arts - Intro to Security and Privacy
Altinity Ltd
 
Scylla Summit 2018: Scylla 3.0 and Beyond
Scylla Summit 2018: Scylla 3.0 and Beyond
ScyllaDB
 
Supercharge your Analytics with ClickHouse, v.2. By Vadim Tkachenko
Supercharge your Analytics with ClickHouse, v.2. By Vadim Tkachenko
Altinity Ltd
 
ClickHouse on Kubernetes! By Robert Hodges, Altinity CEO
ClickHouse on Kubernetes! By Robert Hodges, Altinity CEO
Altinity Ltd
 
ClickHouse Introduction, by Alexander Zaitsev, Altinity CTO
ClickHouse Introduction, by Alexander Zaitsev, Altinity CTO
Altinity Ltd
 
Hadoop 101 - Big Data Technology
Hadoop 101 - Big Data Technology
Firman Gautama
 
PGConf.ASIA 2019 Bali - Tune Your LInux Box, Not Just PostgreSQL - Ibrar Ahmed
PGConf.ASIA 2019 Bali - Tune Your LInux Box, Not Just PostgreSQL - Ibrar Ahmed
Equnix Business Solutions
 
Sql user group
Sql user group
Stefan Bauer
 
Analyzing MySQL Logs with ClickHouse, by Peter Zaitsev
Analyzing MySQL Logs with ClickHouse, by Peter Zaitsev
Altinity Ltd
 
Database Scalability Patterns
Database Scalability Patterns
Robert Treat
 
Intro to pl/PHP Oscon2007
Intro to pl/PHP Oscon2007
Robert Treat
 
A Guide To PostgreSQL 9.0
A Guide To PostgreSQL 9.0
Robert Treat
 
What Ops Can Learn From Design
What Ops Can Learn From Design
Robert Treat
 
Less Alarming Alerts - SRECon 2016
Less Alarming Alerts - SRECon 2016
Robert Treat
 
Managing Databases In A DevOps Environment 2016
Managing Databases In A DevOps Environment 2016
Robert Treat
 
Advanced WAL File Management With OmniPITR
Advanced WAL File Management With OmniPITR
Robert Treat
 
Think_your_Postgres_backups_and_recovery_are_safe_lets_talk.pptx
Think_your_Postgres_backups_and_recovery_are_safe_lets_talk.pptx
Payal Singh
 
Out of the box replication in postgres 9.4
Out of the box replication in postgres 9.4
Denish Patel
 
PostgreSQL 9.6 Performance-Scalability Improvements
PostgreSQL 9.6 Performance-Scalability Improvements
PGConf APAC
 
Backups
Backups
Payal Singh
 

More Related Content

What's hot (11)

Propelling IoT Innovation with Predictive Analytics
Propelling IoT Innovation with Predictive Analytics
SingleStore
 
Quick reference for curl
Quick reference for curl
Rajkumar Asohan, PMP
 
ClickHouse Defense Against the Dark Arts - Intro to Security and Privacy
ClickHouse Defense Against the Dark Arts - Intro to Security and Privacy
Altinity Ltd
 
Scylla Summit 2018: Scylla 3.0 and Beyond
Scylla Summit 2018: Scylla 3.0 and Beyond
ScyllaDB
 
Supercharge your Analytics with ClickHouse, v.2. By Vadim Tkachenko
Supercharge your Analytics with ClickHouse, v.2. By Vadim Tkachenko
Altinity Ltd
 
ClickHouse on Kubernetes! By Robert Hodges, Altinity CEO
ClickHouse on Kubernetes! By Robert Hodges, Altinity CEO
Altinity Ltd
 
ClickHouse Introduction, by Alexander Zaitsev, Altinity CTO
ClickHouse Introduction, by Alexander Zaitsev, Altinity CTO
Altinity Ltd
 
Hadoop 101 - Big Data Technology
Hadoop 101 - Big Data Technology
Firman Gautama
 
PGConf.ASIA 2019 Bali - Tune Your LInux Box, Not Just PostgreSQL - Ibrar Ahmed
PGConf.ASIA 2019 Bali - Tune Your LInux Box, Not Just PostgreSQL - Ibrar Ahmed
Equnix Business Solutions
 
Sql user group
Sql user group
Stefan Bauer
 
Analyzing MySQL Logs with ClickHouse, by Peter Zaitsev
Analyzing MySQL Logs with ClickHouse, by Peter Zaitsev
Altinity Ltd
 
Propelling IoT Innovation with Predictive Analytics
Propelling IoT Innovation with Predictive Analytics
SingleStore
 
ClickHouse Defense Against the Dark Arts - Intro to Security and Privacy
ClickHouse Defense Against the Dark Arts - Intro to Security and Privacy
Altinity Ltd
 
Scylla Summit 2018: Scylla 3.0 and Beyond
Scylla Summit 2018: Scylla 3.0 and Beyond
ScyllaDB
 
Supercharge your Analytics with ClickHouse, v.2. By Vadim Tkachenko
Supercharge your Analytics with ClickHouse, v.2. By Vadim Tkachenko
Altinity Ltd
 
ClickHouse on Kubernetes! By Robert Hodges, Altinity CEO
ClickHouse on Kubernetes! By Robert Hodges, Altinity CEO
Altinity Ltd
 
ClickHouse Introduction, by Alexander Zaitsev, Altinity CTO
ClickHouse Introduction, by Alexander Zaitsev, Altinity CTO
Altinity Ltd
 
Hadoop 101 - Big Data Technology
Hadoop 101 - Big Data Technology
Firman Gautama
 
PGConf.ASIA 2019 Bali - Tune Your LInux Box, Not Just PostgreSQL - Ibrar Ahmed
PGConf.ASIA 2019 Bali - Tune Your LInux Box, Not Just PostgreSQL - Ibrar Ahmed
Equnix Business Solutions
 
Analyzing MySQL Logs with ClickHouse, by Peter Zaitsev
Analyzing MySQL Logs with ClickHouse, by Peter Zaitsev
Altinity Ltd
 

Viewers also liked (11)

Database Scalability Patterns
Database Scalability Patterns
Robert Treat
 
Intro to pl/PHP Oscon2007
Intro to pl/PHP Oscon2007
Robert Treat
 
A Guide To PostgreSQL 9.0
A Guide To PostgreSQL 9.0
Robert Treat
 
What Ops Can Learn From Design
What Ops Can Learn From Design
Robert Treat
 
Less Alarming Alerts - SRECon 2016
Less Alarming Alerts - SRECon 2016
Robert Treat
 
Managing Databases In A DevOps Environment 2016
Managing Databases In A DevOps Environment 2016
Robert Treat
 
Advanced WAL File Management With OmniPITR
Advanced WAL File Management With OmniPITR
Robert Treat
 
Think_your_Postgres_backups_and_recovery_are_safe_lets_talk.pptx
Think_your_Postgres_backups_and_recovery_are_safe_lets_talk.pptx
Payal Singh
 
Out of the box replication in postgres 9.4
Out of the box replication in postgres 9.4
Denish Patel
 
PostgreSQL 9.6 Performance-Scalability Improvements
PostgreSQL 9.6 Performance-Scalability Improvements
PGConf APAC
 
Backups
Backups
Payal Singh
 
Database Scalability Patterns
Database Scalability Patterns
Robert Treat
 
Intro to pl/PHP Oscon2007
Intro to pl/PHP Oscon2007
Robert Treat
 
A Guide To PostgreSQL 9.0
A Guide To PostgreSQL 9.0
Robert Treat
 
What Ops Can Learn From Design
What Ops Can Learn From Design
Robert Treat
 
Less Alarming Alerts - SRECon 2016
Less Alarming Alerts - SRECon 2016
Robert Treat
 
Managing Databases In A DevOps Environment 2016
Managing Databases In A DevOps Environment 2016
Robert Treat
 
Advanced WAL File Management With OmniPITR
Advanced WAL File Management With OmniPITR
Robert Treat
 
Think_your_Postgres_backups_and_recovery_are_safe_lets_talk.pptx
Think_your_Postgres_backups_and_recovery_are_safe_lets_talk.pptx
Payal Singh
 
Out of the box replication in postgres 9.4
Out of the box replication in postgres 9.4
Denish Patel
 
PostgreSQL 9.6 Performance-Scalability Improvements
PostgreSQL 9.6 Performance-Scalability Improvements
PGConf APAC
 
Ad

Similar to Scaling With Postgres (20)

5 Steps to PostgreSQL Performance
5 Steps to PostgreSQL Performance
Command Prompt., Inc
 
Five steps perform_2009 (1)
Five steps perform_2009 (1)
PostgreSQL Experts, Inc.
 
Performance Whack A Mole
Performance Whack A Mole
oscon2007
 
OSDC 2016 - Tuning Linux for your Database by Colin Charles
OSDC 2016 - Tuning Linux for your Database by Colin Charles
NETWAYS
 
Performance Whack-a-Mole Tutorial (pgCon 2009)
Performance Whack-a-Mole Tutorial (pgCon 2009)
PostgreSQL Experts, Inc.
 
Getting 100B Metrics to Disk
Getting 100B Metrics to Disk
jthurman42
 
Evolution of DBA in the Cloud Era
Evolution of DBA in the Cloud Era
Mydbops
 
Building High Performance MySql Query Systems And Analytic Applications
Building High Performance MySql Query Systems And Analytic Applications
guest40cda0b
 
Building High Performance MySQL Query Systems and Analytic Applications
Building High Performance MySQL Query Systems and Analytic Applications
Calpont
 
20141011 my sql clusterv01pptx
20141011 my sql clusterv01pptx
Ivan Ma
 
Quick guide to PostgreSQL Performance Tuning
Quick guide to PostgreSQL Performance Tuning
Ron Morgan
 
Creating PostgreSQL-as-a-Service at Scale
Creating PostgreSQL-as-a-Service at Scale
Sean Chittenden
 
Tuning Linux for your database FLOSSUK 2016
Tuning Linux for your database FLOSSUK 2016
Colin Charles
 
High Performance and Scalability Database Design
High Performance and Scalability Database Design
Tung Ns
 
Performance Whackamole (short version)
Performance Whackamole (short version)
PostgreSQL Experts, Inc.
 
Fusion-io and MySQL at Craigslist
Fusion-io and MySQL at Craigslist
Jeremy Zawodny
 
Database Performance at Scale Masterclass: Workload Characteristics by Felipe...
Database Performance at Scale Masterclass: Workload Characteristics by Felipe...
ScyllaDB
 
The Accidental DBA
The Accidental DBA
PostgreSQL Experts, Inc.
 
Managing MySQL Scale Through Consolidation
Managing MySQL Scale Through Consolidation
NetApp
 
Transforming the Database: Critical Innovations for Performance at Scale
Transforming the Database: Critical Innovations for Performance at Scale
ScyllaDB
 
Performance Whack A Mole
Performance Whack A Mole
oscon2007
 
OSDC 2016 - Tuning Linux for your Database by Colin Charles
OSDC 2016 - Tuning Linux for your Database by Colin Charles
NETWAYS
 
Performance Whack-a-Mole Tutorial (pgCon 2009)
Performance Whack-a-Mole Tutorial (pgCon 2009)
PostgreSQL Experts, Inc.
 
Getting 100B Metrics to Disk
Getting 100B Metrics to Disk
jthurman42
 
Evolution of DBA in the Cloud Era
Evolution of DBA in the Cloud Era
Mydbops
 
Building High Performance MySql Query Systems And Analytic Applications
Building High Performance MySql Query Systems And Analytic Applications
guest40cda0b
 
Building High Performance MySQL Query Systems and Analytic Applications
Building High Performance MySQL Query Systems and Analytic Applications
Calpont
 
20141011 my sql clusterv01pptx
20141011 my sql clusterv01pptx
Ivan Ma
 
Quick guide to PostgreSQL Performance Tuning
Quick guide to PostgreSQL Performance Tuning
Ron Morgan
 
Creating PostgreSQL-as-a-Service at Scale
Creating PostgreSQL-as-a-Service at Scale
Sean Chittenden
 
Tuning Linux for your database FLOSSUK 2016
Tuning Linux for your database FLOSSUK 2016
Colin Charles
 
High Performance and Scalability Database Design
High Performance and Scalability Database Design
Tung Ns
 
Fusion-io and MySQL at Craigslist
Fusion-io and MySQL at Craigslist
Jeremy Zawodny
 
Database Performance at Scale Masterclass: Workload Characteristics by Felipe...
Database Performance at Scale Masterclass: Workload Characteristics by Felipe...
ScyllaDB
 
Managing MySQL Scale Through Consolidation
Managing MySQL Scale Through Consolidation
NetApp
 
Transforming the Database: Critical Innovations for Performance at Scale
Transforming the Database: Critical Innovations for Performance at Scale
ScyllaDB
 
Ad

More from Robert Treat (18)

Advanced Int->Bigint Conversions
Advanced Int->Bigint Conversions
Robert Treat
 
Explaining Explain
Explaining Explain
Robert Treat
 
the-lost-art-of-plpgsql
the-lost-art-of-plpgsql
Robert Treat
 
Managing Chaos In Production: Testing vs Monitoring
Managing Chaos In Production: Testing vs Monitoring
Robert Treat
 
Less Alarming Alerts!
Less Alarming Alerts!
Robert Treat
 
Big Bad "Upgraded" Postgres
Big Bad "Upgraded" Postgres
Robert Treat
 
Managing Databases In A DevOps Environment
Managing Databases In A DevOps Environment
Robert Treat
 
The Essential PostgreSQL.conf
The Essential PostgreSQL.conf
Robert Treat
 
Pro Postgres 9
Pro Postgres 9
Robert Treat
 
Scaling with Postgres (Highload++ 2010)
Scaling with Postgres (Highload++ 2010)
Robert Treat
 
Intro to Postgres 9 Tutorial
Intro to Postgres 9 Tutorial
Robert Treat
 
Check Please!
Check Please!
Robert Treat
 
Intro to Postgres 8.4 Tutorial
Intro to Postgres 8.4 Tutorial
Robert Treat
 
The Essential postgresql.conf
The Essential postgresql.conf
Robert Treat
 
PostgreSQL Partitioning, PGCon 2007
PostgreSQL Partitioning, PGCon 2007
Robert Treat
 
Pro PostgreSQL, OSCon 2008
Pro PostgreSQL, OSCon 2008
Robert Treat
 
Database Anti Patterns
Database Anti Patterns
Robert Treat
 
Pro PostgreSQL
Pro PostgreSQL
Robert Treat
 
Advanced Int->Bigint Conversions
Advanced Int->Bigint Conversions
Robert Treat
 
Explaining Explain
Explaining Explain
Robert Treat
 
the-lost-art-of-plpgsql
the-lost-art-of-plpgsql
Robert Treat
 
Managing Chaos In Production: Testing vs Monitoring
Managing Chaos In Production: Testing vs Monitoring
Robert Treat
 
Less Alarming Alerts!
Less Alarming Alerts!
Robert Treat
 
Big Bad "Upgraded" Postgres
Big Bad "Upgraded" Postgres
Robert Treat
 
Managing Databases In A DevOps Environment
Managing Databases In A DevOps Environment
Robert Treat
 
The Essential PostgreSQL.conf
The Essential PostgreSQL.conf
Robert Treat
 
Scaling with Postgres (Highload++ 2010)
Scaling with Postgres (Highload++ 2010)
Robert Treat
 
Intro to Postgres 9 Tutorial
Intro to Postgres 9 Tutorial
Robert Treat
 
Intro to Postgres 8.4 Tutorial
Intro to Postgres 8.4 Tutorial
Robert Treat
 
The Essential postgresql.conf
The Essential postgresql.conf
Robert Treat
 
PostgreSQL Partitioning, PGCon 2007
PostgreSQL Partitioning, PGCon 2007
Robert Treat
 
Pro PostgreSQL, OSCon 2008
Pro PostgreSQL, OSCon 2008
Robert Treat
 
Database Anti Patterns
Database Anti Patterns
Robert Treat
 

Recently uploaded (20)

"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Josef Weingand
 
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
 
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
 
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
 
PyCon SG 25 - Firecracker Made Easy with Python.pdf
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
 
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
Connecting Data and Intelligence: The Role of FME in Machine Learning
Connecting Data and Intelligence: The Role of FME in Machine Learning
Safe Software
 
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
 
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Josef Weingand
 
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
 
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
 
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
 
PyCon SG 25 - Firecracker Made Easy with Python.pdf
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
 
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
Connecting Data and Intelligence: The Role of FME in Machine Learning
Connecting Data and Intelligence: The Role of FME in Machine Learning
Safe Software
 
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
 
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 

Scaling With Postgres

  • 1. Scaling with Postgres Robert Treat Percona Performance Conference 2009
  • 2. Disclaimer Every “really big” site uses custom solutions. Don’t expect to get there using out of the box software. You don’t have to reinvent the wheel. But you may have to build the car.
  • 3. Who am I ? OmniTI TB+ databases top 100 websites Oracle/MySQL/Postgres Not necessarily in that order :-) P.S. We’re Hiring
  • 4. Scaling Databases 101 Implementation Tuning Optimize Queries Optimize Schema Throw Hardware At It Caching Replication Federation
  • 5. Implementation Normalization Foreign Keys Relational Modeling Mostly Irrelevant
  • 6. Implementation Monitoring nagios, munin, etc.. check_postgres Trending cacti, noit watch your hardware!
  • 7. Tuning Get the Basics Right http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server Someday Xlogs, Checkpoints Vacuum Strategy Costs and other Minutia
  • 8. Optimize Queries explain explain analyze explain analyze verbose
  • 9. Optimize Queries writing queries tuned to your databases planner
  • 10. Optimize Schema indexing partial, functional fix data types add/remove tables de-normalize (maybe)
  • 11. Why is this important? Postgres is good at scaling vertically Flawed database schema hides the real problems
  • 12. Why is this unimportant? Optimizing is often a trade off of time vs. money It is not an ultimate solution
  • 13. Throw Hardware At It Find your bottlenecks Memory / RAM CPU I/O, DISKS usually the biggest problem
  • 14. Can you take me higher? 32 Cores 128 GB+ RAM Spindles out the wazoo tablespaces
  • 15. Caching Internal materialized views External memcached, et al. static files
  • 16. Oh, the places you’ll go Nothing Fancy or Exciting Solid Engineering Understanding needs / limits Top 1000+ Website
  • 17. Replication Ignore the hype Triggers won’t destroy your site Scripting solves a lot of config issues Telling your DBA to do his !@#$ job solves config issues too Add-on is FUD for Modular
  • 18. Replication Truth in advertising Oracle does it better MySQL does it simpler
  • 19. Replication Scaling Reads Master, many slaves Slony, Londiste, Bucardo, PGPoolII Scaling Writes Mostly impossible Bucardo, PGPoolII
  • 20. What is Federation? A process for eliminating performance and/or scaleability as a requirement for your database
  • 21. Federation MySQL software has no federation advantage MySQL community has large federation advantage
  • 22. Federation Things to consider Horizontal Partitioning Application Based Partitioning BASE golconde, gearman
  • 23. El Fin www.xzilla.net www.omniti.com www.postgresql.us
  • 24. Postgres BOF Tonight @ 7:30 PM Location @ Camino Real