Scaling With Postgres

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Scaling With Postgres - Presentation Transcript

    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

    + Robert TreatRobert Treat, 6 months ago

    custom

    836 views, 0 favs, 1 embeds more stats

    Talk given at Percona Performance Conference 2009

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 836
      • 835 on SlideShare
      • 1 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 0
    Most viewed embeds
    • 1 views on http://localhost

    more

    All embeds
    • 1 views on http://localhost

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories