SlideShare uma empresa Scribd logo
1 de 25
Baixar para ler offline
Replicació
                            MySQL
                            Mites, llegendes i realitats



                                       @ifosch
Wednesday, January 2, 13
A DBMS also needs to provide
                        e!ective run-time execution to
                       properly support (e.g., in terms of
                        performance, availability, and
                       security) as many end-users (the
                        database's application users) as
                                    needed
                                      definició de ‘DataBase’ a la Wikipedia




Wednesday, January 2, 13
A DBMS also needs to provide
                        e!ective run-time execution to
                       properly support (e.g., in terms of
                        performance availability, and
                        performance,
                       security) as many end-users (the
                        database's application users) as
                                    needed
                                      definició de ‘DataBase’ a la Wikipedia




Wednesday, January 2, 13
A DBMS also needs to provide
                        e!ective run-time execution to
                       properly support (e.g., in terms of
                        performance availability, and
                        performance, availability
                       security) as many end-users (the
                        database's application users) as
                                    needed
                                      definició de ‘DataBase’ a la Wikipedia




Wednesday, January 2, 13
A DBMS also needs to provide
                        e!ective run-time execution to
                       properly support (e.g., in terms of
                        performance availability, and
                        performance, availability
                       security as many end-users (the
                       security)
                        database's application users) as
                                    needed
                                      definició de ‘DataBase’ a la Wikipedia




Wednesday, January 2, 13
A DBMS also needs to provide
                        e!ective run-time execution to
                                                    t y ?
                                         b   li
                       properly support (e.g., in terms of
                                           i
                        performance availability, and
                        performance, availability

                               ca la
                       security as many end-users (the
                       security)
                             s
                        database's application users) as
                                    needed
                                      definició de ‘DataBase’ a la Wikipedia




Wednesday, January 2, 13
Replicació MySQL
                                                          Slave
                                                  I/O
                                                Thread


                           Master
                             BinLog            RelayLog




                                       SQL
                                      Thread




Wednesday, January 2, 13
Replicació MySQL



                              Master   Slave




Wednesday, January 2, 13
Replicació MySQL

   Master                   Slave




Wednesday, January 2, 13
Replicació MySQL

   Master                   Slave




                                             Slave



                                    Master

                                             Slave




Wednesday, January 2, 13
Replicació MySQL
                                                Slave
   Master                   Slave

                                       Master

                                                Slave




Wednesday, January 2, 13
Replicació MySQL
                                                       Slave
   Master                   Slave

                                              Master

                                                       Slave




                                Master   Master




Wednesday, January 2, 13
Replicació MySQL
                                                      Slave
   Master                   Slave

                                           Master

                                                      Slave




                                      Master        Master



Wednesday, January 2, 13
Replicació MySQL
                                                                          Slave
   Master                   Slave

                                                               Master

                                                                          Slave

                                    Master            Master




                                             Master



                                                        Master          Master



Wednesday, January 2, 13
Replicació MySQL
                                                            Slave
   Master                       Slave

                                                 Master

                                                            Slave




        Master                     Master




                                            Master        Master

                       Master

Wednesday, January 2, 13
Replicació MySQL
                                                            Slave
   Master                       Slave

                                                 Master

                                                            Slave




        Master                     Master
                 Poc recomenable


                                            Master        Master

                       Master

Wednesday, January 2, 13
Rendiment

                   Master




                                         App
                            Slave


                 Slave




Wednesday, January 2, 13
Rendiment
                                               Implica que
                                                l’aplicació
                   Master
                                                  estigui
                                                preparada

                                         App
                            Slave


                 Slave




Wednesday, January 2, 13
Rendiment
                                                Implica que
                                                 l’aplicació
                   Master
                                                   estigui
                                                 preparada

                                         App
                                                MySQL proxy
                            Slave              podria ajudar a
                 Slave
                                                redirigir les
                                                 conexions
                                                adientment



Wednesday, January 2, 13
Disponibilitat


                  Master         Master




                           App




Wednesday, January 2, 13
Disponibilitat

                                           MySQL proxy
                  Master         Master   podria ajudar a
                                           redirigir les
                                            conexions
                                           adientment

                           App




Wednesday, January 2, 13
Backup i Extracció


                            Master         Slave




                                     DWH




Wednesday, January 2, 13
Eines i gestió


            •maatkit           •Logs binaris
            •HAproxy           •Comunicacions
            •mysqlproxy        •Estat de la replicació




Wednesday, January 2, 13
Demostració M-M




Wednesday, January 2, 13
Gràcies!




Wednesday, January 2, 13

Mais conteúdo relacionado

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

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)
 
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?
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
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
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
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...
 
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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
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
 

Destaque

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Replicació MySQL

  • 1. Replicació MySQL Mites, llegendes i realitats @ifosch Wednesday, January 2, 13
  • 2. A DBMS also needs to provide e!ective run-time execution to properly support (e.g., in terms of performance, availability, and security) as many end-users (the database's application users) as needed definició de ‘DataBase’ a la Wikipedia Wednesday, January 2, 13
  • 3. A DBMS also needs to provide e!ective run-time execution to properly support (e.g., in terms of performance availability, and performance, security) as many end-users (the database's application users) as needed definició de ‘DataBase’ a la Wikipedia Wednesday, January 2, 13
  • 4. A DBMS also needs to provide e!ective run-time execution to properly support (e.g., in terms of performance availability, and performance, availability security) as many end-users (the database's application users) as needed definició de ‘DataBase’ a la Wikipedia Wednesday, January 2, 13
  • 5. A DBMS also needs to provide e!ective run-time execution to properly support (e.g., in terms of performance availability, and performance, availability security as many end-users (the security) database's application users) as needed definició de ‘DataBase’ a la Wikipedia Wednesday, January 2, 13
  • 6. A DBMS also needs to provide e!ective run-time execution to t y ? b li properly support (e.g., in terms of i performance availability, and performance, availability ca la security as many end-users (the security) s database's application users) as needed definició de ‘DataBase’ a la Wikipedia Wednesday, January 2, 13
  • 7. Replicació MySQL Slave I/O Thread Master BinLog RelayLog SQL Thread Wednesday, January 2, 13
  • 8. Replicació MySQL Master Slave Wednesday, January 2, 13
  • 9. Replicació MySQL Master Slave Wednesday, January 2, 13
  • 10. Replicació MySQL Master Slave Slave Master Slave Wednesday, January 2, 13
  • 11. Replicació MySQL Slave Master Slave Master Slave Wednesday, January 2, 13
  • 12. Replicació MySQL Slave Master Slave Master Slave Master Master Wednesday, January 2, 13
  • 13. Replicació MySQL Slave Master Slave Master Slave Master Master Wednesday, January 2, 13
  • 14. Replicació MySQL Slave Master Slave Master Slave Master Master Master Master Master Wednesday, January 2, 13
  • 15. Replicació MySQL Slave Master Slave Master Slave Master Master Master Master Master Wednesday, January 2, 13
  • 16. Replicació MySQL Slave Master Slave Master Slave Master Master Poc recomenable Master Master Master Wednesday, January 2, 13
  • 17. Rendiment Master App Slave Slave Wednesday, January 2, 13
  • 18. Rendiment Implica que l’aplicació Master estigui preparada App Slave Slave Wednesday, January 2, 13
  • 19. Rendiment Implica que l’aplicació Master estigui preparada App MySQL proxy Slave podria ajudar a Slave redirigir les conexions adientment Wednesday, January 2, 13
  • 20. Disponibilitat Master Master App Wednesday, January 2, 13
  • 21. Disponibilitat MySQL proxy Master Master podria ajudar a redirigir les conexions adientment App Wednesday, January 2, 13
  • 22. Backup i Extracció Master Slave DWH Wednesday, January 2, 13
  • 23. Eines i gestió •maatkit •Logs binaris •HAproxy •Comunicacions •mysqlproxy •Estat de la replicació Wednesday, January 2, 13