MySQL High Availability Solutions: MySQL Replication, MySQL Read-Scaleout, Master/Slave Replication, Master/Master Replication, active/passive fail-over Cluster with SAN or DRBD, Galera Cluster for MySQL, MySQL NDB Cluster
MySQL Tech Tour 2015 - Progettare, installare e configurare MySQL ClusterPar-Tec S.p.A.
Il TechAdvisor Mirko Conte spiega come progettare, installare e configurare MySQL Cluster, la versione di punta del database open source più utilizzato al mondo.
Durante la presentazione, Mirko ha condiviso numerose informazioni teoriche e pratiche per comprendere dove, come e quando utilizzare al meglio MySQL Cluster. In questa sessione ha trattato i seguenti punti:
- Valutare MySQL Cluster nel proprio progetto
- Esempi di architettura
- Requisiti hardware/network
- Sessione hands-on
Per saperne di più, scaricate le slide e guardate il video della presentazione del nostro TechAdvisor su http://www.par-tec.it/progettare-installare-gestire-e-ottimizzare-mysql-cluster#progettare
MySQL High Availability Solutions: MySQL Replication, MySQL Read-Scaleout, Master/Slave Replication, Master/Master Replication, active/passive fail-over Cluster with SAN or DRBD, Galera Cluster for MySQL, MySQL NDB Cluster
MySQL Tech Tour 2015 - Progettare, installare e configurare MySQL ClusterPar-Tec S.p.A.
Il TechAdvisor Mirko Conte spiega come progettare, installare e configurare MySQL Cluster, la versione di punta del database open source più utilizzato al mondo.
Durante la presentazione, Mirko ha condiviso numerose informazioni teoriche e pratiche per comprendere dove, come e quando utilizzare al meglio MySQL Cluster. In questa sessione ha trattato i seguenti punti:
- Valutare MySQL Cluster nel proprio progetto
- Esempi di architettura
- Requisiti hardware/network
- Sessione hands-on
Per saperne di più, scaricate le slide e guardate il video della presentazione del nostro TechAdvisor su http://www.par-tec.it/progettare-installare-gestire-e-ottimizzare-mysql-cluster#progettare
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
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
The document discusses common pitfalls and mistakes when using MariaDB/MySQL databases and how to avoid or recover from them, including issues related to different versions and forks of MariaDB and MySQL not being fully compatible, keeping implementations simple to avoid unnecessary complexity, and problems that can occur from table locking, disk space usage, and other operational concerns.
Weitere ähnliche Inhalte
Ähnlich wie MySQL Replikation - Die Eier legende Wollmilchsau?
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
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
The document discusses common pitfalls and mistakes when using MariaDB/MySQL databases and how to avoid or recover from them, including issues related to different versions and forks of MariaDB and MySQL not being fully compatible, keeping implementations simple to avoid unnecessary complexity, and problems that can occur from table locking, disk space usage, and other operational concerns.
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
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.
This document provides an overview of Galera Cluster for MySQL. It discusses how Galera Cluster allows for highly available, multi-master replication across multiple nodes through synchronous replication. It also covers topics like installation, configuration, operations including rolling restarts, load balancing, and catching node state changes. The document includes demonstrations of these concepts.
This document discusses high availability with Galera Cluster for MySQL. It provides an overview of Galera Cluster, including its advantages like active-active multi-master clusters and automatic node membership control. It also covers Galera Cluster installation, configuration, operations like initial cluster start and rolling restarts, load balancing, and online schema upgrades.
MySQL indexing is one of the areas where you can achieve the most performance gains. In this presentation we have a short look how we can improve MySQL performance with indexing...
The document discusses MySQL indexing and optimization. It provides an overview of indexing in MySQL, including what indexes are, how they are created, and how MySQL uses indexes to optimize queries. The document also discusses best practices for indexing, including identifying missing indexes, avoiding unnecessary indexes, and ensuring indexes have good selectivity to maximize query performance.
This document discusses MySQL performance tuning. It covers high availability solutions, MySQL system and status variables, memory usage, storage engines like InnoDB and MyISAM, monitoring tools, and the Performance Schema. Tuning levers include configuring variables related to caching, buffers, threads, and storage engines. Monitoring helps identify optimization opportunities.
MySQL Replikation - Die Eier legende Wollmilchsau?
1. www.fromdual.com
1 / 21
MySQL Replikation -
Die Eier legende Wollmilchsau?
DOAG Webinar 2015
Oli Sennhauser
Senior MySQL Consultant, FromDual GmbH
oli.sennhauser@fromdual.com
2. www.fromdual.com
2 / 21
Über FromDual GmbH
● FromDual bietet neutral und unabhängig:
● Support für MySQL, Galera Cluster und MariaDB
● remote-DBA Dienstleistungen
● Beratung für MySQL, Galera Cluster und MariaDB
● MySQL und MariaDB Schulungen
● Oracle Silber Partner (OPN)
● Mitglied bei DOAG, SOUG, /ch/open und OSBA
www.fromdual.com
3. www.fromdual.com
3 / 21
Was ist Replikation?
● „the action of copying or reproducing something“
Master Slave
Applikation Applikation Applikation
4. www.fromdual.com
4 / 21
MySQL und Replikation
● Mindestens seit 2000 (15 Jahre!)
→ robust und fehlerarm
● Im Standard (MySQL CE) enthalten
daher sehr weit verbreitet
● Sehr einfach aufzusetzen
● In vielen Varianten möglich
● Für viele verschiedene Anwendungsfälle...
8. www.fromdual.com
8 / 21
Geo-Redundanz
● Disaster fail-over
● Ausweich-Rechenzentrum
● MySQL Replikation ist asynchron und daher
sehr robust was Distanzen anbelangt.
Master Slave
9. www.fromdual.com
9 / 21
Backup vom Slave
● Backup
● verursacht Last, spült Buffer Pool durch
● blockiert MyISAM Tabellen (nicht InnoDB!)
● ev. DB stilllegen für Backup? (für Snapshot)
Master Slave
Applikation
10. www.fromdual.com
10 / 21
zeitverzögerte Replikation
● Ups!-Queries:
UPDATE employee
SET bonus = bonus + 500 WHERE id + 42;
Rows matched: 3 Changed: 3 Warnings: 0
● Echtzeitdaten verzögern (Börsenkurse)
Master Slave
Applikation
90 min
11. www.fromdual.com
11 / 21
Reporting/Auswertung
● Ähnliches Muster wie Backup
● verursacht Last, spült Buffer Pool durch
● blockiert MyISAM Tabellen (nicht InnoDB!)
● OLTP → OLAP/DWH
Master Slave
Applikation
12. www.fromdual.com
12 / 21
● massive Skalierung von Lesezugriffen
● starke Spitzen (Terroranschlag in Paris)
● hohe Bandbreite (Vergleich von Feriendesti-
nationen)
● Oft „unmögliche“ (= teure) Abfragen
Lese-Scaleout
Master
Slave
Applikation
Slave
Slave
Slave
Slave
LoadBalancer
Applikation
13. www.fromdual.com
13 / 21
ETL auf Slave
● Schreiben auf Slave!
● Löschen auf Master, aber nicht auf Slave
Master Slave
Applikation ETL
90 d 5 a360 d
14. www.fromdual.com
14 / 21
Filtern / Rewrite
● Schema-Filter auf Master (nicht empfohlen!)
● Schema- und Tabellen Filter auf Slave (OK)
● Schema-Rewrite (RENAME TABLE)
Master Slave
Applikation
Sichere Zone DMZ
15. www.fromdual.com
15 / 21
Master/Master
● Pfui! Böse...
Warum: async OHNE Konflikt-Detektion
● Macht man heute nicht mehr → Galera
● Nur wenn Datenintegrität und -konsistenz
egal sind!
Mastera
Masterp
Applikation
17. www.fromdual.com
17 / 21
Aggregator
● Multi-Source- oder Fan-in-Replikation
● MariaDB 10.0 und MySQL Labs 5.7
● Vermaschte Replikations-Setups: KISS!!!
Slave
Master1
Applikation
Master2
Master3
Applikation
Applikation
18. www.fromdual.com
18 / 21
MySQL → Fremdsysteme
● MySQL ist Open Source
d.h. man kann schauen wie's geht...
● Replikations-Datenstrom
● anzapfen und anpassen
● Tungsten Replikator:
Master Slave
Tungsten Replikator
MySQL → MySQL
MySQL → Oracle
Oracle → MySQL
Oracle → Oracle
MySQL → Hadoop
Oracle → Hadoop
MySQL → MongoDB
Oracle → MongoDB
20. www.fromdual.com
20 / 21
Wie weiter...?
● Das Datenbank-Duell:
Oracle XE versus MySQL
● Am 5. und 6. Februar 2015
● Im Derag Livinghotel Maximilian
● in Nürnberg
● http://www.doag.org/events/konferenzen/noon2noon.html
21. www.fromdual.com
21 / 21
Q & A
Fragen ?
Diskussion?
Wir haben Zeit für ein persönliches Gespräch...
● FromDual bietet neutral und unabhängig:
● Beratung
● Remote-DBA
● Support für MySQL, Galera, MariaDB und Percona Server
● Schulung
www.fromdual.com/presentations