The document discusses various high availability solutions for MySQL databases, including:
1) MySQL replication which allows for scaling out reads across slave servers but has a single point of failure at the master.
2) Master-master replication which removes the single master point of failure but makes the system more complex and can lead to data inconsistencies.
3) Solutions using shared storage like SANs or DRBD to synchronize data between active-passive nodes for failover, avoiding data inconsistencies but having higher costs and complexity.
4) Synchronous replication options like Galera and MySQL Cluster that allow for active-active usage with no data lag but have their own performance impacts and complexity tradeoffs.
OSSCube MySQL Cluster Tutorial By Sonali At Osspac 09OSSCube
Sonali from OSSCube presents on MySQL Cluster Tutorial at OSSPAC 2009
OSSCube-Leading OpenSource Evangelist Company.
To know how we can help your business grow, contact:
India: +91 995 809 0987
USA: +1 919 791 5472
WEB: www.osscube.com
Mail: sales@osscube.com
Overview of the high-availability of YARN. How to make it highly available and the possibility of using NDB MySQL Cluster in order to store the state of the Resource Manager and the Application Masters without having to depend on different architectures such as Zookeeper and HDFS.
Missing references, will add soon!!
OSSCube MySQL Cluster Tutorial By Sonali At Osspac 09OSSCube
Sonali from OSSCube presents on MySQL Cluster Tutorial at OSSPAC 2009
OSSCube-Leading OpenSource Evangelist Company.
To know how we can help your business grow, contact:
India: +91 995 809 0987
USA: +1 919 791 5472
WEB: www.osscube.com
Mail: sales@osscube.com
Overview of the high-availability of YARN. How to make it highly available and the possibility of using NDB MySQL Cluster in order to store the state of the Resource Manager and the Application Masters without having to depend on different architectures such as Zookeeper and HDFS.
Missing references, will add soon!!
High Availability Architecture for Legacy Stuff - a 10.000 feet overviewMarco Amado
An overview of the tools and tricks you could use to turn a monolithic big pile of... Apache, PHP, and MariaDB into an awesome high-availability, load balanced, shiny new pile of... Apache, PHP, and MariaDB. Zero, or almost zero changes to the codebase.
CPN208 Failures at Scale & How to Ride Through Them - AWS re: Invent 2012Amazon Web Services
At scale, rare and unexpected events will happen. Things eventually will go wrong. This talk dives into what can go wrong at scale and how to architect applications to ride through disaster obliviously. We’ll talk about AWS infrastructure design including Regions and Availability Zones and show how applications can be written and operated to best exploit this industry-unique infrastructure redundancy model. Believing that experience is one of the best teachers, we will go through some of the more interesting and educational industry post mortems including some experienced at AWS to motivate these application design decisions and show how they can mitigate the damage of the truly unexpected.
Behind the Scenes at LiveJournal: Scaling StorytimeSergeyChernyshev
Brad talks about clustering setups using MySQL and DRDB and their Open Source software most of which he wrote initially and continues to develop.
A lot of these techniques and/or software is used by many other companies as well - among them Flickr/Yahoo! and Facebook.
Running your Java EE 6 applications in the CloudIndicThreads
Session Presented @IndicThreads Cloud Computing Conference, Pune, India ( http://u10.indicthreads.com )
------------
The Java EE 6 platform is an extreme makeover from the previous versions. It breaks the “one size fits all” approach with Profiles and improves on the Java EE 5 developer productivity features. It enables extensibility by embracing open source libraries and frameworks such that they are treated as first class citizens of the platform. NetBeans, Eclipse, and IntelliJ provide extensive tooling for Java EE 6.
But how can you leverage all of this on a cloud ?
GlassFish v3, the Reference Implementation of Java EE 6, can easily run on multiple cloud infrastructures. This talk will provide a brief introduction to Java EE 6 and GlassFish v3. The attendees will learn how to create a simple Java EE 6 sample application and deploy them on GlassFish v3 running locally. Then it will deploy that sample using Amazon, RightScale, Joyent, and Elastra cloud infrastructures. It will also show how servers are dynamically provisioned in some environments to meet the demand. The talk will also explain the advantages of each approach enabling you to choose the optimal strategy for your environment.
Takeaways from the session
The attendees will be able to learn how to deploy a Java EE 6 application in different cloud environments. They’ll also learn about the pros/cons of these infrastructures.
Disaggregated Networking - The Drivers, the Software & The High AvailabilityOpen Networking Summit
Dis-agregration is real… This trend started with SDN and the separation of Data plane and Control plane. The scope has expanded to include separate of hardware and software and created a whole new industry of white boxes, general purpose X86 commodity hardware. All three markets - Cloud, Enterprise and Carriers are now engaged in various solutions inside the Data Center. The disaggregation is impacted all parts of the network including Access and Edge layers.
MariaDB/MySQL pitfalls - And how to come out again...FromDual GmbH
During the last conferences the audience was asking for more war stories than just new features.
In this presentation we have a look at the most often seen problems as a MariaDB/MySQL consultant in field.
MariaDB / MySQL tripping hazard and how to get out again?FromDual GmbH
MySQL is NOT MariaDB, KISS, MyISAM Table Locking, big ibdata1, Noisy Neighbours, No BLOBs in a RDBMS, Disk full!, Locking, Crash, Out of Memory, Oom, Restart, Crash with Stacktrace, Tables without a Primary Key, Server has gone away! NUMA, Slave Lag, Sending data, Too many connections, Simple Query Tuning, Galera Cluster, Progress bar
More Related Content
Similar to Percona Live: Various MySQL High Availability (HA) Solutions
High Availability Architecture for Legacy Stuff - a 10.000 feet overviewMarco Amado
An overview of the tools and tricks you could use to turn a monolithic big pile of... Apache, PHP, and MariaDB into an awesome high-availability, load balanced, shiny new pile of... Apache, PHP, and MariaDB. Zero, or almost zero changes to the codebase.
CPN208 Failures at Scale & How to Ride Through Them - AWS re: Invent 2012Amazon Web Services
At scale, rare and unexpected events will happen. Things eventually will go wrong. This talk dives into what can go wrong at scale and how to architect applications to ride through disaster obliviously. We’ll talk about AWS infrastructure design including Regions and Availability Zones and show how applications can be written and operated to best exploit this industry-unique infrastructure redundancy model. Believing that experience is one of the best teachers, we will go through some of the more interesting and educational industry post mortems including some experienced at AWS to motivate these application design decisions and show how they can mitigate the damage of the truly unexpected.
Behind the Scenes at LiveJournal: Scaling StorytimeSergeyChernyshev
Brad talks about clustering setups using MySQL and DRDB and their Open Source software most of which he wrote initially and continues to develop.
A lot of these techniques and/or software is used by many other companies as well - among them Flickr/Yahoo! and Facebook.
Running your Java EE 6 applications in the CloudIndicThreads
Session Presented @IndicThreads Cloud Computing Conference, Pune, India ( http://u10.indicthreads.com )
------------
The Java EE 6 platform is an extreme makeover from the previous versions. It breaks the “one size fits all” approach with Profiles and improves on the Java EE 5 developer productivity features. It enables extensibility by embracing open source libraries and frameworks such that they are treated as first class citizens of the platform. NetBeans, Eclipse, and IntelliJ provide extensive tooling for Java EE 6.
But how can you leverage all of this on a cloud ?
GlassFish v3, the Reference Implementation of Java EE 6, can easily run on multiple cloud infrastructures. This talk will provide a brief introduction to Java EE 6 and GlassFish v3. The attendees will learn how to create a simple Java EE 6 sample application and deploy them on GlassFish v3 running locally. Then it will deploy that sample using Amazon, RightScale, Joyent, and Elastra cloud infrastructures. It will also show how servers are dynamically provisioned in some environments to meet the demand. The talk will also explain the advantages of each approach enabling you to choose the optimal strategy for your environment.
Takeaways from the session
The attendees will be able to learn how to deploy a Java EE 6 application in different cloud environments. They’ll also learn about the pros/cons of these infrastructures.
Disaggregated Networking - The Drivers, the Software & The High AvailabilityOpen Networking Summit
Dis-agregration is real… This trend started with SDN and the separation of Data plane and Control plane. The scope has expanded to include separate of hardware and software and created a whole new industry of white boxes, general purpose X86 commodity hardware. All three markets - Cloud, Enterprise and Carriers are now engaged in various solutions inside the Data Center. The disaggregation is impacted all parts of the network including Access and Edge layers.
Similar to Percona Live: Various MySQL High Availability (HA) Solutions (20)
MariaDB/MySQL pitfalls - And how to come out again...FromDual GmbH
During the last conferences the audience was asking for more war stories than just new features.
In this presentation we have a look at the most often seen problems as a MariaDB/MySQL consultant in field.
MariaDB / MySQL tripping hazard and how to get out again?FromDual GmbH
MySQL is NOT MariaDB, KISS, MyISAM Table Locking, big ibdata1, Noisy Neighbours, No BLOBs in a RDBMS, Disk full!, Locking, Crash, Out of Memory, Oom, Restart, Crash with Stacktrace, Tables without a Primary Key, Server has gone away! NUMA, Slave Lag, Sending data, Too many connections, Simple Query Tuning, Galera Cluster, Progress bar
In this presentation we discuss the New Features of MariaDB 10.4. First we give a short overview of the MariaDB Branches and Forks. Then we talk about the announced IPO. Technically we cover topics like Authentication, Accounts, InnoDB, Optimizer improvements, Application-Time Period Tables the new Backup Stage Galera 4 and other changes...
MariaDB 10.4 became General Available (GA = ready for production) this summer. So it is time to look at the new Features in MariaDB 10.4. After a short intro about history we look for the reason of broad usage of MariaDB nowadays. Most important improvements where in User Authentication, InnoDB improvements, and Optimizer enhancements. A completely New Feature is Application-Time Period Tables. Backup got a new Locking behaviour so LVM snapshots are possible and officially supported now. And last but not least MariaDB 10.4 comes with Galera 4.
MariaDB 10.2 New Features for Developers, Administrators and DevOps. Window Functions, Common Table Expressions, Check Constraints, GeoJSON, GIS, JSON, Oracle compatibility and MariaDB Connectors
Der Datenbank-Backup ist gemacht - was nun?FromDual GmbH
* Datenbank-Backup – welcher Zweck?
* Tauglichkeit des Backup, Verifikation
* Echtdaten vollständig nutzen
* Dem Datenschutz genügen
* Material für die Entwicklung
* Automatisierung
Weltweite Produktionsdatenverwaltung mit MySQL-ReplikationFromDual GmbH
Weltweite Produktionsdatenverwaltung mit MySQL
* Ausgangslage
* Probleme die sich stellen
* Wer darf welche Daten kriegen?
* Wie werden Daten verteilt?
* Produktionsdaten zurück?
* MySQL multi-Source Replikation
* Bertriebsverantwortung
* Hochverfügbarkeit
* Sensitive Daten
* Wer darf welche Daten sehen?
* MySQL Row Filterung
* Nachträgliche Forderungen
MySQL Performance Tuning für Oracle-DBA'sFromDual GmbH
MySQL Performance Tuning
* Was ist Performance?
* Was kostet Performance?
* Tuning Massnahmen
* MySQL Konfiguration
* Wo schauen?
* Langsame Abfragen finden
* Optimiere das Query!
* Monitoring
Reading MySQL fingerprints
Every MySQL Database has its typical fingerprints. They can be seen with SHOW GLOBAL STATUS;
How you interprete them you will find in this presentation.
20 Comprehensive Checklist of Designing and Developing a WebsitePixlogix Infotech
Dive into the world of Website Designing and Developing with Pixlogix! Looking to create a stunning online presence? Look no further! Our comprehensive checklist covers everything you need to know to craft a website that stands out. From user-friendly design to seamless functionality, we've got you covered. Don't miss out on this invaluable resource! Check out our checklist now at Pixlogix and start your journey towards a captivating online presence today.
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofsAlex Pruden
This paper presents Reef, a system for generating publicly verifiable succinct non-interactive zero-knowledge proofs that a committed document matches or does not match a regular expression. We describe applications such as proving the strength of passwords, the provenance of email despite redactions, the validity of oblivious DNS queries, and the existence of mutations in DNA. Reef supports the Perl Compatible Regular Expression syntax, including wildcards, alternation, ranges, capture groups, Kleene star, negations, and lookarounds. Reef introduces a new type of automata, Skipping Alternating Finite Automata (SAFA), that skips irrelevant parts of a document when producing proofs without undermining soundness, and instantiates SAFA with a lookup argument. Our experimental evaluation confirms that Reef can generate proofs for documents with 32M characters; the proofs are small and cheap to verify (under a second).
Paper: https://eprint.iacr.org/2023/1886
Essentials of Automations: The Art of Triggers and Actions in FMESafe Software
In this second installment of our Essentials of Automations webinar series, we’ll explore the landscape of triggers and actions, guiding you through the nuances of authoring and adapting workspaces for seamless automations. Gain an understanding of the full spectrum of triggers and actions available in FME, empowering you to enhance your workspaces for efficient automation.
We’ll kick things off by showcasing the most commonly used event-based triggers, introducing you to various automation workflows like manual triggers, schedules, directory watchers, and more. Plus, see how these elements play out in real scenarios.
Whether you’re tweaking your current setup or building from the ground up, this session will arm you with the tools and insights needed to transform your FME usage into a powerhouse of productivity. Join us to discover effective strategies that simplify complex processes, enhancing your productivity and transforming your data management practices with FME. Let’s turn complexity into clarity and make your workspaces work wonders!
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024Neo4j
Neha Bajwa, Vice President of Product Marketing, Neo4j
Join us as we explore breakthrough innovations enabled by interconnected data and AI. Discover firsthand how organizations use relationships in data to uncover contextual insights and solve our most pressing challenges – from optimizing supply chains, detecting fraud, and improving customer experiences to accelerating drug discoveries.
UiPath Test Automation using UiPath Test Suite series, part 6DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 6. In this session, we will cover Test Automation with generative AI and Open AI.
UiPath Test Automation with generative AI and Open AI webinar offers an in-depth exploration of leveraging cutting-edge technologies for test automation within the UiPath platform. Attendees will delve into the integration of generative AI, a test automation solution, with Open AI advanced natural language processing capabilities.
Throughout the session, participants will discover how this synergy empowers testers to automate repetitive tasks, enhance testing accuracy, and expedite the software testing life cycle. Topics covered include the seamless integration process, practical use cases, and the benefits of harnessing AI-driven automation for UiPath testing initiatives. By attending this webinar, testers, and automation professionals can gain valuable insights into harnessing the power of AI to optimize their test automation workflows within the UiPath ecosystem, ultimately driving efficiency and quality in software development processes.
What will you get from this session?
1. Insights into integrating generative AI.
2. Understanding how this integration enhances test automation within the UiPath platform
3. Practical demonstrations
4. Exploration of real-world use cases illustrating the benefits of AI-driven test automation for UiPath
Topics covered:
What is generative AI
Test Automation with generative AI and Open AI.
UiPath integration with generative AI
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...SOFTTECHHUB
The choice of an operating system plays a pivotal role in shaping our computing experience. For decades, Microsoft's Windows has dominated the market, offering a familiar and widely adopted platform for personal and professional use. However, as technological advancements continue to push the boundaries of innovation, alternative operating systems have emerged, challenging the status quo and offering users a fresh perspective on computing.
One such alternative that has garnered significant attention and acclaim is Nitrux Linux 3.5.0, a sleek, powerful, and user-friendly Linux distribution that promises to redefine the way we interact with our devices. With its focus on performance, security, and customization, Nitrux Linux presents a compelling case for those seeking to break free from the constraints of proprietary software and embrace the freedom and flexibility of open-source computing.
Maruthi Prithivirajan, Head of ASEAN & IN Solution Architecture, Neo4j
Get an inside look at the latest Neo4j innovations that enable relationship-driven intelligence at scale. Learn more about the newest cloud integrations and product enhancements that make Neo4j an essential choice for developers building apps with interconnected data and generative AI.
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionAggregage
Join Maher Hanafi, VP of Engineering at Betterworks, in this new session where he'll share a practical framework to transform Gen AI prototypes into impactful products! He'll delve into the complexities of data collection and management, model selection and optimization, and ensuring security, scalability, and responsible use.
Climate Impact of Software Testing at Nordic Testing DaysKari Kakkonen
My slides at Nordic Testing Days 6.6.2024
Climate impact / sustainability of software testing discussed on the talk. ICT and testing must carry their part of global responsibility to help with the climat warming. We can minimize the carbon footprint but we can also have a carbon handprint, a positive impact on the climate. Quality characteristics can be added with sustainability, and then measured continuously. Test environments can be used less, and in smaller scale and on demand. Test techniques can be used in optimizing or minimizing number of tests. Test automation can be used to speed up testing.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIVladimir Iglovikov, Ph.D.
Presented by Vladimir Iglovikov:
- https://www.linkedin.com/in/iglovikov/
- https://x.com/viglovikov
- https://www.instagram.com/ternaus/
This presentation delves into the journey of Albumentations.ai, a highly successful open-source library for data augmentation.
Created out of a necessity for superior performance in Kaggle competitions, Albumentations has grown to become a widely used tool among data scientists and machine learning practitioners.
This case study covers various aspects, including:
People: The contributors and community that have supported Albumentations.
Metrics: The success indicators such as downloads, daily active users, GitHub stars, and financial contributions.
Challenges: The hurdles in monetizing open-source projects and measuring user engagement.
Development Practices: Best practices for creating, maintaining, and scaling open-source libraries, including code hygiene, CI/CD, and fast iteration.
Community Building: Strategies for making adoption easy, iterating quickly, and fostering a vibrant, engaged community.
Marketing: Both online and offline marketing tactics, focusing on real, impactful interactions and collaborations.
Mental Health: Maintaining balance and not feeling pressured by user demands.
Key insights include the importance of automation, making the adoption process seamless, and leveraging offline interactions for marketing. The presentation also emphasizes the need for continuous small improvements and building a friendly, inclusive community that contributes to the project's growth.
Vladimir Iglovikov brings his extensive experience as a Kaggle Grandmaster, ex-Staff ML Engineer at Lyft, sharing valuable lessons and practical advice for anyone looking to enhance the adoption of their open-source projects.
Explore more about Albumentations and join the community at:
GitHub: https://github.com/albumentations-team/albumentations
Website: https://albumentations.ai/
LinkedIn: https://www.linkedin.com/company/100504475
Twitter: https://x.com/albumentations
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfPaige Cruz
Monitoring and observability aren’t traditionally found in software curriculums and many of us cobble this knowledge together from whatever vendor or ecosystem we were first introduced to and whatever is a part of your current company’s observability stack.
While the dev and ops silo continues to crumble….many organizations still relegate monitoring & observability as the purview of ops, infra and SRE teams. This is a mistake - achieving a highly observable system requires collaboration up and down the stack.
I, a former op, would like to extend an invitation to all application developers to join the observability party will share these foundational concepts to build on:
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!SOFTTECHHUB
As the digital landscape continually evolves, operating systems play a critical role in shaping user experiences and productivity. The launch of Nitrux Linux 3.5.0 marks a significant milestone, offering a robust alternative to traditional systems such as Windows 11. This article delves into the essence of Nitrux Linux 3.5.0, exploring its unique features, advantages, and how it stands as a compelling choice for both casual users and tech enthusiasts.
Pushing the limits of ePRTC: 100ns holdover for 100 daysAdtran
At WSTS 2024, Alon Stern explored the topic of parametric holdover and explained how recent research findings can be implemented in real-world PNT networks to achieve 100 nanoseconds of accuracy for up to 100 days.
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
Securing your Kubernetes cluster_ a step-by-step guide to success !
Percona Live: Various MySQL High Availability (HA) Solutions
1. Various MySQL
High Availability (HA) Solutions
Percona Live MySQL Conference,
London, Oct 24th and 25th, 2011
Oli Sennhauser
Senior MySQL Consultant at FromDual GmbH
oli.sennhauser@fromdual.com
www.fromdual.com 1
2. About FromDual GmbH (LLC)
● FromDual provides neutral and independent:
● Consulting for MySQL (on-site and remote)
● Remote-DBA Services / MySQL Operations
● Premium Support (ex. MySQL Basic and Silver)
● Training for MySQL
● Consulting partner of the Open Database Alliance
(ODBA.org)
● Oracle Silver Partner (OPN)
● More information you can find at:
http://www.fromdual.com
www.fromdual.com 2
3. Contents
Various MySQL High Availability (HA) Solu-
tions
➢
MySQL Replication / MySQL Scale-Out
➢
High-Availability with Replication
➢
Master-Master Replication
➢
Active/passive fail-over with SAN
➢
Active/passive fail-over with DRBD
➢
Galera (synchronous) Replication
➢
MySQL Cluster
➢
Tungsten Replicator
www.fromdual.com 3
4. MySQL Scale-Out vs Scale-Up
● Costs
Scale-Up
● MySQL Design
● Physical bottlenecks
● „Relaxation of Constraints“
Scale-Out
www.fromdual.com 4
5. High-Availability with Replication
Application
read only
VIP rtw
Slave Reporting
Slave M Master
async!
Slave Backup
Slave 1 Slave 2 Slave 3
...
Load balancer
● Fail-over?
www.fromdual.com 5
7. Advantages / Disadvantages
Simple „standard“ Set-up
Master is a SpoF! (Single Point of Failure)
If master fails → which Slave becomes new master?
Switch → a lot of work, delicate!
There are tools to help (MMM v1/v2, MHA, Tungsten, ...)
Fail-over Site is already warm/hot!
Works very well if r >> w
Data inconsistencies (mk-table-check/sync)
Delay Master/Slave
Slave lagging (Slave as bottleneck)
www.fromdual.com 7
10. Advantages / Disadvantages
Only slightly more complex than Master/Slave
Careful when writing on both Masters!
For a “balanced” system at least 2 Slaves are needed
You will NOT get more I/O throughput!
Data in-consitency possible because of asynchronous replication
Fail-over Site is already warm/hot!
Works very well if r >> w
Data inconsistencies (mk-table-check/sync)
If Master fails, half of the Slave are out of sync!
A little more complicated to (re-)set-up
Delay Master/Slave
Slave lagging (Slave as bottleneck)
www.fromdual.com 10
11. Active/passive fail-over with SAN
App App App
VIP
M' M
SAN
Slave1 Slave2 Slave3
Load balancing (LB)
www.fromdual.com 11
12. Active/passive fail-over with SAN
● SPOF! App App App
VIP
M' M
!!! SAN
Slave1 Slave2 Slave3
Load balancing (LB)
www.fromdual.com 12
13. Advantages / Disadvantages
Synchronous replication
● I/O throughput depends on SAN (I/O system)
No data IN-consistencies possible
SAN is a SpoF!
Expensive if SAN is not available yet.
SAN's are not easy to handle!
Fail-over Site is still cold!
Half of the hardware is idling
Only one possible Data source
Slaves are automatically and properly fail-overed
Far more complex to set-up
www.fromdual.com 13
16. Advantages / Disadvantages
Synchronous replication
No data IN-consistencies possible
I/O throughput lower
Slaves are automatically and properly fail-
overed
Fail-over Site is still cold!
Half of the hardware is idling
Only one possible Data source
Far more complex to set-up
www.fromdual.com 16
19. Advantages / Disadvantages
Synchronous replication
Based on InnoDB SE (other SE theoretically possible)
Active-active real multi-master topology
Read and write to any cluster node
Automatic membership control
True parallel replication, on row level
No slave lag
No lost transactions
Read AND write scalability (Read Scale-Out!)
Patch off MySQL binaries (Codership provides binaries)
Be aware of Hot Spots on rows
Higher probability of dead locks
Full sync blocks for writing → 3 nodes
Initial sync for very big databases (>>50 Gbyte) with mysqldump
www.fromdual.com 19
20. MySQL Cluster
App App App
Load balancing (LB)
SQL nodes MySQL MySQL MySQL
Server Server Server
MGM client MGM client
NDB Cluster
(Data nodes)
ndbd ndbd
mgmd mgmd
ndbd ndbd
Data nodes / Mgmt nodes
www.fromdual.com 20
21. Advantages / Disadvantages
Synchronous replication
No data IN-consistencies possible
Extremely high throughput (if done correctly)
Good for read AND write
New beast to tame (MySQL Cluster != MySQL!)
More complex to set-up and operate than normal MySQL
Not for disaster fail-over (<= 7.1)
Bad for complex queries (Joins, <= 7.1)
At least 3 machines (better 4) are need.
High demand on RAM and Network
Only one possible Data source
www.fromdual.com 21
23. Advantages / Disadvantages
● Similar to MySQL Replication
Introduces Global Transaction-ID
Asynchronous Replication
Bases on MySQL Binary Log
For: MySQL, PostgreSQL, Oracle and Drizzle
Requires Java and Ruby?
Multi Source Replication
Failover should be easier to handle
www.fromdual.com 23