SlideShare una empresa de Scribd logo
1 de 23
Check Please!
                  What your Postgres database wishes you would monitor




                                   / Presentation



Friday, May 21, 2010
Who am I?


                       •   Lead Database Operations at OmniTI

                           •   Database Consulting / Management

                       •   Postgres?

                           •   TB+ OLAP/DSS

                           •   multiple 1000+ tps OLTP

                           •   custom built, private label

                           •   long time user (6.5-9.x)

                               •   community member

                               •   major contributor




Friday, May 21, 2010
Check Yourself!




                       •   Basic Tuning Is Job #1

                           •   shared buffers, effective cache size, checkpoints

                       •   Resources

                           •   http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server

                           •   http://www.slideshare.net/xzilla/the-essential-postgresqlconf-presentation




Friday, May 21, 2010
Before You Wreck Yourself!




Friday, May 21, 2010
Before You Wreck Yourself!



            •          Monitoring

                  •      If a server crashes in the woods

                  •      Pain is a great motivator




Friday, May 21, 2010
Before You Wreck Yourself!




Friday, May 21, 2010
Before You Wreck Yourself!
                       •   Trending

                           •   Knowing what things look like when they’re good helps determine
                               when things are bad

                           •   You can often tell where you’re going by looking at where you came
                               from




Friday, May 21, 2010
Tools?




                       •   Tools cannot replace experience and discipline

                           •   But they can help you maintain that discipline

                       •   Popular tools

                           •   nagios / munin

                           •   cacti / mrtg

                           •   circonus.com / reconnoiter

                           •   { check_postgres }




Friday, May 21, 2010
Connections


   •      Hard limit on allowed connections




   •      Game Over



   •      Large numbers of concurrent
          users

   •      Internet facing systems
                                              - Paul RJ Muller, beached whale




Friday, May 21, 2010
Disk Space


   •      Data, clog, xlogs, log files




   •      Game Over

   •      (planning)




   •      Everybody


                                        - Squiggle, Overloaded?




Friday, May 21, 2010
WAL Files

   •      pg_xlog directory, transaction logs

   •      maintain database consistency



   •      excessive disk space

   •      excessive recovery time


   •      heavy write transactions

   •      pg start/stop backup (buggy systems)
                                                 - Jazzmasterson, Workspace 3.0 - Noguchi File




Friday, May 21, 2010
Size Matters

   •      more data == more disk space

   •      only grow if you should



   •      large tables, i/o issues

   •      unbounded growth?


   •      fast paced development

   •      everyone else (eventually)

                                         - elmada, Size Matters




Friday, May 21, 2010
Bloating

   •      mvcc leaves dead rows

   •      unused space in tables, indexes



   •      i/o issues

   •      disk space (eventually)


   •      heavy updates, data churn

   •      untuned systems

                                            - Joe Alterio, burpalurpa




Friday, May 21, 2010
Transactions

   •      every statement is in a transaction

   •      select/insert/update/deletes



   •      underlying effects

   •      load spikes


   •      OLTP Systems

   •      Logging/Internet Facing Systems

                                                - laurieofindy , Walmart on Black Friday 2009




Friday, May 21, 2010
All Stats

   •      pg_stat tables

   •      tables, indexes... scans, tuples



   •      underlying effects

   •      load spikes


   •      OLTP Systems

   •      Logging/Internet Facing Systems

                                             - Inju, Statistics for the Utterly Confused




Friday, May 21, 2010
Free Space Map

   •      Tracks unused space

   •      Keeps vacuum effective



   •      Table / Index Bloat




   •      Medium to Large Systems

   •      High Update / Data Churn DB
                                        - SkyTruth, Deepwater Horizon Oil Spill - RADARSAT-2, May 8, 2010




Friday, May 21, 2010
Autovacuum Max Freeze Age

   •      Ensures all tables get vacuumed

   •      Prevents XID wrap-around



   •      Heavy I/O

   •      Locking Issues


   •      High TPS / OLTP

   •      pg_dump

                                            - Joe Marinaro, Good Morning!




Friday, May 21, 2010
Long Running Queries

   •      postgres can’t freeze query plans

   •      pg_stat_activity



   •      Can cause issues for vacuum

   •      Uh, response time obligations


   •      active data collection

   •      developers write queries ;-)

                                              - _Tawcan, Spiral Out..keep going




Friday, May 21, 2010
Idle Transactions

   •      BEGIN; zzz...

   •      pg_stat_activity



   •      Can cause issues for vacuum

   •      Connections holding memory




   •      pretty much everyone


                                        - psd, Canadian Cashpoints, Bah!




Friday, May 21, 2010
Sequence limits

   •      sequences limited to 2 billion

   •      non-transactional




   •      Can break inserts




   •      Heavy insert (update?) systems


                                           - gavinzac, Rise and Fall in Donegal




Friday, May 21, 2010
Wrap-around


   •      Postgres must vacuum every table
          within 2 Billion transactions




   •      Catastrophic data loss




   •      pretty much everyone


                                             - Jurvetson, Wrapped Around the Axle




Friday, May 21, 2010
Settings


   •      postgresql.conf doesn’t always
          reflect reality




   •      temporary changes can lead
          to long term trouble




   •      pretty much everyone


                                           - denovich, P9220453.jpg




Friday, May 21, 2010
Thanks!




                       •   PGCon

                       •   PGCommunity

                       •   OmniTI

                       •   Want more?

                           •   xzilla@users.sourceforge.net, http://www.xzilla.net

                           •   @robtreat2

                           •   robert@omniti.com, http://www.omniti.com/is/hiring




Friday, May 21, 2010

Más contenido relacionado

Similar a Check Please!

ScaleCamp 2009 - Last.fm vs Xbox
ScaleCamp 2009 - Last.fm vs XboxScaleCamp 2009 - Last.fm vs Xbox
ScaleCamp 2009 - Last.fm vs Xboxdavidsingleton
 
Gaelyk - SpringOne2GX - 2010 - Guillaume Laforge
Gaelyk - SpringOne2GX - 2010 - Guillaume LaforgeGaelyk - SpringOne2GX - 2010 - Guillaume Laforge
Gaelyk - SpringOne2GX - 2010 - Guillaume LaforgeGuillaume Laforge
 
PyCon 2011 Scaling Disqus
PyCon 2011 Scaling DisqusPyCon 2011 Scaling Disqus
PyCon 2011 Scaling Disquszeeg
 
DFW WP Buddypress Presentation
DFW WP Buddypress PresentationDFW WP Buddypress Presentation
DFW WP Buddypress PresentationMichael Pratt
 
Odnoklassniki.ru Architecture
Odnoklassniki.ru ArchitectureOdnoklassniki.ru Architecture
Odnoklassniki.ru ArchitectureDmitry Buzdin
 
Playing between the clouds - Better Software 2010
Playing between the clouds - Better Software 2010Playing between the clouds - Better Software 2010
Playing between the clouds - Better Software 2010Stefano Linguerri
 
Eclipse Con 2010 PTP
Eclipse Con 2010 PTPEclipse Con 2010 PTP
Eclipse Con 2010 PTPgrwatson
 
PyData Texas 2015 Keynote
PyData Texas 2015 KeynotePyData Texas 2015 Keynote
PyData Texas 2015 KeynotePeter Wang
 
Availability, the Cloud and Everything
Availability, the Cloud and EverythingAvailability, the Cloud and Everything
Availability, the Cloud and Everythinglogicalstack
 
Cassandra Summit 2014: Diagnosing Problems in Production
Cassandra Summit 2014: Diagnosing Problems in ProductionCassandra Summit 2014: Diagnosing Problems in Production
Cassandra Summit 2014: Diagnosing Problems in ProductionDataStax Academy
 
Cassandra Summit 2014: Diagnosing Problems in Production
Cassandra Summit 2014: Diagnosing Problems in ProductionCassandra Summit 2014: Diagnosing Problems in Production
Cassandra Summit 2014: Diagnosing Problems in ProductionDataStax Academy
 
Groovy 1 7 Update, past, present, future - S2G Forum 2010
Groovy 1 7 Update, past, present, future - S2G Forum 2010Groovy 1 7 Update, past, present, future - S2G Forum 2010
Groovy 1 7 Update, past, present, future - S2G Forum 2010Guillaume Laforge
 
Database Management for 
Real Estate Professionals
Database Management for 
Real Estate ProfessionalsDatabase Management for 
Real Estate Professionals
Database Management for 
Real Estate ProfessionalsDoug Devitre
 
MongoDB is the new MySQL
MongoDB is the new MySQLMongoDB is the new MySQL
MongoDB is the new MySQLradamanthus
 
The Essential PostgreSQL.conf
The Essential PostgreSQL.confThe Essential PostgreSQL.conf
The Essential PostgreSQL.confRobert Treat
 
Dan node meetup_socket_talk
Dan node meetup_socket_talkDan node meetup_socket_talk
Dan node meetup_socket_talkIshi von Meier
 
Scaling webappswithrabbitmq
Scaling webappswithrabbitmqScaling webappswithrabbitmq
Scaling webappswithrabbitmqAlvaro Videla
 
Hotspot Garbage Collection - Tuning Guide
Hotspot Garbage Collection - Tuning GuideHotspot Garbage Collection - Tuning Guide
Hotspot Garbage Collection - Tuning GuidejClarity
 

Similar a Check Please! (20)

ScaleCamp 2009 - Last.fm vs Xbox
ScaleCamp 2009 - Last.fm vs XboxScaleCamp 2009 - Last.fm vs Xbox
ScaleCamp 2009 - Last.fm vs Xbox
 
Forward
ForwardForward
Forward
 
Gaelyk - SpringOne2GX - 2010 - Guillaume Laforge
Gaelyk - SpringOne2GX - 2010 - Guillaume LaforgeGaelyk - SpringOne2GX - 2010 - Guillaume Laforge
Gaelyk - SpringOne2GX - 2010 - Guillaume Laforge
 
PyCon 2011 Scaling Disqus
PyCon 2011 Scaling DisqusPyCon 2011 Scaling Disqus
PyCon 2011 Scaling Disqus
 
DFW WP Buddypress Presentation
DFW WP Buddypress PresentationDFW WP Buddypress Presentation
DFW WP Buddypress Presentation
 
Odnoklassniki.ru Architecture
Odnoklassniki.ru ArchitectureOdnoklassniki.ru Architecture
Odnoklassniki.ru Architecture
 
Playing between the clouds - Better Software 2010
Playing between the clouds - Better Software 2010Playing between the clouds - Better Software 2010
Playing between the clouds - Better Software 2010
 
Eclipse Con 2010 PTP
Eclipse Con 2010 PTPEclipse Con 2010 PTP
Eclipse Con 2010 PTP
 
Email Design 101
Email Design 101Email Design 101
Email Design 101
 
PyData Texas 2015 Keynote
PyData Texas 2015 KeynotePyData Texas 2015 Keynote
PyData Texas 2015 Keynote
 
Availability, the Cloud and Everything
Availability, the Cloud and EverythingAvailability, the Cloud and Everything
Availability, the Cloud and Everything
 
Cassandra Summit 2014: Diagnosing Problems in Production
Cassandra Summit 2014: Diagnosing Problems in ProductionCassandra Summit 2014: Diagnosing Problems in Production
Cassandra Summit 2014: Diagnosing Problems in Production
 
Cassandra Summit 2014: Diagnosing Problems in Production
Cassandra Summit 2014: Diagnosing Problems in ProductionCassandra Summit 2014: Diagnosing Problems in Production
Cassandra Summit 2014: Diagnosing Problems in Production
 
Groovy 1 7 Update, past, present, future - S2G Forum 2010
Groovy 1 7 Update, past, present, future - S2G Forum 2010Groovy 1 7 Update, past, present, future - S2G Forum 2010
Groovy 1 7 Update, past, present, future - S2G Forum 2010
 
Database Management for 
Real Estate Professionals
Database Management for 
Real Estate ProfessionalsDatabase Management for 
Real Estate Professionals
Database Management for 
Real Estate Professionals
 
MongoDB is the new MySQL
MongoDB is the new MySQLMongoDB is the new MySQL
MongoDB is the new MySQL
 
The Essential PostgreSQL.conf
The Essential PostgreSQL.confThe Essential PostgreSQL.conf
The Essential PostgreSQL.conf
 
Dan node meetup_socket_talk
Dan node meetup_socket_talkDan node meetup_socket_talk
Dan node meetup_socket_talk
 
Scaling webappswithrabbitmq
Scaling webappswithrabbitmqScaling webappswithrabbitmq
Scaling webappswithrabbitmq
 
Hotspot Garbage Collection - Tuning Guide
Hotspot Garbage Collection - Tuning GuideHotspot Garbage Collection - Tuning Guide
Hotspot Garbage Collection - Tuning Guide
 

Más de Robert Treat

Advanced Int->Bigint Conversions
Advanced Int->Bigint ConversionsAdvanced Int->Bigint Conversions
Advanced Int->Bigint ConversionsRobert Treat
 
Explaining Explain
Explaining ExplainExplaining Explain
Explaining ExplainRobert Treat
 
the-lost-art-of-plpgsql
the-lost-art-of-plpgsqlthe-lost-art-of-plpgsql
the-lost-art-of-plpgsqlRobert Treat
 
Managing Chaos In Production: Testing vs Monitoring
Managing Chaos In Production: Testing vs MonitoringManaging Chaos In Production: Testing vs Monitoring
Managing Chaos In Production: Testing vs MonitoringRobert Treat
 
Managing Databases In A DevOps Environment 2016
Managing Databases In A DevOps Environment 2016Managing Databases In A DevOps Environment 2016
Managing Databases In A DevOps Environment 2016Robert Treat
 
Less Alarming Alerts - SRECon 2016
Less Alarming Alerts - SRECon 2016 Less Alarming Alerts - SRECon 2016
Less Alarming Alerts - SRECon 2016 Robert Treat
 
What Ops Can Learn From Design
What Ops Can Learn From DesignWhat Ops Can Learn From Design
What Ops Can Learn From DesignRobert Treat
 
Postgres 9.4 First Look
Postgres 9.4 First LookPostgres 9.4 First Look
Postgres 9.4 First LookRobert Treat
 
Less Alarming Alerts!
Less Alarming Alerts!Less Alarming Alerts!
Less Alarming Alerts!Robert Treat
 
Past, Present, and Pachyderm - All Things Open - 2013
Past, Present, and Pachyderm - All Things Open - 2013Past, Present, and Pachyderm - All Things Open - 2013
Past, Present, and Pachyderm - All Things Open - 2013Robert Treat
 
Managing Databases In A DevOps Environment
Managing Databases In A DevOps EnvironmentManaging Databases In A DevOps Environment
Managing Databases In A DevOps EnvironmentRobert Treat
 
Advanced WAL File Management With OmniPITR
Advanced WAL File Management With OmniPITRAdvanced WAL File Management With OmniPITR
Advanced WAL File Management With OmniPITRRobert Treat
 
Scaling with Postgres (Highload++ 2010)
Scaling with Postgres (Highload++ 2010)Scaling with Postgres (Highload++ 2010)
Scaling with Postgres (Highload++ 2010)Robert Treat
 
Intro to Postgres 9 Tutorial
Intro to Postgres 9 TutorialIntro to Postgres 9 Tutorial
Intro to Postgres 9 TutorialRobert Treat
 
Database Scalability Patterns
Database Scalability PatternsDatabase Scalability Patterns
Database Scalability PatternsRobert Treat
 
A Guide To PostgreSQL 9.0
A Guide To PostgreSQL 9.0A Guide To PostgreSQL 9.0
A Guide To PostgreSQL 9.0Robert Treat
 
Scaling With Postgres
Scaling With PostgresScaling With Postgres
Scaling With PostgresRobert Treat
 
Intro to pl/PHP Oscon2007
Intro to pl/PHP Oscon2007Intro to pl/PHP Oscon2007
Intro to pl/PHP Oscon2007Robert Treat
 
The Essential postgresql.conf
The Essential postgresql.confThe Essential postgresql.conf
The Essential postgresql.confRobert Treat
 
PostgreSQL Partitioning, PGCon 2007
PostgreSQL Partitioning, PGCon 2007PostgreSQL Partitioning, PGCon 2007
PostgreSQL Partitioning, PGCon 2007Robert Treat
 

Más de Robert Treat (20)

Advanced Int->Bigint Conversions
Advanced Int->Bigint ConversionsAdvanced Int->Bigint Conversions
Advanced Int->Bigint Conversions
 
Explaining Explain
Explaining ExplainExplaining Explain
Explaining Explain
 
the-lost-art-of-plpgsql
the-lost-art-of-plpgsqlthe-lost-art-of-plpgsql
the-lost-art-of-plpgsql
 
Managing Chaos In Production: Testing vs Monitoring
Managing Chaos In Production: Testing vs MonitoringManaging Chaos In Production: Testing vs Monitoring
Managing Chaos In Production: Testing vs Monitoring
 
Managing Databases In A DevOps Environment 2016
Managing Databases In A DevOps Environment 2016Managing Databases In A DevOps Environment 2016
Managing Databases In A DevOps Environment 2016
 
Less Alarming Alerts - SRECon 2016
Less Alarming Alerts - SRECon 2016 Less Alarming Alerts - SRECon 2016
Less Alarming Alerts - SRECon 2016
 
What Ops Can Learn From Design
What Ops Can Learn From DesignWhat Ops Can Learn From Design
What Ops Can Learn From Design
 
Postgres 9.4 First Look
Postgres 9.4 First LookPostgres 9.4 First Look
Postgres 9.4 First Look
 
Less Alarming Alerts!
Less Alarming Alerts!Less Alarming Alerts!
Less Alarming Alerts!
 
Past, Present, and Pachyderm - All Things Open - 2013
Past, Present, and Pachyderm - All Things Open - 2013Past, Present, and Pachyderm - All Things Open - 2013
Past, Present, and Pachyderm - All Things Open - 2013
 
Managing Databases In A DevOps Environment
Managing Databases In A DevOps EnvironmentManaging Databases In A DevOps Environment
Managing Databases In A DevOps Environment
 
Advanced WAL File Management With OmniPITR
Advanced WAL File Management With OmniPITRAdvanced WAL File Management With OmniPITR
Advanced WAL File Management With OmniPITR
 
Scaling with Postgres (Highload++ 2010)
Scaling with Postgres (Highload++ 2010)Scaling with Postgres (Highload++ 2010)
Scaling with Postgres (Highload++ 2010)
 
Intro to Postgres 9 Tutorial
Intro to Postgres 9 TutorialIntro to Postgres 9 Tutorial
Intro to Postgres 9 Tutorial
 
Database Scalability Patterns
Database Scalability PatternsDatabase Scalability Patterns
Database Scalability Patterns
 
A Guide To PostgreSQL 9.0
A Guide To PostgreSQL 9.0A Guide To PostgreSQL 9.0
A Guide To PostgreSQL 9.0
 
Scaling With Postgres
Scaling With PostgresScaling With Postgres
Scaling With Postgres
 
Intro to pl/PHP Oscon2007
Intro to pl/PHP Oscon2007Intro to pl/PHP Oscon2007
Intro to pl/PHP Oscon2007
 
The Essential postgresql.conf
The Essential postgresql.confThe Essential postgresql.conf
The Essential postgresql.conf
 
PostgreSQL Partitioning, PGCon 2007
PostgreSQL Partitioning, PGCon 2007PostgreSQL Partitioning, PGCon 2007
PostgreSQL Partitioning, PGCon 2007
 

Último

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 

Último (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 

Check Please!

  • 1. Check Please! What your Postgres database wishes you would monitor / Presentation Friday, May 21, 2010
  • 2. Who am I? • Lead Database Operations at OmniTI • Database Consulting / Management • Postgres? • TB+ OLAP/DSS • multiple 1000+ tps OLTP • custom built, private label • long time user (6.5-9.x) • community member • major contributor Friday, May 21, 2010
  • 3. Check Yourself! • Basic Tuning Is Job #1 • shared buffers, effective cache size, checkpoints • Resources • http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server • http://www.slideshare.net/xzilla/the-essential-postgresqlconf-presentation Friday, May 21, 2010
  • 4. Before You Wreck Yourself! Friday, May 21, 2010
  • 5. Before You Wreck Yourself! • Monitoring • If a server crashes in the woods • Pain is a great motivator Friday, May 21, 2010
  • 6. Before You Wreck Yourself! Friday, May 21, 2010
  • 7. Before You Wreck Yourself! • Trending • Knowing what things look like when they’re good helps determine when things are bad • You can often tell where you’re going by looking at where you came from Friday, May 21, 2010
  • 8. Tools? • Tools cannot replace experience and discipline • But they can help you maintain that discipline • Popular tools • nagios / munin • cacti / mrtg • circonus.com / reconnoiter • { check_postgres } Friday, May 21, 2010
  • 9. Connections • Hard limit on allowed connections • Game Over • Large numbers of concurrent users • Internet facing systems - Paul RJ Muller, beached whale Friday, May 21, 2010
  • 10. Disk Space • Data, clog, xlogs, log files • Game Over • (planning) • Everybody - Squiggle, Overloaded? Friday, May 21, 2010
  • 11. WAL Files • pg_xlog directory, transaction logs • maintain database consistency • excessive disk space • excessive recovery time • heavy write transactions • pg start/stop backup (buggy systems) - Jazzmasterson, Workspace 3.0 - Noguchi File Friday, May 21, 2010
  • 12. Size Matters • more data == more disk space • only grow if you should • large tables, i/o issues • unbounded growth? • fast paced development • everyone else (eventually) - elmada, Size Matters Friday, May 21, 2010
  • 13. Bloating • mvcc leaves dead rows • unused space in tables, indexes • i/o issues • disk space (eventually) • heavy updates, data churn • untuned systems - Joe Alterio, burpalurpa Friday, May 21, 2010
  • 14. Transactions • every statement is in a transaction • select/insert/update/deletes • underlying effects • load spikes • OLTP Systems • Logging/Internet Facing Systems - laurieofindy , Walmart on Black Friday 2009 Friday, May 21, 2010
  • 15. All Stats • pg_stat tables • tables, indexes... scans, tuples • underlying effects • load spikes • OLTP Systems • Logging/Internet Facing Systems - Inju, Statistics for the Utterly Confused Friday, May 21, 2010
  • 16. Free Space Map • Tracks unused space • Keeps vacuum effective • Table / Index Bloat • Medium to Large Systems • High Update / Data Churn DB - SkyTruth, Deepwater Horizon Oil Spill - RADARSAT-2, May 8, 2010 Friday, May 21, 2010
  • 17. Autovacuum Max Freeze Age • Ensures all tables get vacuumed • Prevents XID wrap-around • Heavy I/O • Locking Issues • High TPS / OLTP • pg_dump - Joe Marinaro, Good Morning! Friday, May 21, 2010
  • 18. Long Running Queries • postgres can’t freeze query plans • pg_stat_activity • Can cause issues for vacuum • Uh, response time obligations • active data collection • developers write queries ;-) - _Tawcan, Spiral Out..keep going Friday, May 21, 2010
  • 19. Idle Transactions • BEGIN; zzz... • pg_stat_activity • Can cause issues for vacuum • Connections holding memory • pretty much everyone - psd, Canadian Cashpoints, Bah! Friday, May 21, 2010
  • 20. Sequence limits • sequences limited to 2 billion • non-transactional • Can break inserts • Heavy insert (update?) systems - gavinzac, Rise and Fall in Donegal Friday, May 21, 2010
  • 21. Wrap-around • Postgres must vacuum every table within 2 Billion transactions • Catastrophic data loss • pretty much everyone - Jurvetson, Wrapped Around the Axle Friday, May 21, 2010
  • 22. Settings • postgresql.conf doesn’t always reflect reality • temporary changes can lead to long term trouble • pretty much everyone - denovich, P9220453.jpg Friday, May 21, 2010
  • 23. Thanks! • PGCon • PGCommunity • OmniTI • Want more? • xzilla@users.sourceforge.net, http://www.xzilla.net • @robtreat2 • robert@omniti.com, http://www.omniti.com/is/hiring Friday, May 21, 2010