SlideShare uma empresa Scribd logo
1 de 28
Disaster Recovery
                    with MySQL and Tungsten
                                       Jeff Mace



©Continuent 2012.
Right now ...

              • your slaves are 2 hours behind the
                   master.

              • it takes 30 minutes to recover from a DB
                   failure.

              • you are running a network of sites from a
                   single datacenter.




©Continuent 2012                        2
You need to ...

              • reduce replication lag of your slaves.
              • automatically failover when a DB crashes.
              • host sites from many locations,
                   and have a copy of the data everywhere.




©Continuent 2012                     3
Where does lag come from?

                   www.example.com




©Continuent 2012                     4
Where does lag come from?

                   www.example.com




                   www.spacely.com




©Continuent 2012                     4
Where does lag come from?

                   www.example.com




                   www.spacely.com




                   www.widgets.com




©Continuent 2012                     4
Where does lag come from?

                   www.example.com




                   www.spacely.com




                   www.widgets.com




                   www.bigfoothunter.com


                     Large updates to one site can hold up
                             replication for others
©Continuent 2012                           4
Reducing replication lag

                   www.example.com




                   www.spacely.com




                   www.widgets.com




                   www.bigfoothunter.com


                   Tungsten can replicate each site in parallel

©Continuent 2012                           5
Best Practices

              • Use a separate schema for each site
              • Avoid updates that affect multiple
                   schemas

              • We recommend 10 parallel channels max
              • Manually create channel assignments for
                   each schema to balance the workload




©Continuent 2012                    6
Bi-directional HA




            Tungsten allows you to replicate in both directions

©Continuent 2012                   7
Bi-directional HA




            Tungsten allows you to replicate in both directions

©Continuent 2012                   8
Bi-directional HA




            Tungsten allows you to replicate in both directions

©Continuent 2012                   9
Best Practices

              • SET GLOBAL read_only=true;
              • REVOKE SUPER ON *.* FROM
                   ‘app_user’@‘host.example.com’;

              • Take your backups from the slave




©Continuent 2012                    10
What’s wrong with most failover

              • Recovery of the failed server is tedious
                   and requires careful analysis

              • Virtual IPs may go to the wrong server
                   even after being moved

              • Synchronous replication may reduce write
                   performance




©Continuent 2012                      11
Why connect to a database
          server ...




©Continuent 2012          12
... when you can connect to a
          cluster.




            Tungsten sends connections to the current master

©Continuent 2012                 13
Failover is hidden inside the
          cluster




                   Tungsten will automatically trigger a failover

©Continuent 2012                       14
Failover is hidden inside the
          cluster




                   and promote a new master.

©Continuent 2012             15
Failover is hidden inside the
          cluster




                   The failed server can be restored later

©Continuent 2012                    16
Planning for disaster recovery




                            NYC




                   London            Tokyo
©Continuent 2012             17
Planning for disaster recovery




                            NYC




                   London            Tokyo
©Continuent 2012             18
Planning for disaster recovery




                            NYC




                   London            Tokyo
©Continuent 2012             19
Planning for disaster recovery




                            NYC




                   London            Tokyo
©Continuent 2012             20
Build a global replication network




                            NYC




                   London            Tokyo
©Continuent 2012             21
Best Practices

              • Shard your data at the schema level
              • Limit writes to a single location per
                   schema

              • If that is not an option ...
                   •   Use auto_increment options to avoid key
                       conflicts

                   •   Enable ROW replication

                   •   https://docs.continuent.com/wiki/x/24Qk




©Continuent 2012                          22
Support

              • Per server or site-license based support
              • 24/7 coverage for replication failures
              • Includes -
                   •   Clustering

                   •   Advanced replication topologies

                   •   Heterogenous replication such as MySQL ->
                       Oracle or Oracle -> MySQL




©Continuent 2012                          23
We’re Hiring

              • Cluster Implementation Engineer
              • QA Engineer




©Continuent 2012                 24
Jeff Mace
jeff.mace@continuent.com
sales@continuent.com
560 S.Winchester Blvd. Suite 500 San Jose, CA 95128
Tel (866) 998-3642
Fax (408) 668-1009




                            http://www.continuent.com
                   http://code.google.com/p/tungsten-replicator
©Continuent 2012                              25

Mais conteúdo relacionado

Semelhante a Disaster Recovery with MySQL and Tungsten

Tungsten University: Geographically Distributed Multi-Master MySQL Clusters
Tungsten University: Geographically Distributed Multi-Master MySQL ClustersTungsten University: Geographically Distributed Multi-Master MySQL Clusters
Tungsten University: Geographically Distributed Multi-Master MySQL ClustersContinuent
 
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
 
OSSEU18: From Handcraft to Unikraft: Simpler Unikernelization of Your Applica...
OSSEU18: From Handcraft to Unikraft: Simpler Unikernelization of Your Applica...OSSEU18: From Handcraft to Unikraft: Simpler Unikernelization of Your Applica...
OSSEU18: From Handcraft to Unikraft: Simpler Unikernelization of Your Applica...The Linux Foundation
 
Scaling AEM (CQ5) Gem Session
Scaling AEM (CQ5) Gem SessionScaling AEM (CQ5) Gem Session
Scaling AEM (CQ5) Gem SessionMichael Marth
 
MTBF / MTTR - Energized Work TekTalk, Mar 2012
MTBF / MTTR - Energized Work TekTalk, Mar 2012MTBF / MTTR - Energized Work TekTalk, Mar 2012
MTBF / MTTR - Energized Work TekTalk, Mar 2012Energized Work
 
Tungsten University: Configure and provision Tungsten clusters
Tungsten University: Configure and provision Tungsten clustersTungsten University: Configure and provision Tungsten clusters
Tungsten University: Configure and provision Tungsten clustersContinuent
 
Monitoring VMware vFabric with Hyperic and Spring Insight
Monitoring VMware vFabric with Hyperic and Spring InsightMonitoring VMware vFabric with Hyperic and Spring Insight
Monitoring VMware vFabric with Hyperic and Spring InsightC2B2 Consulting
 
JVM Multitenancy (JavaOne 2012)
JVM Multitenancy (JavaOne 2012)JVM Multitenancy (JavaOne 2012)
JVM Multitenancy (JavaOne 2012)Graeme_IBM
 
ActiveMQ Performance Tuning
ActiveMQ Performance TuningActiveMQ Performance Tuning
ActiveMQ Performance TuningChristian Posta
 
WillMicroserviceDie.pdf
WillMicroserviceDie.pdfWillMicroserviceDie.pdf
WillMicroserviceDie.pdfEmilyJiang23
 
Modernisation of Legacy PHP Applications to Symfony2 - Symfony Live Berlin 2012
Modernisation of Legacy PHP Applications to Symfony2 - Symfony Live Berlin 2012Modernisation of Legacy PHP Applications to Symfony2 - Symfony Live Berlin 2012
Modernisation of Legacy PHP Applications to Symfony2 - Symfony Live Berlin 2012Fabrice Bernhard
 
Exploring Stretched Clusters
Exploring Stretched ClustersExploring Stretched Clusters
Exploring Stretched ClustersScott Lowe
 
2012 Annual State of the Union for Mobile Ecommerce Performance [Velocity EU]
2012 Annual State of the Union for Mobile Ecommerce Performance [Velocity EU]2012 Annual State of the Union for Mobile Ecommerce Performance [Velocity EU]
2012 Annual State of the Union for Mobile Ecommerce Performance [Velocity EU]Strangeloop
 
Jenkins Performance - Avoiding Pitfalls, Diagnosing Issues, and Scaling for G...
Jenkins Performance - Avoiding Pitfalls, Diagnosing Issues, and Scaling for G...Jenkins Performance - Avoiding Pitfalls, Diagnosing Issues, and Scaling for G...
Jenkins Performance - Avoiding Pitfalls, Diagnosing Issues, and Scaling for G...Owen Mehegan
 
Use Case: Apollo Group at Oracle Open World
Use Case: Apollo Group at Oracle Open WorldUse Case: Apollo Group at Oracle Open World
Use Case: Apollo Group at Oracle Open WorldMongoDB
 
Node.js meetup at Palo Alto Networks Tel Aviv
Node.js meetup at Palo Alto Networks Tel AvivNode.js meetup at Palo Alto Networks Tel Aviv
Node.js meetup at Palo Alto Networks Tel AvivRon Perlmuter
 
CodiLime Tech Talk - Wojciech Urbański: Cloud Native
CodiLime Tech Talk - Wojciech Urbański: Cloud NativeCodiLime Tech Talk - Wojciech Urbański: Cloud Native
CodiLime Tech Talk - Wojciech Urbański: Cloud NativeCodiLime
 
Flexible heterogenous replication
Flexible heterogenous replicationFlexible heterogenous replication
Flexible heterogenous replicationJeff Mace
 
Step by Step Mobile Optimization
Step by Step Mobile OptimizationStep by Step Mobile Optimization
Step by Step Mobile OptimizationGuy Podjarny
 

Semelhante a Disaster Recovery with MySQL and Tungsten (20)

Tungsten University: Geographically Distributed Multi-Master MySQL Clusters
Tungsten University: Geographically Distributed Multi-Master MySQL ClustersTungsten University: Geographically Distributed Multi-Master MySQL Clusters
Tungsten University: Geographically Distributed Multi-Master MySQL 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...
 
Scaling CQ5
Scaling CQ5Scaling CQ5
Scaling CQ5
 
OSSEU18: From Handcraft to Unikraft: Simpler Unikernelization of Your Applica...
OSSEU18: From Handcraft to Unikraft: Simpler Unikernelization of Your Applica...OSSEU18: From Handcraft to Unikraft: Simpler Unikernelization of Your Applica...
OSSEU18: From Handcraft to Unikraft: Simpler Unikernelization of Your Applica...
 
Scaling AEM (CQ5) Gem Session
Scaling AEM (CQ5) Gem SessionScaling AEM (CQ5) Gem Session
Scaling AEM (CQ5) Gem Session
 
MTBF / MTTR - Energized Work TekTalk, Mar 2012
MTBF / MTTR - Energized Work TekTalk, Mar 2012MTBF / MTTR - Energized Work TekTalk, Mar 2012
MTBF / MTTR - Energized Work TekTalk, Mar 2012
 
Tungsten University: Configure and provision Tungsten clusters
Tungsten University: Configure and provision Tungsten clustersTungsten University: Configure and provision Tungsten clusters
Tungsten University: Configure and provision Tungsten clusters
 
Monitoring VMware vFabric with Hyperic and Spring Insight
Monitoring VMware vFabric with Hyperic and Spring InsightMonitoring VMware vFabric with Hyperic and Spring Insight
Monitoring VMware vFabric with Hyperic and Spring Insight
 
JVM Multitenancy (JavaOne 2012)
JVM Multitenancy (JavaOne 2012)JVM Multitenancy (JavaOne 2012)
JVM Multitenancy (JavaOne 2012)
 
ActiveMQ Performance Tuning
ActiveMQ Performance TuningActiveMQ Performance Tuning
ActiveMQ Performance Tuning
 
WillMicroserviceDie.pdf
WillMicroserviceDie.pdfWillMicroserviceDie.pdf
WillMicroserviceDie.pdf
 
Modernisation of Legacy PHP Applications to Symfony2 - Symfony Live Berlin 2012
Modernisation of Legacy PHP Applications to Symfony2 - Symfony Live Berlin 2012Modernisation of Legacy PHP Applications to Symfony2 - Symfony Live Berlin 2012
Modernisation of Legacy PHP Applications to Symfony2 - Symfony Live Berlin 2012
 
Exploring Stretched Clusters
Exploring Stretched ClustersExploring Stretched Clusters
Exploring Stretched Clusters
 
2012 Annual State of the Union for Mobile Ecommerce Performance [Velocity EU]
2012 Annual State of the Union for Mobile Ecommerce Performance [Velocity EU]2012 Annual State of the Union for Mobile Ecommerce Performance [Velocity EU]
2012 Annual State of the Union for Mobile Ecommerce Performance [Velocity EU]
 
Jenkins Performance - Avoiding Pitfalls, Diagnosing Issues, and Scaling for G...
Jenkins Performance - Avoiding Pitfalls, Diagnosing Issues, and Scaling for G...Jenkins Performance - Avoiding Pitfalls, Diagnosing Issues, and Scaling for G...
Jenkins Performance - Avoiding Pitfalls, Diagnosing Issues, and Scaling for G...
 
Use Case: Apollo Group at Oracle Open World
Use Case: Apollo Group at Oracle Open WorldUse Case: Apollo Group at Oracle Open World
Use Case: Apollo Group at Oracle Open World
 
Node.js meetup at Palo Alto Networks Tel Aviv
Node.js meetup at Palo Alto Networks Tel AvivNode.js meetup at Palo Alto Networks Tel Aviv
Node.js meetup at Palo Alto Networks Tel Aviv
 
CodiLime Tech Talk - Wojciech Urbański: Cloud Native
CodiLime Tech Talk - Wojciech Urbański: Cloud NativeCodiLime Tech Talk - Wojciech Urbański: Cloud Native
CodiLime Tech Talk - Wojciech Urbański: Cloud Native
 
Flexible heterogenous replication
Flexible heterogenous replicationFlexible heterogenous replication
Flexible heterogenous replication
 
Step by Step Mobile Optimization
Step by Step Mobile OptimizationStep by Step Mobile Optimization
Step by Step Mobile Optimization
 

Último

Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
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
 
#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
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
[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
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
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
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
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
 

Último (20)

Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
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
 
#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
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
[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
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
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
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
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
 

Disaster Recovery with MySQL and Tungsten

  • 1. Disaster Recovery with MySQL and Tungsten Jeff Mace ©Continuent 2012.
  • 2. Right now ... • your slaves are 2 hours behind the master. • it takes 30 minutes to recover from a DB failure. • you are running a network of sites from a single datacenter. ©Continuent 2012 2
  • 3. You need to ... • reduce replication lag of your slaves. • automatically failover when a DB crashes. • host sites from many locations, and have a copy of the data everywhere. ©Continuent 2012 3
  • 4. Where does lag come from? www.example.com ©Continuent 2012 4
  • 5. Where does lag come from? www.example.com www.spacely.com ©Continuent 2012 4
  • 6. Where does lag come from? www.example.com www.spacely.com www.widgets.com ©Continuent 2012 4
  • 7. Where does lag come from? www.example.com www.spacely.com www.widgets.com www.bigfoothunter.com Large updates to one site can hold up replication for others ©Continuent 2012 4
  • 8. Reducing replication lag www.example.com www.spacely.com www.widgets.com www.bigfoothunter.com Tungsten can replicate each site in parallel ©Continuent 2012 5
  • 9. Best Practices • Use a separate schema for each site • Avoid updates that affect multiple schemas • We recommend 10 parallel channels max • Manually create channel assignments for each schema to balance the workload ©Continuent 2012 6
  • 10. Bi-directional HA Tungsten allows you to replicate in both directions ©Continuent 2012 7
  • 11. Bi-directional HA Tungsten allows you to replicate in both directions ©Continuent 2012 8
  • 12. Bi-directional HA Tungsten allows you to replicate in both directions ©Continuent 2012 9
  • 13. Best Practices • SET GLOBAL read_only=true; • REVOKE SUPER ON *.* FROM ‘app_user’@‘host.example.com’; • Take your backups from the slave ©Continuent 2012 10
  • 14. What’s wrong with most failover • Recovery of the failed server is tedious and requires careful analysis • Virtual IPs may go to the wrong server even after being moved • Synchronous replication may reduce write performance ©Continuent 2012 11
  • 15. Why connect to a database server ... ©Continuent 2012 12
  • 16. ... when you can connect to a cluster. Tungsten sends connections to the current master ©Continuent 2012 13
  • 17. Failover is hidden inside the cluster Tungsten will automatically trigger a failover ©Continuent 2012 14
  • 18. Failover is hidden inside the cluster and promote a new master. ©Continuent 2012 15
  • 19. Failover is hidden inside the cluster The failed server can be restored later ©Continuent 2012 16
  • 20. Planning for disaster recovery NYC London Tokyo ©Continuent 2012 17
  • 21. Planning for disaster recovery NYC London Tokyo ©Continuent 2012 18
  • 22. Planning for disaster recovery NYC London Tokyo ©Continuent 2012 19
  • 23. Planning for disaster recovery NYC London Tokyo ©Continuent 2012 20
  • 24. Build a global replication network NYC London Tokyo ©Continuent 2012 21
  • 25. Best Practices • Shard your data at the schema level • Limit writes to a single location per schema • If that is not an option ... • Use auto_increment options to avoid key conflicts • Enable ROW replication • https://docs.continuent.com/wiki/x/24Qk ©Continuent 2012 22
  • 26. Support • Per server or site-license based support • 24/7 coverage for replication failures • Includes - • Clustering • Advanced replication topologies • Heterogenous replication such as MySQL -> Oracle or Oracle -> MySQL ©Continuent 2012 23
  • 27. We’re Hiring • Cluster Implementation Engineer • QA Engineer ©Continuent 2012 24
  • 28. Jeff Mace jeff.mace@continuent.com sales@continuent.com 560 S.Winchester Blvd. Suite 500 San Jose, CA 95128 Tel (866) 998-3642 Fax (408) 668-1009 http://www.continuent.com http://code.google.com/p/tungsten-replicator ©Continuent 2012 25

Notas do Editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n