19
Javier Tomás Zon Platform Reliable Engineer High Availability com MySQL Percona XtraDB Cluster Oct, 2015

Percona XtraDB Cluster - Small Presentation

Embed Size (px)

Citation preview

Page 1: Percona XtraDB Cluster - Small Presentation

Javier Tomás Zon Platform Reliable Engineer

High Availability com MySQL Percona XtraDB Cluster

Oct, 2015

Page 2: Percona XtraDB Cluster - Small Presentation

www.percona.com

Database Performance Consultants

Page 3: Percona XtraDB Cluster - Small Presentation

www.percona.com

Percona

MySQL

MongoDB

Page 4: Percona XtraDB Cluster - Small Presentation

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

Page 5: Percona XtraDB Cluster - Small Presentation

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...

Page 6: Percona XtraDB Cluster - Small Presentation

www.percona.com

Agenda

• Who am I?

• Scaling MySQL

• PXC #newconcept

• Simple demo

• Q&A

Page 7: Percona XtraDB Cluster - Small Presentation

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)

Page 8: Percona XtraDB Cluster - Small Presentation

www.percona.com

MySQL is not web scale

Page 9: Percona XtraDB Cluster - Small Presentation

www.percona.com

Scale MySQL

Page 10: Percona XtraDB Cluster - Small Presentation

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

Page 11: Percona XtraDB Cluster - Small Presentation

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

Page 12: Percona XtraDB Cluster - Small Presentation

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

Page 13: Percona XtraDB Cluster - Small Presentation

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"

Page 14: Percona XtraDB Cluster - Small Presentation

www.percona.com

Scaling MySQL

Reads & Writes

Reads

synchronous replication

Page 15: Percona XtraDB Cluster - Small Presentation

www.percona.com

Demo!

Page 16: Percona XtraDB Cluster - Small Presentation

www.percona.com

Questions?

Page 17: Percona XtraDB Cluster - Small Presentation

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

Page 18: Percona XtraDB Cluster - Small Presentation

www.percona.com

Questions?