25
Marco “the Grinch” Tusa April 2016 Comparing synchronous replication solutions in the cloud

Sync rep aurora_2016

Embed Size (px)

Citation preview

Page 1: Sync rep aurora_2016

Marco“theGrinch”TusaApril2016

Comparing synchronous replication solutions in the cloud

Page 2: Sync rep aurora_2016

Percona Live Europe 2016Comparing synchronous

replication solutions in thecloud

Marco Tusa Manager ConsultingAmsterdam, Netherlands | October 3 – 5, 2016

Page 3: Sync rep aurora_2016

� Marco “The Grinch”� Open source enthusiast

About me

Page 4: Sync rep aurora_2016

A quick Overview of recent tests done in AWS comparing EC2 with PXC and Aurora

About testshttp://goo.gl/d2Wq06

About Aurorahttps://goo.gl/o32HaV

Overview

Page 5: Sync rep aurora_2016

Use the Right Tool for the Job…My Motto

Page 6: Sync rep aurora_2016

… and do the right thing!My Motto

Page 7: Sync rep aurora_2016

The platform

Page 8: Sync rep aurora_2016

Small Boxes� EIP = 1� VPC = 1� ELB=1� Subnets = 4 (1 public, 3 private)� HAProxy = 6 � MHA Monitor (micro ec2) = 1� NAT Instance (EC2) =1 (hosting EIP)� DB Instances (EC2) = 3 (m4.xlarge)

16GB� Application Instances (EC2) = 6 (4)� EBS SSD 3000 PIOS� Aurora RDS node = 3 (db.r3.xlarge)

30GB

Machines usedLarge Boxes� EIP = 1� VPC = 1� ELB=1� Subnets = 4 (1 public, 3 private)� HAProxy = 4� MHA Monitor (micro ec2) = 1� NAT Instance (EC2) =1 (hosting EIP)� DB Instances (EC2) = 3 (c3.8xlarge)

60GB� Application Instances (EC2) = 4� EBS SSD 5000 PIOS� Aurora RDS node = 3 (db.r3.8xlarge)

244GB

Page 9: Sync rep aurora_2016

IIBench

Small boxes Large boxes

üPXC/Galera stay consistent üAurora was better on large box (as expected)

Page 10: Sync rep aurora_2016

IIBench

Small boxes Large boxes

üPXC/Galera significantly less but then is consistentüAurora still less but consistent

Page 11: Sync rep aurora_2016

IIBench

Small boxes Large boxes

üPXC/Galera significantly less and consistentüAurora Taking longer but with Large was more stable

Page 12: Sync rep aurora_2016

App Ingest multi table

Small boxes Large boxes

üPXC/Galera performing better on SmallüAurora Much better on Large

Page 13: Sync rep aurora_2016

App Ingest multi table Small boxes Large boxes

üPXC/Galera performing better on SmallüAurora Much better on Large

Page 14: Sync rep aurora_2016

App OLTP multi table Small boxes Large boxes

üPXC/Galera performing better on SmallüAurora Much better on Large

Page 15: Sync rep aurora_2016

App OLTP multi table Small boxes Large boxes

ü PXC/Galera performing better on Smallü Aurora Much better on Large

Page 16: Sync rep aurora_2016

App Tpcc-mysql multi table Small boxes

ü PXC/Galeraperforming better on Small

Page 17: Sync rep aurora_2016

App Tpcc-mysql multi table Large boxes

ü Aurora Much better on Large

Page 18: Sync rep aurora_2016

App Sysbench 250 Tables Large boxes only

ü Aurora Much better on Large

Page 19: Sync rep aurora_2016

HA how long ?Both the platform dimensions

Some variance but not so significant as such I kept the old value

Page 20: Sync rep aurora_2016

Execution latencyLarge boxes

ü Aurora Much better on Large

Small boxes

Page 21: Sync rep aurora_2016

� For small installation Aurora is not a good fit, PXC was working better� As workload scale and make sense to use larger boxes Aurora had

shown better results, scaling as expected.� Aurora has still some issues (known):

� Hard limit to 16k connections� When using hotspot it is easy to hit the 158 error problem (no is not the

Full text error)� I am sure that I hit some connector issue here and there, exploring

alternatives to the MariaDB solution may be a good thing to keep in mind (for the Aurora dev team).

I like to provide to my customer alternatives, Aurora is one but …

Conclusions

Page 22: Sync rep aurora_2016

$$$^

Page 23: Sync rep aurora_2016

Q & A

Page 24: Sync rep aurora_2016

Rate My Session!

Page 25: Sync rep aurora_2016

ContactsTo contact Me

[email protected]

[email protected]

To follow me

http://www.tusacentral.net/

http://www.percona.com/blog/

https://www.facebook.com/marco.tusa.94

@marcotusa

http://it.linkedin.com/in/marcotusa/

“No mission refused!”