Percona XtraDB Cluster 5.7 Enhancements Performance, Security, and More

Similar documents
HA solution with PXC-5.7 with ProxySQL. Ramesh Sivaraman Krunal Bauskar

Kenny Gryp. Ramesh Sivaraman. MySQL Practice Manager. QA Engineer 2 / 60

Percona XtraDB Cluster

Percona XtraDB Cluster MySQL Scaling and High Availability with PXC 5.7 Tibor Korocz

MySQL High Availability

Percona XtraDB Cluster ProxySQL. For your high availability and clustering needs

MySQL Replication Options. Peter Zaitsev, CEO, Percona Moscow MySQL User Meetup Moscow,Russia

Understanding Percona XtraDB Cluster 5.7 Operation and Key Algorithms. Krunal Bauskar PXC Product Lead (Percona Inc.)

Migrating to XtraDB Cluster 2014 Edition

Percona Software & Services Update

Using Percona Monitoring and Management to Troubleshoot MySQL Performance Issues

Which technology to choose in AWS?

Choosing a MySQL HA Solution Today

What s New in MySQL and MongoDB Ecosystem Year 2017

Percona XtraDB Cluster powered by Galera. Peter Zaitsev CEO, Percona Slide Credits: Vadim Tkachenko Percona University, Washington,DC Sep 12,2013

Percona Software & Services Update

What s new in Percona Xtradb Cluster 5.6. Jay Janssen Lead Consultant February 5th, 2014

Highly Available Database Architectures in AWS. Santa Clara, California April 23th 25th, 2018 Mike Benshoof, Technical Account Manager, Percona

Aurora, RDS, or On-Prem, Which is right for you

Percona Software & Services Update

Choosing a MySQL HA Solution Today. Choosing the best solution among a myriad of options

MySQL High Availability Solutions. Alex Poritskiy Percona

Why Choose Percona Server For MySQL? Tyler Duzan

How Percona Contributes to Open Source Database Ecosystem. Peter Zaitsev 5 October 2016

Using MySQL for Distributed Database Architectures

FromDual Annual Company Meeting

Accelerate MySQL for Demanding OLAP and OLTP Use Case with Apache Ignite December 7, 2016

Geographically Dispersed Percona XtraDB Cluster Deployment. Marco (the Grinch) Tusa September 2017 Dublin

Lessons from database failures

Migrating to Aurora MySQL and Monitoring with PMM. Percona Technical Webinars August 1, 2018

Running MySQL on AWS. Michael Coburn Wednesday, April 15th, 2015

MySQL High Availability with Percona XtraDB Cluster 5.7 Hands on tutorial!

Deploying PXC in Kubernetes / Openshift. Alexander Rubin, Percona

MySQL Backup solutions. Liz van Dijk Zarafa Summer Camp - June 2012

Monitoring MySQL Performance with Percona Monitoring and Management

MySQL In the Cloud. Migration, Best Practices, High Availability, Scaling. Peter Zaitsev CEO Los Angeles MySQL Meetup June 12 th, 2017.

Consistent Reads Using ProxySQL and GTID. Santa Clara, California April 23th 25th, 2018

MySQL Multi-Site/Multi-Master Done Right

ZFS and MySQL on Linux, the Sweet Spots

MySQL Group Replication & MySQL InnoDB Cluster

Open Source Database Performance Optimization and Monitoring with PMM. Fernando Laudares, Vinicius Grippa, Michael Coburn Percona

MySQL usage of web applications from 1 user to 100 million. Peter Boros RAMP conference 2013

MariaDB Enterprise Cluster. MariaDB Training

PXC loves firewalls (and System Admins loves iptables) Written by Marco Tusa Monday, 18 June :00 - Last Updated Wednesday, 18 July :25

MySQL Replication Advanced Features In 20 minutes

MySQL Performance Optimization and Troubleshooting with PMM. Peter Zaitsev, CEO, Percona

Everything You Need to Know About MySQL Group Replication

Percona XtraDB Cluster

How to Implement ProxySQL with AWS Aurora. Written by Marco Tusa Wednesday, 04 April :00 - Last Updated Wednesday, 04 April :37

Amazon Aurora Deep Dive

Design Patterns for Large- Scale Data Management. Robert Hodges OSCON 2013

MySQL High Availability. Michael Messina Senior Managing Consultant, Rolta-AdvizeX /

ProxySQL - GTID Consistent Reads. Adaptive query routing based on GTID tracking

Percona Live Europe 2016 Use ProxySQL to Improve Your MySQL High Availability Solution Marco Tusa Manager Consulting Amsterdam, Netherlands October 3

BERLIN. 2015, Amazon Web Services, Inc. or its affiliates. All rights reserved

Choosing a MySQL High Availability Solution. Marcos Albe, Percona Inc. Live Webinar June 2017

Architecture and Design of MySQL Powered Applications. Peter Zaitsev CEO, Percona Highload Moscow, Russia 31 Oct 2014

MySQL 5.7 For Operational DBAs an Introduction. Peter Zaitsev, CEO, Percona February 16, 2016 Percona Technical Webinars

G a l e r a C l u s t e r Schema Upgrades

Monitoring MySQL Performance with Percona Monitoring and Management

MySQL Replication: What's New In MySQL 5.7 and MySQL 8. Luís Soares Software Development Director MySQL Replication

The Hazards of Multi-writing in a Dual-Master Setup

Mysql Cluster Global Schema Lock

To Shard or Not to Shard That is the question! Peter Zaitsev April 21, 2016

MySQL Replication. Rick Golba and Stephane Combaudon April 15, 2015

Principal Solutions Architect. Architecting in the Cloud

Deploying Tableau at Enterprise Scale in the Cloud

Why we re excited about MySQL 8

Percona Server for MySQL 8.0 Walkthrough

A Support Engineer Walkthrough on ptstalk

Scale out Read Only Workload by sharing data files of InnoDB. Zhai weixiang Alibaba Cloud

IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including:

Using MHA in and out of the Cloud. Garrick Peterson Percona University, Toronto 2013

MySQL Backup Best Practices and Case Study:.IE Continuous Restore Process

High availability with MariaDB TX: The definitive guide

Migrating Enterprise Applications to the Cloud Session 672. Leighton L. Nelson

The Exciting MySQL 5.7 Replication Enhancements

MySQL Database Scalability

Upgrading MySQL Best Practices. Apr 11-14, 2011 MySQL Conference and Expo Santa Clara,CA by Peter Zaitsev, Percona Inc

Various MySQL High Availability (HA) Solutions

Switching to Innodb from MyISAM. Matt Yonkovit Percona

Percona XtraDB Cluster Tutorial

Amazon AWS and RDS, moving towards it. Dimitri Vanoverbeke Solution Percona

MySQL: Scaling & High Availability

MariaDB 10.3 vs MySQL 8.0. Tyler Duzan, Product Manager Percona

Accelerate MySQL for Demanding OLAP and OLTP Use Cases with Apache Ignite. Peter Zaitsev, Denis Magda Santa Clara, California April 25th, 2017

MySQL InnoDB Cluster. New Feature in MySQL >= Sergej Kurakin

MySQL for Database Administrators Ed 4

MyRocks deployment at Facebook and Roadmaps. Yoshinori Matsunobu Production Engineer / MySQL Tech Lead, Facebook Feb/2018, #FOSDEM #mysqldevroom

Agenda. AWS Database Services Traditional vs AWS Data services model Amazon RDS Redshift DynamoDB ElastiCache

Percona Live Europe 2016 Use ProxySQL to Improve Your MySQL High Availability Solution

Innodb Performance Optimization

WHITEPAPER. MemSQL Enterprise Feature List

Backup & Restore. Maximiliano Bubenick Sr Remote DBA

Mysql Cluster Could Not Acquire Global Schema Lock

MongoDB Shootout: MongoDB Atlas, Azure Cosmos DB and Doing It Yourself

Fortify your MySQL data security in AWS using ProxySQL and Firewalling. Barcelona 21 June, 2018

High Noon at AWS. ~ Amazon MySQL RDS versus Tungsten Clustering running MySQL on AWS EC2

Jailbreaking MySQL Replication Featuring Tungsten Replicator. Robert Hodges, CEO, Continuent

Percona Xtrabackup: Hot Backup Solution for MySQL

Transcription:

Percona XtraDB Cluster 5.7 Enhancements Performance, Security, and More Michael Coburn, Product Manager, PMM Percona Live Dublin 2017 1

Your Presenter Product Manager for PMM (Percona Monitoring and Management) At Percona for ~5 years through 6 different roles Consultant, Managing Consultant, Principal Architect, Technical Account Manager, Principal Support Engineer Living in México Will be at AWS re:invent in November! 2

Agenda What is it, why is it unique, and what limitations exist What makes it unique as an HA solution What's new in PXC 5.7 PXC + ProxySQL PXC + PMM 3

PXC refresher What has gone before 4

Setting the stage PXC is Virtually-synchronous multi-master database cluster Direct reads and writes to any node Highly Available - lose any individual node without interruption No complex failover procedures Enhanced options Improved Commit Monitor Bug-fixes, PXC Strict mode 5

Use cases Environments with strict durability requirements Partitioned node will refuse reads/writes Write to multiple nodes simultaneously while keeping data consistent Flow control throttles writes so that slow applier nodes can catch up Reduced failover time Partitioned node will automatically recover and re-join the cluster Weighted Quorum segments for WAN, optional to use Arbitrator role 6

Limitations Large and long-running transactions higher chance of failure non-efficient replication of large transactions Hotspots updating same set of rows in parallel General method of resolution - write to just 1 node in the cluster 7

What's unique about PXC Versus Galera, MariadB Cluster, InnoDB Group Replication (GR) 8

PXC vs MariaDB Cluster vs InnoDB GR Galera/MariaDB Cluster PXC Automatic Node Provisioning Load Balancer Integration Enforcing Best Practices Mature Technology Multi-Master WAN Support Performance Supported by Percona 9 InnoDB GR

Improved Commit Monitor pre-commit hook split into two actions: replicate (storage engine PREPARE stage) add write-set to group-channel pre-commit enter commit-monitor, to enforce commit ordering of transactions released once transaction added to flush-stage of group commit (interim-commit) with log-bin off, released before REDO flush stage begins 10

PXC strict mode Only allow InnoDB operations Disallow binlog_format!=row Requires Primary Key on tables Disables unsupported features GET_LOG, LOCK TABLES FLUSH TABLES WITH READ LOCK tx_isolation=serializable 11

PXC security a. Secure the network b. Encrypt PXC traffic c. Encrypt data at rest 12

PXC security - network 13 Use a firewall on each node 3306 is used for MySQL client connections and SST (State Snapshot Transfer) via mysqldump. 4444 is used for SST via rsync and Percona XtraBackup. 4567 is used for write-set replication traffic (over TCP) and multicast replication (over TCP and UDP). 4568 is used for IST (Incremental State Transfer).

PXC security - encrypted PXC traffic Generate keys Certificate Authority (CA) key and certificate Server key and certificate Client key and certificate Enable encryption Database traffic MySQL client SSL Replication traffic Write Set IST - Incremental State Transfer Service messages (node sync) SST - State Snapshot Transfer 14 rsync, mysqldump, xtrabackup pxc-encrypt-cluster-traffic=on Automatic enabling of SSL, but need the certificates in place beforehand

PXC security - Encrypt data at rest Using MySQL's InnoDB Tablespace Encryption Two tier encryption key architecture master encryption key tablespace keys Defined during CREATE TABLE ENCRYPTION = 'Y'; 15

What's new in PXC 16

PXC 5.7 Latest is PXC 5.7.19 - Sept 22, 2017 Version compatibility check added If donor is 5.6 and joiner is 5.7: A warning is printed to perform mysql_upgrade If donor is 5.7 and joiner is 5.6: An error is printed and SST is rejected performance_schema.pxc_cluster_view Support for PXB 2.4.7 wresp_debug flag encrypt-threads backup-threads (--parallel) 17

OLTP concurrency improvements Multiple threads using OLTP_RW, UPDATE_KEY, and UPDATE_NOKEY tests with single writer New defaults gcs.fc_limit=100 (was 16) evs.send_window=10 (was 4) evs.user_send_window=4 (was 2) sync_binlog=1 in this test 18

Performance from 5.7.16 to 5.7.17 log-bin off 19

Cluster node joining speed Test case: Shut down one node Create single table with sysbench Start the node and re-join Smaller is better 20

New status variables WSREP tracking wsrep_flow_control_interval_{low,high} wsrep_ist_receive_seqno_{start,current,end} 21

End of Life'd platforms August 2017 Red Hat Enterprise Linux 5 (Tikanga) Ubuntu 12.04 LTS (Precise Pangolin) 22

PXC + ProxySQL Load balancer for PXC 23

PXC + ProxySQL ProxySQL - a high-performance SQL proxy Runs as a daemon watched by a monitoring process ProxySQL supports Percona XtraDB Cluster node status check using scheduler 24

PXC + ProxySQL proxysql-admin Configure PXC nodes in ProxySQL - singlewrite or loadbal ProxySQL schedulers Health checks - cluster node membership and desynced state, re-configure nodes PXC maintenance mode pxc_main_mode=maintenance SHUTDOWN Marks node as OFFLINE vs OFFLINE_SOFT proxysql-admin checks this and configures ProxySQL to rebalance traffic 25

Configuring ProxySQL 26

PXC + PMM You knew this was coming.. didn't my title of Product Manager for PMM give it away?! 27

PXC/Galera graphs - 1 28

PXC/Galera Graphs - 2 29

PXC/Galera Cluster Overview - 1 30

PXC/Galera Cluster Overview - 2 31

ProxySQL - 1 32

ProxySQL - 2 33

Thank You Sponsors! 34

SAVE THE DATE! April 23-25, 2018 Santa Clara Convention Center CALL FOR PAPERS OPENING SOON! 35 www.perconalive.com

Talk to Percona Experts at AWS re:invent! Database Performance for Cloud Deployments Percona Support and Managed Services Amazon RDS, Aurora, Roll Your Own MySQL/MariaDB/MongoDB Reduce costs and optimize performance Percona Monitoring and Management Demos Point-in-time visibility and historical trending of database performance Detailed query analytics Booth #1138 36

Rate this session 37

DATABASE PERFORMANCE Database Performance Matters MATTERS