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

Size: px
Start display at page:

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

Transcription

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

2 Percona Live 2017 Use ProxySQL to Improve Your MySQL High Availability Solution Marco tusa Santa Clara, California April 24th 27th, 2017

3 About me Marco The Grinch Open source enthusiast 3

4 Agenda Brief ProxySQL introduction How it interact Master-slave How interact with PXC Extending with scheduler ProxySQL HA Time cost 4

5 What is HA % (36 days) MySQL Replication % (8 hours) Linux Heartbeat with DRBD % (8 hours) RHCS with Shared Storage (Active/Passive) % (52 minutes) MHA with at least 3 nodes % (52 minutes) Linux Heartbeat with DRBD and Replication % (52 minutes) Linux Heartbeat with Shared Storage and Replication % (26 minutes) Multi Master (galera - percona cluster) 3 node minimum % (5 minutes) MySQL Cluster 5

6 What is HA 6

7 What is HA 7

8 Who will save the Day? 8

9 Who will save the Day? 9

10 Objectively What we have is: MySQL Group Replication 10

11 The telephone game 11

12 All talking 12

13 Black box: 13

14 Use the Right Tool for the Job 14

15 What we need 15

16 Solution should be MANAGEBLE FAST SCALABLE FREE 16

17 My Motto and do the right thing! 17

18 ProxySQL 18

19 ProxySQL 19

20 Understand the basics - what it does... Multiple Writers Query re-write Write / Read (Master/Slave) Sharding & Geographic Distribution Traffic Load dispatch (aka Mirroring) 20

21 Understand the basics how this is done? Define Users Servers group by function Host Groups Rules define what, where and how Query Rules Special Grouping for Replication Replication Host Group 21

22 Understand the basics HostGroup (HG) & Replication HG 22

23 Understand the basics Query rules 23

24 Understand the basics Scheduler 24

25 Basic scenario HG: 10 U: app_rw HG: 11 U: app_r HG: 12 U: ETL_R 25

26 Basic scenario - Users insert into mysql_users (username,password,active,default_hostgroup,default_schema) values ('app_rw','test',1,10,'test_schema'); insert into mysql_users (username,password,active,default_hostgroup,default_schema) values ('app_r','test',1,11,'test_schema'); insert into mysql_users (username,password,active,default_hostgroup,default_schema) values ('etl_r','test',1,12, etl_schema'); LOAD MYSQL USERS TO RUNTIME;SAVE MYSQL USERS TO DISK; 26

27 Basic scenario Servers / HG INSERT INTO mysql_servers (hostname,hostgroup_id,port,weight) VALUES (' ',10,3306,1000); INSERT INTO mysql_servers (hostname,hostgroup_id,port,weight, max_replication_lag) VALUES (' ',11,3306,10000,2); INSERT INTO mysql_servers (hostname,hostgroup_id,port,weight, max_replication_lag) VALUES (' ',11,3306,10000,2); INSERT INTO mysql_servers (hostname,hostgroup_id,port,weight, max_replication_lag) VALUES (' ',11,3306,1,2); INSERT INTO mysql_servers (hostname,hostgroup_id,port,weight) VALUES (' ',12,3306,10); INSERT INTO mysql_replication_hostgroups VALUES (10,11); LOAD MYSQL SERVERS TO RUNTIME; SAVE MYSQL SERVERS TO DISK; 27

28 Basic scenario Query rules insert into mysql_query_rules (username,destination_hostgroup,active,retries,match_digest,apply) values( app_rw',10,1,3,'^select.*for UPDATE',1); insert into mysql_query_rules (username,destination_hostgroup,active,retries,match_digest,apply) values( app_rw',11,1,3,'^select ',1); insert into mysql_query_rules (username,destination_hostgroup,active) values( app_r',11,1); insert into mysql_query_rules (username,destination_hostgroup,active) values('etl_r',12,1); LOAD MYSQL QUERY RULES TO RUNTIME;SAVE MYSQL QUERY RULES TO DISK; 28

29 Basic scenario with ProxySQL Writes Reads Reads 29

30 ProxySQL Replication HG danger! READ_ONLY = 0 WRITE HG READ_ONLY = 1 READ HG READ_ONLY=0 READ_ONLY=0 READ_ONLY=1 READ_ONLY=1 HG 10 & HG 11 HG 10 HG & HG:11 HG 11 30

31 ProxySQL + MHA (or any controller) Writes Reads Reads 31

32 ProxySQL + MHA (or any controller) No movable part like: VIP DNS (Route 53 or similar) No Crazy scripts to manage other proxy (ie HAProxy) 32

33 What timing with MHA? MHA discovery time (ping x 3 times) -> ~9 sec MHA recovery (binlog) variable time MHA Slave shift + Master READ-ONLY < 2 sec ProxySQL will react as soon as READ_ONLY=0 33

34 What is needed with MHA? Nothing all defaults master_ip_failover_script=master_ip_failover master_ip_online_change_script=master_ip_online_change Test it: masterha_master_switch --master_state=alive --conf=/etc/mha.cnf -- orig_master_is_new_slave --interactive=0 -- running_updates_limit=0 34

35 Consistent distributed behavior for HA? Given no VIP or centralize element. 35

36 Integration with PXC\Galera 36

37 Integration with PXC\Galera 37

38 Integration with PXC\Galera 38

39 Integration with PXC\Galera read_only wsrep_status wsrep_rejectqueries wsrep_donorrejectqueries wsrep_connected wsrep_desinccount wsrep_ready wsrep_provider wsrep_segment Number of nodes in by segment Retry loop Online Offline_soft Offline_hard Shunned But we also have Hostgroups Replication HG 39

40 Integration with PXC\Galera 40

41 Integration with PXC\Galera HG: 10 HG: 10 HG: 11 HG: 12 HG: 11 HG: 12 41

42 Integration with PXC\Galera Multiple writer vs Single writer Multi writer based on weight and Hostgroups Need Replication HG and READ_ONLY Failover is done without the need of performing actions on the nodes Failover is done modifying the READ_ONLY value Single WRITER node isolation not guarantee Single WRITER node isolation is guarantee 42

43 Integration with PXC\Galera - Users insert into mysql_users (username,password,active,default_hostgroup,default_schema) values ('app_rw','test',1,10,'test_schema'); insert into mysql_users (username,password,active,default_hostgroup,default_schema) values ('app_r','test',1,11,'test_schema'); insert into mysql_users (username,password,active,default_hostgroup,default_schema) values ( appdr_r','test',1,12, etl_schema'); LOAD MYSQL USERS TO RUNTIME;SAVE MYSQL USERS TO DISK; 43

44 Integration with PXC\Galera QR insert into mysql_query_rules (username,destination_hostgroup,active,retries,match_digest,apply) values( app_rw',10,1,3,'^select.*for UPDATE',1); insert into mysql_query_rules (username,destination_hostgroup,active,retries,match_digest,apply) values( app_rw',11,1,3,'^select ',1); insert into mysql_query_rules (username,destination_hostgroup,active) values( app_r',11,1); insert into mysql_query_rules (username,destination_hostgroup,active) values( appdr_r',12,1); LOAD MYSQL QUERY RULES TO RUNTIME;SAVE MYSQL QUERY RULES TO DISK; 44

45 Integration with PXC\Galera HG MW INSERT INTO mysql_servers (hostname,hostgroup_id,port,weight) VALUES (' ',10,3306,50000); ; INSERT INTO mysql_servers (hostname,hostgroup_id,port,weight) VALUES (' ',11,3306,1); ; INSERT INTO mysql_servers (hostname,hostgroup_id,port,weight) VALUES (' ',12,3306,100); ; LOAD MYSQL SERVERS TO RUNTIME; SAVE MYSQL SERVERS TO DISK; 45

46 Integration with PXC\Galera HG SW INSERT INTO mysql_servers (hostname,hostgroup_id,port,weight) VALUES (' ',10,3306,100); INSERT INTO mysql_servers (hostname,hostgroup_id,port,weight) VALUES (' ',11,3306,1); INSERT INTO mysql_servers (hostname,hostgroup_id,port,weight) VALUES (' ',11,3306,100); INSERT INTO mysql_servers (hostname,hostgroup_id,port,weight) VALUES (' ',11,3306,100); INSERT INTO mysql_servers (hostname,hostgroup_id,port,weight) VALUES (' ',12,3306,100); ; INSERT INTO mysql_replication_hostgroups VALUES (10,11); LOAD MYSQL SERVERS TO RUNTIME; SAVE MYSQL SERVERS TO DISK; 46

47 Integration with PXC ProxySQL is configured Now what? Example script Full guide: 47

48 Integration with PXC Set the script: INSERT INTO scheduler (id,active,interval_ms,filename,arg1) values (10,0,2000,"/var/lib/proxysql/galera_check.pl","- u=admin -p=admin -h= H=500:W,501:R - P= execution_time=1 --retry_down=2 --retry_up=1 --main_segment=1 --debug=0 -- log=/var/lib/proxysql/galeralog"); LOAD SCHEDULER TO RUNTIME;SAVE SCHEDULER TO DISK; update scheduler set active=1 where id=10; LOAD SCHEDULER TO RUNTIME; 48

49 Integration with PXC MW hostgroup_id hostname status weight comment ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE

50 Integration with PXC MW hostgroup_id hostname status weight comment OFFLINE_SOFT _W_11_R_retry_up=0;10_W_11_R_retry_down=0; ONLINE ONLINE OFFLINE_SOFT ONLINE ONLINE ONLINE ONLINE

51 Integration with PXC MW Variable_name Value wsrep_sst_donor_rejects_queries ON ProxySQL Think all is ok Application writes will fail 51

52 Integration with PXC MW hostgroup_id hostname status weight comment ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE

53 Integration with PXC MW WRITE Fail-over is automatically perform by ProxySQL following the weight Until an active node exists the HG 53

54 Integration with PXC SW WRITE Fail-over will not happen Until READ_ONLY variable is modified on a reader HG node. WRITER if DONOR will never be OFFLINE_SOFT 54

55 Integration with PXC\Galera SW manual 55

56 Integration with PXC\Galera SW Auto 56

57 Integration with PXC - Timing Change state to: OFFLINE_SOFT = ~2 sec HostGroup 9000 = ~2 sec ProxySQL Shunned = ~1.2 sec (5 fails in 1sec) Failover (auto) = ~3 sec 57

58 Avoid SPOF 58

59 Avoid SPOF using Keepalived 59

60 Avoid SPOF using Keepalived 60

61 Cost in time 61

62 Cost in time 62

63 So what % (36 days) MySQL Replication % (8 hours) Linux Heartbeat with DRBD % (8 hours) RHCS with Shared Storage (Active/Passive) % (52 minutes) MHA with at least 3 nodes % (52 minutes) Linux Heartbeat with DRBD and Replication % (52 minutes) Linux Heartbeat with Shared Storage and Replication % (26 minutes) Multi Master (galera - percona cluster) 3 node minimum % (5 minutes) MySQL Cluster 63

64 Cost in $$$ 64

65 Brief summary Improve service flexibility with r/w split; Allow simple way to manage access to specific servers by usage (like DW-ETL); Implement sharding; Allow Query revrite/query fix/blocking without need to modify code; Improve failover time; Reduce master downtime impact on reads; Not SPOF (as vip) 65

66 Integration with MHA 66

67 67

68 68

69 Contacts To contact Me To follow me Consulting = No mission refused! 69

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

Percona Live Europe 2016 Use ProxySQL to Improve Your MySQL High Availability Solution Percona Live Europe 2016 Use ProxySQL to Improve Your MySQL High Availability Solution Marco Tusa Manager Consulting Amsterdam, Netherlands October 3 5, 2016 About me Marco The Grinch Open source enthusiast

More information

Percona Live 2017 ProxySQL Sharding. Marco tusa Santa Clara, California April 24th 27th, 2017

Percona Live 2017 ProxySQL Sharding. Marco tusa Santa Clara, California April 24th 27th, 2017 Percona Live 2017 ProxySQL Sharding Marco tusa Santa Clara, California April 24th 27th, 2017 About me Marco The Grinch Open source enthusiast 2 Agenda Example of ProxySQL/MySQL setup Understand Query Rules

More information

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

Geographically Dispersed Percona XtraDB Cluster Deployment. Marco (the Grinch) Tusa September 2017 Dublin Geographically Dispersed Percona XtraDB Cluster Deployment Marco (the Grinch) Tusa September 2017 Dublin About me Marco The Grinch Open source enthusiast Percona consulting Team Leader 2 Agenda What is

More information

ProxySQL Tutorial. With a GPL license! High Performance & High Availability Proxy for MySQL. Santa Clara, California April 23th 25th, 2018

ProxySQL Tutorial. With a GPL license! High Performance & High Availability Proxy for MySQL. Santa Clara, California April 23th 25th, 2018 ProxySQL Tutorial High Performance & High Availability Proxy for MySQL With a GPL license! Santa Clara, California April 23th 25th, 2018 Who we are René Cannaò ProxySQL Founder Derek Downey Director of

More information

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

Fortify your MySQL data security in AWS using ProxySQL and Firewalling. Barcelona 21 June, 2018 Fortify your MySQL data security in AWS using ProxySQL and Firewalling Barcelona 21 June, 2018 About me Marco The Grinch Open source enthusiast In love with ProxySQL Consulting team leader Percona Consultant

More information

ProxySQL Tutorial. Percona Live Europe With a GPL license! High Performance & High Availability Proxy for MySQL

ProxySQL Tutorial. Percona Live Europe With a GPL license! High Performance & High Availability Proxy for MySQL Percona Live Europe 2016 ProxySQL Tutorial High Performance & High Availability Proxy for MySQL With a GPL license! Amsterdam, Netherlands October 3 5, 2016 Visit us at booth #102 Who we are David Turner

More information

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

Consistent Reads Using ProxySQL and GTID. Santa Clara, California April 23th 25th, 2018 Consistent Reads Using ProxySQL and GTID Santa Clara, California April 23th 25th, 2018 Disclaimer I am not René Cannaò @lefred MySQL Community Manager / Oracle the one who provided a hint for this not

More information

Written by Marco Tusa Tuesday, 21 November :21 - Last Updated Tuesday, 21 November :48

Written by Marco Tusa Tuesday, 21 November :21 - Last Updated Tuesday, 21 November :48 ProxySQL PXC Single Writer Mode and auto failover re-bootstrap Tuesday 2 November 207 2 - Last Updated Tuesday 2 November 207 248 Overview ProxySQL had been adopted as solution for HA in place of HAProxy

More information

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

Highly Available Database Architectures in AWS. Santa Clara, California April 23th 25th, 2018 Mike Benshoof, Technical Account Manager, Percona Highly Available Database Architectures in AWS Santa Clara, California April 23th 25th, 2018 Mike Benshoof, Technical Account Manager, Percona Hello, Percona Live Attendees! What this talk is meant to

More information

ProxySQL and MHA integration MHA (Master High Availability Manager and tools for MySQL), is almost fully integrated with the ProxySQL process.

ProxySQL and MHA integration MHA (Master High Availability Manager and tools for MySQL), is almost fully integrated with the ProxySQL process. Sunday 11 September 2016 15:32 - Last Updated Monday 14 November 2016 19:21 ProxySQL and MHA integration MHA Master High Availability Manager and tools for MySQL is almost fully integrated with the ProxySQL

More information

MySQL High Availability

MySQL High Availability MySQL High Availability And other stuff worth talking about Peter Zaitsev CEO Moscow MySQL Users Group Meetup July 11 th, 2017 1 Few Words about Percona 2 Percona s Purpose To Champion Unbiased Open Source

More information

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

Percona XtraDB Cluster ProxySQL. For your high availability and clustering needs Percona XtraDB Cluster-5.7 + ProxySQL For your high availability and clustering needs Ramesh Sivaraman Krunal Bauskar Agenda What is Good HA eco-system? Understanding PXC-5.7 Understanding ProxySQL PXC

More information

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

MySQL Replication Options. Peter Zaitsev, CEO, Percona Moscow MySQL User Meetup Moscow,Russia MySQL Replication Options Peter Zaitsev, CEO, Percona Moscow MySQL User Meetup Moscow,Russia Few Words About Percona 2 Your Partner in MySQL and MongoDB Success 100% Open Source Software We work with MySQL,

More information

Which technology to choose in AWS?

Which technology to choose in AWS? Which technology to choose in AWS? RDS / Aurora / Roll-your-own April 17, 2018 Daniel Kowalewski Senior Technical Operations Engineer Percona 1 2017 Percona AWS MySQL options RDS for MySQL Aurora MySQL

More information

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

HA solution with PXC-5.7 with ProxySQL. Ramesh Sivaraman Krunal Bauskar HA solution with PXC-5.7 with ProxySQL Ramesh Sivaraman Krunal Bauskar Agenda What is Good HA eco-system? Understanding PXC-5.7 Understanding ProxySQL PXC + ProxySQL = Complete HA solution Monitoring using

More information

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

ProxySQL - GTID Consistent Reads. Adaptive query routing based on GTID tracking ProxySQL - GTID Consistent Reads Adaptive query routing based on GTID tracking Introduction Rene Cannao Founder of ProxySQL MySQL DBA Introduction Nick Vyzas ProxySQL Committer MySQL DBA What is ProxySQL?

More information

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

Percona XtraDB Cluster MySQL Scaling and High Availability with PXC 5.7 Tibor Korocz Percona XtraDB Cluster MySQL Scaling and High Availability with PXC 5.7 Tibor Korocz Architect Percona University Budapest 2017.05.11 1 2016 Percona Scaling and High Availability (application) 2 Scaling

More information

Using MySQL for Distributed Database Architectures

Using MySQL for Distributed Database Architectures Using MySQL for Distributed Database Architectures Peter Zaitsev CEO, Percona SCALE 16x, Pasadena, CA March 9, 2018 1 About Percona Solutions for your success with MySQL,MariaDB and MongoDB Support, Managed

More information

MySQL HA Solutions. Keeping it simple, kinda! By: Chris Schneider MySQL Architect Ning.com

MySQL HA Solutions. Keeping it simple, kinda! By: Chris Schneider MySQL Architect Ning.com MySQL HA Solutions Keeping it simple, kinda! By: Chris Schneider MySQL Architect Ning.com What we ll cover today High Availability Terms and Concepts Levels of High Availability What technologies are there

More information

Choosing a MySQL HA Solution Today

Choosing a MySQL HA Solution Today Choosing a MySQL HA Solution Today Choosing the best solution among a myriad of options. Michael Patrick Technical Account Manager at Percona The Evolution of HA in MySQL Blasts from the past Solutions

More information

Percona XtraDB Cluster 5.7 Enhancements Performance, Security, and More

Percona XtraDB Cluster 5.7 Enhancements Performance, Security, and More 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)

More information

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

How to Implement ProxySQL with AWS Aurora. Written by Marco Tusa Wednesday, 04 April :00 - Last Updated Wednesday, 04 April :37 In this post, we'll look at how to implement ProxySQL with AWS Aurora. Recently, there have been a few discussions and customer requests that focused on AWS Aurora and how to make the various architectures

More information

HA for OpenStack: Connecting the dots

HA for OpenStack: Connecting the dots HA for OpenStack: Connecting the dots Raghavan Rags Srinivas Rackspace OpenStack Meetup, Washington DC on Jan. 23 rd 2013 Rags Solutions Architect at Rackspace for OpenStack-based Rackspace Private Cloud

More information

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

Choosing a MySQL High Availability Solution. Marcos Albe, Percona Inc. Live Webinar June 2017 Choosing a MySQL High Availability Solution Marcos Albe, Percona Inc. Live Webinar June 2017 Agenda What is availability Components to build an HA solution HA options in the MySQL ecosystem Failover/Routing

More information

MySQL High Availability Solutions. Alex Poritskiy Percona

MySQL High Availability Solutions. Alex Poritskiy Percona MySQL High Availability Solutions Alex Poritskiy Percona The Five 9s of Availability Clustering & Geographical Redundancy Clustering Technologies Replication Technologies Well-Managed disasters power failures

More information

Percona XtraDB Cluster

Percona XtraDB Cluster Percona XtraDB Cluster Ensure High Availability Presenter Karthik P R CEO Mydbops www.mydbops.com info@mydbops.com Mydbops Mydbops is into MySQL/MongoDB Support and Consulting. It is founded by experts

More information

High Availability Solutions for the MySQL Database

High Availability Solutions for the MySQL Database www.skysql.com High Availability Solutions for the MySQL Database Introduction This paper introduces recommendations and some of the solutions used to create an availability or high availability environment

More information

MySQL High-Availability

MySQL High-Availability MySQL High-Availability with the Percona replication manager (PRM) Yves Trudeau April, 2014 About myself : Yves Trudeau Principal architect at Percona since 2009 With MySQL then Sun, 2007 to 2009 Focus

More information

Various MySQL High Availability (HA) Solutions

Various MySQL High Availability (HA) Solutions Various MySQL High Availability (HA) Solutions Percona Live MySQL Conference, London, Oct 24 th and 25 th, 2011 Oli Sennhauser Senior MySQL Consultant at FromDual GmbH oli.sennhauser@fromdual.com www.fromdual.com

More information

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

MySQL usage of web applications from 1 user to 100 million. Peter Boros RAMP conference 2013 MySQL usage of web applications from 1 user to 100 million Peter Boros RAMP conference 2013 Why MySQL? It's easy to start small, basic installation well under 15 minutes. Very popular, supported by a lot

More information

Migrating to XtraDB Cluster 2014 Edition

Migrating to XtraDB Cluster 2014 Edition Migrating to XtraDB Cluster 2014 Edition Jay Janssen Managing Consultant Overview of XtraDB Cluster Percona Server + Galera Cluster of Innodb nodes Readable and Writable Virtually Synchronous All data

More information

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

Choosing a MySQL HA Solution Today. Choosing the best solution among a myriad of options Choosing a MySQL HA Solution Today Choosing the best solution among a myriad of options Questions...Questions...Questions??? How to zero in on the right solution You can t hit a target if you don t have

More information

MySQL Architecture Design Patterns for Performance, Scalability, and Availability

MySQL Architecture Design Patterns for Performance, Scalability, and Availability MySQL Architecture Design Patterns for Performance, Scalability, and Availability Brian Miezejewski Principal Manager Consulting Alexander Rubin Principal Consultant Agenda HA and

More information

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

MySQL High Availability with Percona XtraDB Cluster 5.7 Hands on tutorial! MySQL High Availability with Percona XtraDB Cluster 5.7 Hands on tutorial! 1 Introducing pxc-strict-mode 2 Peter Zaitsev pz@percona.com Alok Pathak alok.pathak@percona.com Krunal Bauskar krunal.bauskar@percona.com

More information

MySQL HA vs. HA. DOAG Konferenz 2016, Nürnberg. Oli Sennhauser. Senior MySQL Consultant, FromDual GmbH.

MySQL HA vs. HA. DOAG Konferenz 2016, Nürnberg. Oli Sennhauser. Senior MySQL Consultant, FromDual GmbH. MySQL HA vs. HA DOAG Konferenz 2016, Nürnberg Oli Sennhauser Senior MySQL Consultant, FromDual GmbH oli.sennhauser@fromdual.com 1 / 20 Über FromDual GmbH Support Beratung remote-dba Schulung 2 / 20 Contents

More information

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

MySQL In the Cloud. Migration, Best Practices, High Availability, Scaling. Peter Zaitsev CEO Los Angeles MySQL Meetup June 12 th, 2017. MySQL In the Cloud Migration, Best Practices, High Availability, Scaling Peter Zaitsev CEO Los Angeles MySQL Meetup June 12 th, 2017 1 Let me start. With some Questions! 2 Question One How Many of you

More information

MySQL HA Solutions Selecting the best approach to protect access to your data

MySQL HA Solutions Selecting the best approach to protect access to your data MySQL HA Solutions Selecting the best approach to protect access to your data Sastry Vedantam sastry.vedantam@oracle.com February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved

More information

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

Using MHA in and out of the Cloud. Garrick Peterson Percona University, Toronto 2013 Using MHA in and out of the Cloud Garrick Peterson Percona University, Toronto 2013 Agenda Who am I MHA Overview HA In the Cloud IP Management options Simple use case What do we use Recommendations GTID

More information

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

The Hazards of Multi-writing in a Dual-Master Setup The Hazards of Multi-writing in a Dual-Master Setup Jay Janssen MySQL Consulting Lead November 15th, 2012 Explaining the Problem Rules of the Replication Road A given MySQL instance: Can be both a master

More information

Lessons from database failures

Lessons from database failures Lessons from database failures Colin Charles, Chief Evangelist, Percona Inc. colin.charles@percona.com / byte@bytebot.net http://www.bytebot.net/blog/ @bytebot on Twitter Percona Webminar 18 January 2017

More information

Deploying PXC in Kubernetes / Openshift. Alexander Rubin, Percona

Deploying PXC in Kubernetes / Openshift. Alexander Rubin, Percona Deploying PXC in Kubernetes / Openshift Alexander Rubin, Percona About me Working with MySQL for 10-15 years Started at MySQL AB, Sun Microsystems, Oracle (MySQL Consulting) Joined Percona in 2013 What

More information

Migrating To MySQL The Live Database Upgrade Guide

Migrating To MySQL The Live Database Upgrade Guide Migrating To MySQL 5.7 - The Live Database Upgrade Guide October 4, 2016 Krzysztof Książek Severalnines krzysztof@severalnines.com 1 Agenda! Why upgrading to MySQL 5.7?! Preparing an upgrade - changes

More information

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

Architecture and Design of MySQL Powered Applications. Peter Zaitsev CEO, Percona Highload Moscow, Russia 31 Oct 2014 Architecture and Design of MySQL Powered Applications Peter Zaitsev CEO, Percona Highload++ 2014 Moscow, Russia 31 Oct 2014 About Percona 2 Open Source Software for MySQL Ecosystem Percona Server Percona

More information

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

MySQL Replication. Rick Golba and Stephane Combaudon April 15, 2015 MySQL Replication Rick Golba and Stephane Combaudon April 15, 2015 Agenda What is, and what is not, MySQL Replication Replication Use Cases Types of replication Replication lag Replication errors Replication

More information

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

Percona XtraDB Cluster powered by Galera. Peter Zaitsev CEO, Percona Slide Credits: Vadim Tkachenko Percona University, Washington,DC Sep 12,2013 powered by Galera Peter Zaitsev CEO, Percona Slide Credits: Vadim Tkachenko Percona University, Washington,DC Sep 12,2013 This talk High Availability Replication Cluster What is HA Availability Avail ~

More information

What s New in MySQL and MongoDB Ecosystem Year 2017

What s New in MySQL and MongoDB Ecosystem Year 2017 What s New in MySQL and MongoDB Ecosystem Year 2017 Peter Zaitsev CEO Percona University, Ghent June 22 nd, 2017 1 In This Presentation Few Words about Percona Few Words about Percona University Program

More information

High Availability High Performance Plone

High Availability High Performance Plone High Availability High Performance Plone Guido Stevens guido.stevens@cosent.nl www.cosent.nl Social Knowledge Technology Plone Worldwide Resilience Please wave, to improve my speech Plone as usual Aspeli:

More information

ProxySQL Tools Documentation

ProxySQL Tools Documentation ProxySQL Tools Documentation Release 0.3.12 TwinDB Development Team Dec 29, 2017 Contents 1 ProxySQL Tools 3 1.1 Features.................................................. 3 1.2 Credits..................................................

More information

MySQL Replication Advanced Features In 20 minutes

MySQL Replication Advanced Features In 20 minutes MySQL Replication Advanced Features In 20 minutes Peter Zaitsev, CEO FOSDEM, Brussels, Belgium February 2nd, 2019 1 Question #1 Who in this room is using some kind of MySQL Replication? 2 Question #2 Which

More information

Choosing a MySQL HA Solution. Ernie Souhrada, Senior Consultant Webinar Presentation 05 June 2013

Choosing a MySQL HA Solution. Ernie Souhrada, Senior Consultant Webinar Presentation 05 June 2013 Choosing a MySQL HA Solution Ernie Souhrada, Senior Consultant Webinar Presentation 05 June 2013 Agenda Know Thy Presenter Why Are We Here? High Availability? HA! So Many Options... So Little Time Escaping

More information

Automatic-Hot HA for HDFS NameNode Konstantin V Shvachko Ari Flink Timothy Coulter EBay Cisco Aisle Five. November 11, 2011

Automatic-Hot HA for HDFS NameNode Konstantin V Shvachko Ari Flink Timothy Coulter EBay Cisco Aisle Five. November 11, 2011 Automatic-Hot HA for HDFS NameNode Konstantin V Shvachko Ari Flink Timothy Coulter EBay Cisco Aisle Five November 11, 2011 About Authors Konstantin Shvachko Hadoop Architect, ebay; Hadoop Committer Ari

More information

Introduction to MySQL InnoDB Cluster

Introduction to MySQL InnoDB Cluster 1 / 148 2 / 148 3 / 148 Introduction to MySQL InnoDB Cluster MySQL High Availability made easy Percona Live Europe - Dublin 2017 Frédéric Descamps - MySQL Community Manager - Oracle 4 / 148 Safe Harbor

More information

FromDual Annual Company Meeting

FromDual Annual Company Meeting FromDual Annual Company Meeting Athens, 2013 Galera Cluster for MySQL http:// 1 / 26 About FromDual GmbH (LLC) FromDual provides neutral and independent: Consulting for MySQL Support for MySQL and Galera

More information

Percona Software & Services Update

Percona Software & Services Update Percona Software & Services Update Q4 2016 Peter Zaitsev,CEO Percona Technical Webinars January 12, 2017 Why? Talking to Many Users and Customers Getting What have you been up to? Question This is a way

More information

CIT 668: System Architecture

CIT 668: System Architecture CIT 668: System Architecture Availability Topics 1. What is availability? 2. Measuring Availability 3. Failover 4. Failover Configurations 5. Linux HA Availability Availability is the ratio of the time

More information

MySQL Group Replication. Bogdan Kecman MySQL Principal Technical Engineer

MySQL Group Replication. Bogdan Kecman MySQL Principal Technical Engineer MySQL Group Replication Bogdan Kecman MySQL Principal Technical Engineer Bogdan.Kecman@oracle.com 1 Safe Harbor Statement The following is intended to outline our general product direction. It is intended

More information

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

Design Patterns for Large- Scale Data Management. Robert Hodges OSCON 2013 Design Patterns for Large- Scale Data Management Robert Hodges OSCON 2013 The Start-Up Dilemma 1. You are releasing Online Storefront V 1.0 2. It could be a complete bust 3. But it could be *really* big

More information

ShardProxy Replication-Manager. DataOps - Juin 2018 Kentoku SHIBA - Stephane VAROQUI

ShardProxy Replication-Manager. DataOps - Juin 2018 Kentoku SHIBA - Stephane VAROQUI ShardProxy Replication-Manager DataOps - Juin 2018 Kentoku SHIBA - Stephane VAROQUI 1 Replication Manager MRM 2 Replication-Manager - Sharding About Sharding Frameworks They mostly don t do efficient joins

More information

If Only I Could Find My Databases-Service Discovery with SmartStack and MySQL. Susanne Lehmann, Yelp

If Only I Could Find My Databases-Service Discovery with SmartStack and MySQL. Susanne Lehmann, Yelp If Only I Could Find My Databases-Service Discovery with SmartStack and MySQL Susanne Lehmann, Yelp susanne@yelp.com Me I ve been a DBA for 16 years I ve been working with all kinds of relational and NoSQL

More information

Help! I need more servers! What do I do?

Help! I need more servers! What do I do? Help! I need more servers! What do I do? Scaling a PHP application 1 2-Feb-09 Introduction A real world example The wonderful world of startups Who am I? 2 2-Feb-09 Presentation Overview - Scalability

More information

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

What s new in Percona Xtradb Cluster 5.6. Jay Janssen Lead Consultant February 5th, 2014 What s new in Percona Xtradb Cluster 5.6 Jay Janssen Lead Consultant February 5th, 2014 Overview PXC 5.6 is the aggregation of Percona Server 5.6 Codership MySQL 5.6 patches Galera 3.x Agenda Major new

More information

<Insert Picture Here> MySQL Web Reference Architectures Building Massively Scalable Web Infrastructure

<Insert Picture Here> MySQL Web Reference Architectures Building Massively Scalable Web Infrastructure MySQL Web Reference Architectures Building Massively Scalable Web Infrastructure Mario Beck (mario.beck@oracle.com) Principal Sales Consultant MySQL Session Agenda Requirements for

More information

Building Highly Available and Scalable Real- Time Services with MySQL Cluster

Building Highly Available and Scalable Real- Time Services with MySQL Cluster Building Highly Available and Scalable Real- Time Services with MySQL Cluster MySQL Sales Consulting Director Philip Antoniades April, 3rd, 2012 1 Copyright 2012, Oracle and/or its affiliates. All rights

More information

Reliable Crash Detection and Failover with Orchestrator

Reliable Crash Detection and Failover with Orchestrator 1 Reliable Crash Detection and Failover with Orchestrator Shlomi Noach, PerconaLive 2016 " How people build software Agenda Orchestrator Topologies, crash scenarios Crash detection methods Promotion complexity

More information

Performance comparisons and trade-offs for various MySQL replication schemes

Performance comparisons and trade-offs for various MySQL replication schemes Performance comparisons and trade-offs for various MySQL replication schemes Darpan Dinker VP Engineering Brian O Krafka, Chief Architect Schooner Information Technology, Inc. http://www.schoonerinfotech.com/

More information

Become a MongoDB Replica Set Expert in Under 5 Minutes:

Become a MongoDB Replica Set Expert in Under 5 Minutes: Become a MongoDB Replica Set Expert in Under 5 Minutes: USING PERCONA SERVER FOR MONGODB IN A FAILOVER ARCHITECTURE This solution brief outlines a way to run a MongoDB replica set for read scaling in production.

More information

Autopsy of an automation disaster. Simon J Mudd (Senior Database Engineer) Percona Live, 25 th April 2017

Autopsy of an automation disaster. Simon J Mudd (Senior Database Engineer) Percona Live, 25 th April 2017 Autopsy of an automation disaster Simon J Mudd (Senior Database Engineer) Percona Live, 25 th April 2017 To err is human To really foul things up requires a computer [1] (or a script) [1]: http://quoteinvestigator.com/2010/12/07/foul-computer/

More information

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

MySQL High Availability. Michael Messina Senior Managing Consultant, Rolta-AdvizeX / MySQL High Availability Michael Messina Senior Managing Consultant, Rolta-AdvizeX mmessina@advizex.com / mike.messina@rolta.com Introduction Michael Messina Senior Managing Consultant Rolta-AdvizeX, Working

More information

Percona Software & Services Update

Percona Software & Services Update Percona Software & Services Update Q3 2016 Peter Zaitsev,CEO Percona Technical Webinars September 28, 2016 Why? Talking to Many Users and Customers Ge6ng What have you been up to? Ques@on This is a way

More information

MySQL Multi-Site/Multi-Master Done Right

MySQL Multi-Site/Multi-Master Done Right MySQL Multi-Site/Multi-Master Done Right MySQL Clustering for HA and DR The Dream: Multiple, active DBMS servers with identical data over distance Too good to be true? High Performance High Availability

More information

Percona Live Europe Amsterdam, Netherlands October 3 5, 2016

Percona Live Europe Amsterdam, Netherlands October 3 5, 2016 Percona Live Europe 2016 Amsterdam, Netherlands October 3 5, 2016 Microservices, MySQL & Service Discovery Abbas Ahmed : Principal Database Engineer @ rentalcars.com Twitter: @solutionguy Who am I? Principal

More information

Load Balancing RSA Authentication Manager. Deployment Guide v Copyright Loadbalancer.org, Inc

Load Balancing RSA Authentication Manager. Deployment Guide v Copyright Loadbalancer.org, Inc Load Balancing RSA Authentication Manager Deployment Guide v1.2.2 Copyright 2002 2017 Loadbalancer.org, Inc Table of Contents 1. About this Guide...3 2. Loadbalancer.org Appliances Supported...3 3. Loadbalancer.org

More information

MySQL Group Replication & MySQL InnoDB Cluster

MySQL Group Replication & MySQL InnoDB Cluster MySQL Group Replication & MySQL InnoDB Cluster Production Ready? Kenny Gryp productions Table of Contents Group Replication MySQL Shell (AdminAPI) MySQL Group Replication MySQL Router Best Practices Limitations

More information

MySQL Cluster (NDB) An Introduc+on and Overview. Ma3hew Boehm April

MySQL Cluster (NDB) An Introduc+on and Overview. Ma3hew Boehm April MySQL Cluster (NDB) An Introduc+on and Overview Ma3hew Boehm April 15 2015 Outline 2 What is it? Who uses it? Why use it? How do you...? Who - About Me 3 Ma3hew (not Ma3) Boehm Percona since November 2012

More information

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

High Noon at AWS. ~ Amazon MySQL RDS versus Tungsten Clustering running MySQL on AWS EC2 High Noon at AWS ~ Amazon MySQL RDS versus Tungsten Clustering running MySQL on AWS EC2 Introduction Amazon Web Services (AWS) are gaining popularity, and for good reasons. The Amazon Relational Database

More information

Percona Software & Services Update

Percona Software & Services Update Percona Software & Services Update Q2 2017 Peter Zaitsev,CEO Percona Technical Webinars May 4, 2017 Why? Talking to Many Users and Customers Getting What have you been up to? Question This is a way to

More information

MariaDB MaxScale 2.0, basis for a Two-speed IT architecture

MariaDB MaxScale 2.0, basis for a Two-speed IT architecture MariaDB MaxScale 2.0, basis for a Two-speed IT architecture Harry Timm, Business Development Manager harry.timm@mariadb.com Telef: +49-176-2177 0497 MariaDB FASTEST GROWING OPEN SOURCE DATABASE * Innovation

More information

MySQL Cluster Ed 2. Duration: 4 Days

MySQL Cluster Ed 2. Duration: 4 Days Oracle University Contact Us: +65 6501 2328 MySQL Cluster Ed 2 Duration: 4 Days What you will learn This MySQL Cluster training teaches you how to install and configure a real-time database cluster at

More information

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

Understanding Percona XtraDB Cluster 5.7 Operation and Key Algorithms. Krunal Bauskar PXC Product Lead (Percona Inc.) Understanding Percona XtraDB Cluster 5.7 Operation and Key Algorithms Krunal Bauskar PXC Product Lead (Percona Inc.) Objective I want to use Percona XtraDB Cluster but is it suitable for my needs and can

More information

MongoDB and Mysql: Which one is a better fit for me? Room 204-2:20PM-3:10PM

MongoDB and Mysql: Which one is a better fit for me? Room 204-2:20PM-3:10PM MongoDB and Mysql: Which one is a better fit for me? Room 204-2:20PM-3:10PM About us Adamo Tonete MongoDB Support Engineer Agustín Gallego MySQL Support Engineer Agenda What are MongoDB and MySQL; NoSQL

More information

MySQL Reference Architectures for Massively Scalable Web Infrastructure

MySQL Reference Architectures for Massively Scalable Web Infrastructure MySQL Reference Architectures for Massively Scalable Web Infrastructure MySQL Best Practices for Innovating on the Web A MySQL Strategy White Paper December 2010 Table of Contents Executive Summary...

More information

ProxySQL's Internals

ProxySQL's Internals ProxySQL's Internals What is ProxySQL? A "Layer 7" database proxy MySQL / ClickHouse protocol aware High Performance High Availability Architecture Overview Clients connect to ProxySQL Requests are evaluated

More information

High availability with MariaDB TX: The definitive guide

High availability with MariaDB TX: The definitive guide High availability with MariaDB TX: The definitive guide MARCH 2018 Table of Contents Introduction - Concepts - Terminology MariaDB TX High availability - Master/slave replication - Multi-master clustering

More information

Why Choose Percona Server For MySQL? Tyler Duzan

Why Choose Percona Server For MySQL? Tyler Duzan Why Choose Percona Server For MySQL? Tyler Duzan Product Manager Who Am I? My name is Tyler Duzan Formerly an operations engineer for more than 12 years focused on security and automation Now a Product

More information

A Brief Introduction of TiDB. Dongxu (Edward) Huang CTO, PingCAP

A Brief Introduction of TiDB. Dongxu (Edward) Huang CTO, PingCAP A Brief Introduction of TiDB Dongxu (Edward) Huang CTO, PingCAP About me Dongxu (Edward) Huang, Cofounder & CTO of PingCAP PingCAP, based in Beijing, China. Infrastructure software engineer, open source

More information

What s new in Mongo 4.0. Vinicius Grippa Percona

What s new in Mongo 4.0. Vinicius Grippa Percona What s new in Mongo 4.0 Vinicius Grippa Percona About me Support Engineer at Percona since 2017 Working with MySQL for over 5 years - Started with SQL Server Working with databases for 7 years 2 Agenda

More information

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

How Percona Contributes to Open Source Database Ecosystem. Peter Zaitsev 5 October 2016 How Percona Contributes to Open Source Database Ecosystem Peter Zaitsev 5 October 2016 I am Passionate about Open Source Passionate about Database Technology Passionate about finding best Solutions 2 Percona

More information

Real-time Replication in the Real World. Richard E. Baum C. Thomas Tyler

Real-time Replication in the Real World. Richard E. Baum C. Thomas Tyler Real-time Replication in the Real World Richard E. Baum C. Thomas Tyler 2 Agenda Provide an overview of replication solutions Discuss relevant new 2009.2 features Review some real-world solutions 3 Terminology

More information

Getting started with MySQL Proxy

Getting started with MySQL Proxy Getting started with MySQL Proxy Giuseppe Maxia QA Developer - MySQL AB Sofia - OpenFest 2007 Agenda Overview Some fun Injecting queries Filtering and rewriting queries Working with results Proxy for logging

More information

How to Scale MongoDB. Apr

How to Scale MongoDB. Apr How to Scale MongoDB Apr-24-2018 About me Location: Skopje, Republic of Macedonia Education: MSc, Software Engineering Experience: Lead Database Consultant (since 2016) Database Consultant (2012-2016)

More information

Swiss IT Pro SQL Server 2005 High Availability Options Agenda: - Availability Options/Comparison - High Availability Demo 08 August :45-20:00

Swiss IT Pro SQL Server 2005 High Availability Options Agenda: - Availability Options/Comparison - High Availability Demo 08 August :45-20:00 Swiss IT Pro Agenda: SQL Server 2005 High Availability Options - Availability Options/Comparison - High Availability Demo 08 August 2006 17:45-20:00 SQL Server 2005 High Availability Options Charley Hanania

More information

Load Balancing Fujifilm SYNAPSE. Deployment Guide v Copyright Loadbalancer.org

Load Balancing Fujifilm SYNAPSE. Deployment Guide v Copyright Loadbalancer.org Load Balancing Fujifilm SYNAPSE Deployment Guide v0.1 Copyright Loadbalancer.org Table of Contents 2. 3. 4. 5. 6. About this Guide...4 Loadbalancer.org Appliances Supported...4 Loadbalancer.org Software

More information

Enterprise Open Source Databases

Enterprise Open Source Databases Enterprise Open Source Databases WHITE PAPER MariaDB vs. Oracle MySQL vs. EnterpriseDB MariaDB TX Born of the community. Raised in the enterprise. MariaDB TX, with a history of proven enterprise reliability

More information

MySQL Replication : advanced features in all flavours. Giuseppe Maxia Quality Assurance Architect at

MySQL Replication : advanced features in all flavours. Giuseppe Maxia Quality Assurance Architect at MySQL Replication : advanced features in all flavours Giuseppe Maxia Quality Assurance Architect at VMware @datacharmer 1 About me Who s this guy? Giuseppe Maxia, a.k.a. "The Data Charmer" QA Architect

More information

Tips from the Trenches Preventing downtime for the over extended DBA. Andrew Moore Senior Remote DBA Percona Managed Services

Tips from the Trenches Preventing downtime for the over extended DBA. Andrew Moore Senior Remote DBA Percona Managed Services Tips from the Trenches Preventing downtime for the over extended DBA Andrew Moore Senior Remote DBA Percona Managed Services Your Presenter Andrew Moore @mysqlboy on twitter 1+ year in Manager Services

More information

Multi-Data Center MySQL with Continuent Tungsten

Multi-Data Center MySQL with Continuent Tungsten Multi-Data Center MySQL with Continuent Tungsten Peter Boros, Consultant, Percona Robert Hodges, CEO, Continuent Percona Technical Webinars March 2, 2013 About This Presentation Why is multi-data center

More information

MySQL Cluster Web Scalability, % Availability. Andrew

MySQL Cluster Web Scalability, % Availability. Andrew MySQL Cluster Web Scalability, 99.999% Availability Andrew Morgan @andrewmorgan www.clusterdb.com Safe Harbour Statement The following is intended to outline our general product direction. It is intended

More information

ZENworks Mobile Workspace High Availability Environments. September 2017

ZENworks Mobile Workspace High Availability Environments. September 2017 ZENworks Mobile Workspace High Availability Environments September 2017 Legal Notice For information about legal notices, trademarks, disclaimers, warranties, export and other use restrictions, U.S. Government

More information

Use Cases for Partitioning. Bill Karwin Percona, Inc

Use Cases for Partitioning. Bill Karwin Percona, Inc Use Cases for Partitioning Bill Karwin Percona, Inc. 2011-02-16 1 Why Use Cases?! Anyone can read the reference manual: http://dev.mysql.com/doc/refman/5.1/en/partitioning.html! This talk is about when

More information

Lessons learned while automating MySQL in the AWS cloud. Stephane Combaudon DB Engineer - Slice

Lessons learned while automating MySQL in the AWS cloud. Stephane Combaudon DB Engineer - Slice Lessons learned while automating MySQL in the AWS cloud Stephane Combaudon DB Engineer - Slice Our environment 5 DB stacks Data volume ranging from 30GB to 2TB+. Master + N slaves for each stack. Master

More information