Managing replication of PostgreSQL, Simon Riggs

1,501 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,501
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
39
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Managing replication of PostgreSQL, Simon Riggs

  1. 1. © 2ndQuadrant Limited 2010 Managing PostgreSQL Replication
  2. 2. © 2ndQuadrant Limited 2010 Who Am I? • Simon Riggs • Major Developer on PostgreSQL project • CTO, 2ndQuadrant
  3. 3. © 2ndQuadrant Limited 2010 Replication Use Cases • High Availability • Scalability • Protection • Total Cost of Ownership • Exploiting success
  4. 4. © 2ndQuadrant Limited 2010 Replication Mechanisms • Trigger-based replication – User space solution • Log-based replication – Integrated development
  5. 5. © 2ndQuadrant Limited 2010 Log Shipping Developments • 8.0 – Point in Time Recovery, Full WAL info • 8.2 – Restartable Recovery, Log Switching, Streaming API • 8.3 – Full Page Optimization, pg_standby • 8.4 – BgWriter during Recovery • 9.0 – Streaming Replication Hot Standby
  6. 6. © 2ndQuadrant Limited 2010 Streaming Replication (9.0) • Efficient real-time “log shipping” • Master → Slave replication using full security • Multiple concurrent slaves • Robust bi-modal design
  7. 7. © 2ndQuadrant Limited 2010 WAL Sender
  8. 8. © 2ndQuadrant Limited 2010 WAL Receiver
  9. 9. © 2ndQuadrant Limited 2010 Hot Standby • Read-only access while “in recovery” • Equivalent of Oracle 11g Active Data Guard • Load balanced read scalability • Query off-load from main write node • Multiple highly available standby nodes
  10. 10. © 2ndQuadrant Limited 2010 Capabilities • High Performance • Integrated • Ease of Use • Query Access • Relay • Selectivity • Query Farm
  11. 11. © 2ndQuadrant Limited 2010 Capabilities with Tools • High Performance • Integrated • Ease of Use • Query Access • Relay • Selectivity • Query Farm
  12. 12. © 2ndQuadrant Limited 2010 Repmgr
  13. 13. © 2ndQuadrant Limited 2010 Repmgr • Simplify standby management • Monitor replication delays • Provide feedback mechanisms
  14. 14. © 2ndQuadrant Limited 2010 Future: Sync Replication (9.1) • User-controlled robustness • High performance design • Simplicity • Additional flexibility through registration
  15. 15. © 2ndQuadrant Limited 2010 Future: Loose Coupling • Allows distributed database • High Availability and Disaster Recovery • No shared resources – better scalability • “Cellular” approach
  16. 16. © 2ndQuadrant Limited 2010 PostgreSQL Books • http://www.2ndQuadrant.com/books/

×