SlideShare uma empresa Scribd logo
1 de 30
Baixar para ler offline
Linas Virbalas
                    Continuent, Inc.



© Continuent 2010
/  Introductions
  /  What is Tungsten?
  /  PG 9: Moving from Warm to Hot Standby
  /  Tungsten + PostgreSQL Hot Standby
     and Streaming Replication
  /  Tungsten’s Feature: MySQL to PostgreSQL
     Replication
  /  Demo!
  /  Questions and Answers




© Continuent 2010
© Continuent 2010
/  Our Value: Data reliability for data-driven businesses
           •  Enterprise capability
           •  Open source cost
           •  Integrated solution
  /  Our Solution: Tungsten Database Clustering
  /  Our Company:
           •  Founded in Finland, HQ in USA
           •  Venture-backed
           •  US/European presence
           •  Deep experience in databases and distributed systems




© Continuent 2010
Data-Driven Businesses
                    and Their Discontents



© Continuent 2010
Challenge 1: Business Growth

  /  Growing business = growing transaction and data
     volumes
  /  Non-linear labor cost increases
  /  Limits in the amount of data and machines that you
     can practically manage




© Continuent 2010
Challenge 2: True High Availability


               Fault tolerance alone is no longer
                 sufficient for high availability


          The number one cause of downtime
           in many applications is scheduled
          database maintenance and upgrades



© Continuent 2010
Challenge 3: Complex Data Management

  /  Data-driven businesses have “big league” topologies
  /  Multi-master and cross-site flows are standard
                                              Shared Data


                        Shared Data




      Tenant and                         Tenant        Tenant
      Shared Data                         Apps          Apps

                    Tenant      Tenant
                     Data        Data

                                          Tenant       Tenant
                                         Analytics    Analytics
© Continuent 2010
What is Tungsten and How
                    Does It Work?



© Continuent 2010
What Is Tungsten?

  /  Tungsten creates integrated data services
     using of-the-shelf PostgreSQL/MySQL
     databases to:
      • Protect data
      • Keep applications constantly available
      • Improve resource utilization
      • Raise performance




© Continuent 2010
What’s Inside Tungsten?

  /  Replication - Making copies
           •  Tungsten Replicator -- Database-neutral, platform independent
              master/slave replication
  /  Connectivity -- Finding databases
           •  Tungsten Connector -- Fast MySQL/PostgreSQL client to JDBC
              proxying
           •  Tungsten SQL Router --JDBC wrapper for high-performance and
              transparent failover, load-balancing, and partitioning (no proxy
              required)
  /  Management -- Administering the database
           •  Tungsten Manager -- Distributed administration with autonomic,
              rule-based configuration and no single point of failure
           •  Tungsten Monitor -- Track resource status and




© Continuent 2010
Apache/Mod_PHP                      Apache/Mod_PHP




                      Manager     Connector                Connector    Manager




                     Replicator               Replicator               Replicator
                      Manager                 Manager                  Manager



© Continuent 2010
Technology: Replication Pipelines




© Continuent 2010
Technology: SQL Routing
                    Java App Server       PHP Application
                    Tungsten SQL Router   libmysqlclient.a
                    MySQL JDBC Driver




                                                   Tungsten
                                                   Connector




                            Clustered Databases


© Continuent 2010
Technology: Distributed Management
                       Admin Client
                                                       Manager



           Manager
       (Coordinator)

                                                          Admin Client




                                                     Manager
                                      Admin Client




© Continuent 2010
© Continuent 2010
PostgreSQL 8.4 Warm Standby




© Continuent 2010
Limitations of Warm Standby

  1.  Utilization -- Cannot open the standby
           •        To bring up the standby for queries you must end recovery
           •        Standby hardware is idle
           •        Difficult to track state of recovery since you cannot query log
                    position
  2.  Data Loss -- Warm standby transfers only full WAL
      files
           •        Can bound loss using archive_timeout
           •        Low values create large numbers of WAL files; complicate point-
                    in-time recovery
           •        Workarounds using DRBD, etc. are complex




© Continuent 2010
Introducing Hot Standby

  /  Allows users to connect to standby in read-only mode
           •  Allowed: SELECT, SET, LOAD, COMMIT/ROLLBACK
           •  Disallowed: INSERT, UPDATE, DELETE, CREATE, 2PC,
              SELECT … FOR SHARE/UPDATE, nextval(), LISTEN, LOCK,
           •  No admin commands: ANALYZE, VACUUM, REINDEX, GRANT
  /  Can come out of recovery while queries are running




© Continuent 2010
Introducing Log Streaming




© Continuent 2010
Configuration and Usage

  /  Log streaming layers on top of existing warm standby
     log shipping
  /  Multiple standby servers allowed
  /  Failure of one standby does not affect others
  /  Manual management is not simple - must coordinate
     provisioning & WAL shipping to set up/restart




© Continuent 2010
© Continuent 2010
Moving Tungsten to PostgreSQL

  /  Problem: We can’t read PostgreSQL logs (yet)
                      Tungsten solution is to manage:
  /  Warm Standby + WAL Shipping
     (for PostgreSQL <9)
           •  Good basic availability/fast failover
           •  Slaves open up for reads only after failover
           •  No load balancing/scaling
  /  Hot Standby + Streaming Replication
     (for PostgreSQL >=9)
           •  Slaves opened up for reads = Tungsten scaling facilities work
           •  Add Streaming Replication = minimal delay in replicating data
           •  With these features available, Tungsten brings true scale-out
              solution for PostgreSQL 9. With Tungsten PostgreSQL users gain
              high availability and scalability MySQL users have been able to
              enjoy over the years

© Continuent 2010
What is Tungsten’s Added Value To
  PostgreSQL?
  /  15 minute cluster installation
  /  Single commands to:
           •  View cluster status
           •  Provision a new standby
           •  Confirm liveness of replication
           •  Switch servers safely for maintenance
           •  Failover a dead server to most current replica
  /  Automatic discovery of new database replicas
  /  Automatic failover when databases fail
  /  Simple procedures for provisioning
  /  Transparent application routing
  /  Easy scaling

© Continuent 2010
How Tungsten covers all this?
                                 Tungsten Manager


                     Replicator JMX Interface       Monitor
                     Replication State Model
           Open Script
             Plugin




© Continuent 2010
© Continuent 2010
Master         Slave
                    Replicator    Replicator

                    Transaction   Transaction
                    History Log   History Log
                      Filters       Filters
                     MySQL        PostgreSQL
                     Extractor      Applier




© Continuent 2010
© Continuent 2010
© Continuent 2010
HQ and Americas                      EMEA and APAC
   560 S. Winchester Blvd., Suite 500   Lars Sonckin kaari 16
   San Jose, CA 95128                   02600 Espoo, Finland
   Tel (866) 998-3642                   Tel +358 50 517 9059
   Fax (408) 668-1009                   Fax +358 9 863 0060

   e-mail: sales@continuent.com


                        Continuent Web Site:
                     http://www.continuent.com



© Continuent 2010

Mais conteúdo relacionado

Semelhante a Building Tungsten Clusters with PostgreSQL Hot Standby and Streaming Replication

Living the Easy Life with Rules-Based Autonomic Database Clusters
Living the Easy Life with Rules-Based Autonomic Database ClustersLiving the Easy Life with Rules-Based Autonomic Database Clusters
Living the Easy Life with Rules-Based Autonomic Database ClustersLinas Virbalas
 
Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Business...
Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Business...Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Business...
Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Business...Continuent
 
Implementing the Future of PostgreSQL Clustering with Tungsten
Implementing the Future of PostgreSQL Clustering with TungstenImplementing the Future of PostgreSQL Clustering with Tungsten
Implementing the Future of PostgreSQL Clustering with TungstenCommand Prompt., Inc
 
Distributed application usecase on docker
Distributed application usecase on dockerDistributed application usecase on docker
Distributed application usecase on dockerHiroshi Miura
 
Tungsten University: Unleashing the Power of Tungsten Connectors
Tungsten University: Unleashing the Power of Tungsten ConnectorsTungsten University: Unleashing the Power of Tungsten Connectors
Tungsten University: Unleashing the Power of Tungsten ConnectorsContinuent
 
OpenStack Summit Tokyo - Know-how of Challlenging Deploy/Operation NTT DOCOMO...
OpenStack Summit Tokyo - Know-how of Challlenging Deploy/Operation NTT DOCOMO...OpenStack Summit Tokyo - Know-how of Challlenging Deploy/Operation NTT DOCOMO...
OpenStack Summit Tokyo - Know-how of Challlenging Deploy/Operation NTT DOCOMO...Masaaki Nakagawa
 
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed ServiceCloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed ServiceVMware Tanzu
 
Stephen Duncan resume 2017
Stephen Duncan resume 2017Stephen Duncan resume 2017
Stephen Duncan resume 2017Stephen Duncan
 
Database Performance With Proxy Architectures
Database  Performance With  Proxy  ArchitecturesDatabase  Performance With  Proxy  Architectures
Database Performance With Proxy ArchitecturesPerconaPerformance
 
Toward Scalable and Powerful CloudStack
Toward Scalable and Powerful CloudStackToward Scalable and Powerful CloudStack
Toward Scalable and Powerful CloudStackTakashi Kanai
 
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...Continuent
 
Enable business continuity and high availability through active active techno...
Enable business continuity and high availability through active active techno...Enable business continuity and high availability through active active techno...
Enable business continuity and high availability through active active techno...Qian Li Jin
 
triAGENS simplevoc vs_memcached
triAGENS simplevoc vs_memcachedtriAGENS simplevoc vs_memcached
triAGENS simplevoc vs_memcachedtriAGENS
 
SimpleVoc vs Memcached
SimpleVoc vs MemcachedSimpleVoc vs Memcached
SimpleVoc vs Memcachedtriagens
 
Surviving the Crisis With the Help of Oracle Database Resource Manager
Surviving the Crisis With the Help of Oracle Database Resource ManagerSurviving the Crisis With the Help of Oracle Database Resource Manager
Surviving the Crisis With the Help of Oracle Database Resource ManagerMaris Elsins
 
Zero Downtime JEE Architectures
Zero Downtime JEE ArchitecturesZero Downtime JEE Architectures
Zero Downtime JEE ArchitecturesAlexander Penev
 
2. oracle days sebastiaan vingerhoed_buckarest_november3rd
2. oracle days sebastiaan vingerhoed_buckarest_november3rd2. oracle days sebastiaan vingerhoed_buckarest_november3rd
2. oracle days sebastiaan vingerhoed_buckarest_november3rdDoina Draganescu
 
OpenStackを利用したEnterprise Cloudを支える技術 - OpenStack最新情報セミナー 2016年5月
OpenStackを利用したEnterprise Cloudを支える技術 - OpenStack最新情報セミナー 2016年5月OpenStackを利用したEnterprise Cloudを支える技術 - OpenStack最新情報セミナー 2016年5月
OpenStackを利用したEnterprise Cloudを支える技術 - OpenStack最新情報セミナー 2016年5月VirtualTech Japan Inc.
 
Oracle - Enterprise Manager 12c Overview
Oracle - Enterprise Manager 12c OverviewOracle - Enterprise Manager 12c Overview
Oracle - Enterprise Manager 12c OverviewFred Sim
 

Semelhante a Building Tungsten Clusters with PostgreSQL Hot Standby and Streaming Replication (20)

Living the Easy Life with Rules-Based Autonomic Database Clusters
Living the Easy Life with Rules-Based Autonomic Database ClustersLiving the Easy Life with Rules-Based Autonomic Database Clusters
Living the Easy Life with Rules-Based Autonomic Database Clusters
 
Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Business...
Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Business...Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Business...
Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Business...
 
Implementing the Future of PostgreSQL Clustering with Tungsten
Implementing the Future of PostgreSQL Clustering with TungstenImplementing the Future of PostgreSQL Clustering with Tungsten
Implementing the Future of PostgreSQL Clustering with Tungsten
 
Distributed application usecase on docker
Distributed application usecase on dockerDistributed application usecase on docker
Distributed application usecase on docker
 
Tungsten University: Unleashing the Power of Tungsten Connectors
Tungsten University: Unleashing the Power of Tungsten ConnectorsTungsten University: Unleashing the Power of Tungsten Connectors
Tungsten University: Unleashing the Power of Tungsten Connectors
 
OpenStack Summit Tokyo - Know-how of Challlenging Deploy/Operation NTT DOCOMO...
OpenStack Summit Tokyo - Know-how of Challlenging Deploy/Operation NTT DOCOMO...OpenStack Summit Tokyo - Know-how of Challlenging Deploy/Operation NTT DOCOMO...
OpenStack Summit Tokyo - Know-how of Challlenging Deploy/Operation NTT DOCOMO...
 
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed ServiceCloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
 
Stephen Duncan resume 2017
Stephen Duncan resume 2017Stephen Duncan resume 2017
Stephen Duncan resume 2017
 
Database Performance With Proxy Architectures
Database  Performance With  Proxy  ArchitecturesDatabase  Performance With  Proxy  Architectures
Database Performance With Proxy Architectures
 
Toward Scalable and Powerful CloudStack
Toward Scalable and Powerful CloudStackToward Scalable and Powerful CloudStack
Toward Scalable and Powerful CloudStack
 
Exadata Cloud Service Overview(v2)
Exadata Cloud Service Overview(v2) Exadata Cloud Service Overview(v2)
Exadata Cloud Service Overview(v2)
 
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
 
Enable business continuity and high availability through active active techno...
Enable business continuity and high availability through active active techno...Enable business continuity and high availability through active active techno...
Enable business continuity and high availability through active active techno...
 
triAGENS simplevoc vs_memcached
triAGENS simplevoc vs_memcachedtriAGENS simplevoc vs_memcached
triAGENS simplevoc vs_memcached
 
SimpleVoc vs Memcached
SimpleVoc vs MemcachedSimpleVoc vs Memcached
SimpleVoc vs Memcached
 
Surviving the Crisis With the Help of Oracle Database Resource Manager
Surviving the Crisis With the Help of Oracle Database Resource ManagerSurviving the Crisis With the Help of Oracle Database Resource Manager
Surviving the Crisis With the Help of Oracle Database Resource Manager
 
Zero Downtime JEE Architectures
Zero Downtime JEE ArchitecturesZero Downtime JEE Architectures
Zero Downtime JEE Architectures
 
2. oracle days sebastiaan vingerhoed_buckarest_november3rd
2. oracle days sebastiaan vingerhoed_buckarest_november3rd2. oracle days sebastiaan vingerhoed_buckarest_november3rd
2. oracle days sebastiaan vingerhoed_buckarest_november3rd
 
OpenStackを利用したEnterprise Cloudを支える技術 - OpenStack最新情報セミナー 2016年5月
OpenStackを利用したEnterprise Cloudを支える技術 - OpenStack最新情報セミナー 2016年5月OpenStackを利用したEnterprise Cloudを支える技術 - OpenStack最新情報セミナー 2016年5月
OpenStackを利用したEnterprise Cloudを支える技術 - OpenStack最新情報セミナー 2016年5月
 
Oracle - Enterprise Manager 12c Overview
Oracle - Enterprise Manager 12c OverviewOracle - Enterprise Manager 12c Overview
Oracle - Enterprise Manager 12c Overview
 

Último

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 

Último (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 

Building Tungsten Clusters with PostgreSQL Hot Standby and Streaming Replication

  • 1. Linas Virbalas Continuent, Inc. © Continuent 2010
  • 2. /  Introductions /  What is Tungsten? /  PG 9: Moving from Warm to Hot Standby /  Tungsten + PostgreSQL Hot Standby and Streaming Replication /  Tungsten’s Feature: MySQL to PostgreSQL Replication /  Demo! /  Questions and Answers © Continuent 2010
  • 4. /  Our Value: Data reliability for data-driven businesses •  Enterprise capability •  Open source cost •  Integrated solution /  Our Solution: Tungsten Database Clustering /  Our Company: •  Founded in Finland, HQ in USA •  Venture-backed •  US/European presence •  Deep experience in databases and distributed systems © Continuent 2010
  • 5. Data-Driven Businesses and Their Discontents © Continuent 2010
  • 6. Challenge 1: Business Growth /  Growing business = growing transaction and data volumes /  Non-linear labor cost increases /  Limits in the amount of data and machines that you can practically manage © Continuent 2010
  • 7. Challenge 2: True High Availability Fault tolerance alone is no longer sufficient for high availability The number one cause of downtime in many applications is scheduled database maintenance and upgrades © Continuent 2010
  • 8. Challenge 3: Complex Data Management /  Data-driven businesses have “big league” topologies /  Multi-master and cross-site flows are standard Shared Data Shared Data Tenant and Tenant Tenant Shared Data Apps Apps Tenant Tenant Data Data Tenant Tenant Analytics Analytics © Continuent 2010
  • 9. What is Tungsten and How Does It Work? © Continuent 2010
  • 10. What Is Tungsten? /  Tungsten creates integrated data services using of-the-shelf PostgreSQL/MySQL databases to: • Protect data • Keep applications constantly available • Improve resource utilization • Raise performance © Continuent 2010
  • 11. What’s Inside Tungsten? /  Replication - Making copies •  Tungsten Replicator -- Database-neutral, platform independent master/slave replication /  Connectivity -- Finding databases •  Tungsten Connector -- Fast MySQL/PostgreSQL client to JDBC proxying •  Tungsten SQL Router --JDBC wrapper for high-performance and transparent failover, load-balancing, and partitioning (no proxy required) /  Management -- Administering the database •  Tungsten Manager -- Distributed administration with autonomic, rule-based configuration and no single point of failure •  Tungsten Monitor -- Track resource status and © Continuent 2010
  • 12. Apache/Mod_PHP Apache/Mod_PHP Manager Connector Connector Manager Replicator Replicator Replicator Manager Manager Manager © Continuent 2010
  • 14. Technology: SQL Routing Java App Server PHP Application Tungsten SQL Router libmysqlclient.a MySQL JDBC Driver Tungsten Connector Clustered Databases © Continuent 2010
  • 15. Technology: Distributed Management Admin Client Manager Manager (Coordinator) Admin Client Manager Admin Client © Continuent 2010
  • 17. PostgreSQL 8.4 Warm Standby © Continuent 2010
  • 18. Limitations of Warm Standby 1.  Utilization -- Cannot open the standby •  To bring up the standby for queries you must end recovery •  Standby hardware is idle •  Difficult to track state of recovery since you cannot query log position 2.  Data Loss -- Warm standby transfers only full WAL files •  Can bound loss using archive_timeout •  Low values create large numbers of WAL files; complicate point- in-time recovery •  Workarounds using DRBD, etc. are complex © Continuent 2010
  • 19. Introducing Hot Standby /  Allows users to connect to standby in read-only mode •  Allowed: SELECT, SET, LOAD, COMMIT/ROLLBACK •  Disallowed: INSERT, UPDATE, DELETE, CREATE, 2PC, SELECT … FOR SHARE/UPDATE, nextval(), LISTEN, LOCK, •  No admin commands: ANALYZE, VACUUM, REINDEX, GRANT /  Can come out of recovery while queries are running © Continuent 2010
  • 20. Introducing Log Streaming © Continuent 2010
  • 21. Configuration and Usage /  Log streaming layers on top of existing warm standby log shipping /  Multiple standby servers allowed /  Failure of one standby does not affect others /  Manual management is not simple - must coordinate provisioning & WAL shipping to set up/restart © Continuent 2010
  • 23. Moving Tungsten to PostgreSQL /  Problem: We can’t read PostgreSQL logs (yet) Tungsten solution is to manage: /  Warm Standby + WAL Shipping (for PostgreSQL <9) •  Good basic availability/fast failover •  Slaves open up for reads only after failover •  No load balancing/scaling /  Hot Standby + Streaming Replication (for PostgreSQL >=9) •  Slaves opened up for reads = Tungsten scaling facilities work •  Add Streaming Replication = minimal delay in replicating data •  With these features available, Tungsten brings true scale-out solution for PostgreSQL 9. With Tungsten PostgreSQL users gain high availability and scalability MySQL users have been able to enjoy over the years © Continuent 2010
  • 24. What is Tungsten’s Added Value To PostgreSQL? /  15 minute cluster installation /  Single commands to: •  View cluster status •  Provision a new standby •  Confirm liveness of replication •  Switch servers safely for maintenance •  Failover a dead server to most current replica /  Automatic discovery of new database replicas /  Automatic failover when databases fail /  Simple procedures for provisioning /  Transparent application routing /  Easy scaling © Continuent 2010
  • 25. How Tungsten covers all this? Tungsten Manager Replicator JMX Interface Monitor Replication State Model Open Script Plugin © Continuent 2010
  • 27. Master Slave Replicator Replicator Transaction Transaction History Log History Log Filters Filters MySQL PostgreSQL Extractor Applier © Continuent 2010
  • 30. HQ and Americas EMEA and APAC 560 S. Winchester Blvd., Suite 500 Lars Sonckin kaari 16 San Jose, CA 95128 02600 Espoo, Finland Tel (866) 998-3642 Tel +358 50 517 9059 Fax (408) 668-1009 Fax +358 9 863 0060 e-mail: sales@continuent.com Continuent Web Site: http://www.continuent.com © Continuent 2010