cross | percona - meetup banco de dados na nuvem
TRANSCRIPT
Javier Tomás Zon Platform Reliable Engineer
High Availability com MySQL Percona XtraDB Cluster
Oct, 2015
www.percona.com
Database Performance Consultants
www.percona.com
Percona
MySQL
MongoDB
www.percona.com
Percona Supports
• MySQL • MySQL • MariaDB • Percona Server • MySQL NDB
• Galera Cluster • Percona XtraDB Cluster • MariaDB Cluster
• MongoDB • TokuMX • Percona Server for MongoDB
www.percona.com
Percona Products
• MySQL • Percona Server (MySQL) • Percona Toolkit • Percona XtraDB Cluster • Percona Xtrabackup • Many more...
• MongoDB • Percona Server for MongoDB • TokuMX SE • More coming...
www.percona.com
Agenda
• Who am I?
• Scaling MySQL
• PXC #newconcept
• Simple demo
• Q&A
www.percona.com
Who am I?
• @jtomaszon (gmail, github, facebook, twitter)
•12 years of System Administration
• 8 years working with MySQL
• 4 years working with DevOps culture
• ex-TOTVS
• One of 4 Platform Reliable Engineer
• IoT Enthusiastic (Arduino, Raspberry Pi)
www.percona.com
MySQL is not web scale
www.percona.com
Scale MySQL
www.percona.com
Percona XtraDB Cluster
• What is: • Is MySQL binary + a Galera lib • Is High Available solution for MySQL • One way to scale your DB Layer
• What is NOT: • NOT Oracle MySQL Cluster • NOT Drop-in MySQL replacement
www.percona.com
Cluster as a meeting• All current cluster members are in the room
• They all hear what is happening
• New members must be brought up to speed (SST)
• State Snapshot Transfer
• Members that leave temporarily must be caught up (IST)
• Incremental State Transfer
• Only members in the room count in the cluster
www.percona.com
Node Types
• Data Nodes • mysqld
• Galera (shared library in mysqld)
• Arbitrator Nodes • just Galera
• replication, no mysqld
• No controllers, admin, config nodes
www.percona.com
Node failure
• Node failure == timeout • writes pause
• Split brain protection
• Only the majority of the cluster
will continue
• Minority will refuse queries
• All-down needs “bootstrap"
www.percona.com
Scaling MySQL
Reads & Writes
Reads
synchronous replication
www.percona.com
Demo!
www.percona.com
Questions?
www.percona.com
Links• Percona Blog
• https://www.percona.com/blog/
• Percona YouTube Channel
• https://www.youtube.com/user/PerconaMySQL/videos
• A Nice quiz for PXC:
• https://goo.gl/ESVFGY
• Thanks to my mentors: Max Bubenick and Jay Janssen
www.percona.com
Questions?
www.percona.com
Thank You!