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

Similar documents
What s New in MySQL and MongoDB Ecosystem Year 2017

MySQL High Availability

Which technology to choose in AWS?

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

Using MySQL for Distributed Database Architectures

Percona Software & Services Update

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

Percona Software & Services Update

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

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

Percona Software & Services Update

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

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

Database Backup and Recovery Best Practices. Manjot Singh, Data & Infrastrustructure Architect

MySQL: Scaling & High Availability

Practical MySQL Performance Optimization. Peter Zaitsev, CEO, Percona July 02, 2015 Percona Technical Webinars

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

HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD MIGRATION

Introduction to Cloud Computing

Using Percona Monitoring and Management to Troubleshoot MySQL Performance Issues

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

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

CIT 668: System Architecture. Amazon Web Services

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

Practical MySQL Performance Optimization. Peter Zaitsev, CEO, Percona July 20 th, 2016 Percona Technical Webinars

Training on Amazon AWS Cloud Computing. Course Content

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

Middle East Technical University. Jeren AKHOUNDI ( ) Ipek Deniz Demirtel ( ) Derya Nur Ulus ( ) CENG553 Database Management Systems

Module Day Topic. 1 Definition of Cloud Computing and its Basics

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

Best Practices for MySQL Scalability. Peter Zaitsev, CEO, Percona Percona Technical Webinars May 1, 2013

Advanced Architectures for Oracle Database on Amazon EC2

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

Introduction to Database Services

Percona XtraDB Cluster 5.7 Enhancements Performance, Security, and More

Databases In the Cloud

Percona XtraDB Cluster

Oracle made it easy: Cloud DB Vergleich

Innodb Performance Optimization

Programowanie w chmurze na platformie Java EE Wykład 1 - dr inż. Piotr Zając

MongoDB Shell: A Primer

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

Scaling DreamFactory

Amazon. Exam Questions AWS-Certified-Solutions-Architect- Professional. AWS-Certified-Solutions-Architect-Professional.

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

How To Rock with MyRocks. Vadim Tkachenko CTO, Percona Webinar, Jan

AWS: Basic Architecture Session SUNEY SHARMA Solutions Architect: AWS

AWS Storage Gateway. Amazon S3. Amazon EFS. Amazon Glacier. Amazon EBS. Amazon EC2 Instance. storage. File Block Object. Hybrid integrated.

Enroll Now to Take online Course Contact: Demo video By Chandra sir

Percona Server for MySQL 8.0 Walkthrough

Disclaimer This presentation may contain product features that are currently under development. This overview of new technology represents no commitme

Cloud and Storage. Transforming IT with AWS and Zadara. Doug Cliche, Storage Solutions Architect June 5, 2018

PUBLIC AND HYBRID CLOUD: BREAKING DOWN BARRIERS

IBM Compose Managed Platform for Multiple Open Source Databases

CHEM-E Process Automation and Information Systems: Applications

Amazon AWS-Solution-Architect-Associate Exam

Expected Learning Outcomes Introduction To AWS

PrepAwayExam. High-efficient Exam Materials are the best high pass-rate Exam Dumps

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

Why Choose Percona Server For MySQL? Tyler Duzan

Building a government cloud Concepts and Solutions

Write On Aws. Aws Tools For Windows Powershell User Guide using the aws tools for windows powershell (p. 19) this section includes information about

Cloud Programming. Programming Environment Oct 29, 2015 Osamu Tatebe

Amazon Web Services. Foundational Services for Research Computing. April Mike Kuentz, WWPS Solutions Architect

Become a MongoDB Replica Set Expert in Under 5 Minutes:

Demystifying the Cloud With a Look at Hybrid Hosting and OpenStack

AWS Solution Architect Associate

MySQL in the Hosted Cloud

MongoDB Backup and Recovery Field Guide. Tim Vaillancourt Sr Technical Operations Architect, Percona

MySQL in the Cloud Tricks and Tradeoffs

JELASTIC PLATFORM-AS-INFRASTRUCTURE

MongoDB Backup & Recovery Field Guide

RACKSPACE ONMETAL I/O V2 OUTPERFORMS AMAZON EC2 BY UP TO 2X IN BENCHMARK TESTING

Architekturen für die Cloud

Choosing Hardware and Operating Systems for MySQL. Apr 15, 2009 O'Reilly MySQL Conference and Expo Santa Clara,CA by Peter Zaitsev, Percona Inc

Examining Public Cloud Platforms

San Jose Water Company Expedites New Feature Delivery with DevOps Help from ClearScale on AWS

LINUX, WINDOWS(MCSE),

Amazon Web Services (AWS) Training Course Content

Distributed Systems. 31. The Cloud: Infrastructure as a Service Paul Krzyzanowski. Rutgers University. Fall 2013

POSTGRESQL ON AWS: TIPS & TRICKS (AND HORROR STORIES) ALEXANDER KUKUSHKIN. PostgresConf US

SoftNAS Cloud Data Management Products for AWS Add Breakthrough NAS Performance, Protection, Flexibility

Amazon Web Services (AWS) Solutions Architect Intermediate Level Course Content

DISTRIBUTED SYSTEMS [COMP9243] Lecture 8a: Cloud Computing WHAT IS CLOUD COMPUTING? 2. Slide 3. Slide 1. Why is it called Cloud?

Amazon Web Services Training. Training Topics:

Migrating and living on RDS/Aurora. life after Datacenters

Amazon Web Services. Block 402, 4 th Floor, Saptagiri Towers, Above Pantaloons, Begumpet Main Road, Hyderabad Telangana India

Achieving Horizontal Scalability. Alain Houf Sales Engineer

Introduction to cloud computing

Amazon s Database Migration Service, a magical wand for moving from closed source solutions? Dimitri Vanoverbeke Solution Percona

Cloud Storage with AWS: EFS vs EBS vs S3 AHMAD KARAWASH

Security & Compliance in the AWS Cloud. Amazon Web Services

Introduction To Cloud Computing

About Intellipaat. About the Course. Why Take This Course?

Lessons from database failures

What is. Thomas and Lori Duncan

Cloud Computing /AWS Course Content

Total Cost of Ownership: Database Software and Support

Private Cloud Public Cloud Edge. Consistent Infrastructure & Consistent Operations

VMware Hybrid Cloud Solution

Transcription:

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 are running MySQL In the Cloud? 3

Question Two Are you running it in Public Cloud? Private Cloud? Both? 4

Question Three? Are you using DBaaS such as Amazon RDS or Google CloudSQL or running your own? 5

Question Four Are you using Containers? (Such as Docker) 6

Lets Cover some Basics 7

What is Cloud Dynamic Programmable Infrastructure 8

Public and Private Public Infrastructure Shared with other Users Amazon AWS typical example Private Infrastructure Private for company OpenStack installation typical example 9

All of those XaaS IaaS (Infrastructure as a service) DBaaS (Database as a service) PaaS (Platform as a service) Works in Infrastructure level: Compute, Storage, Network Examples: AWS EC2, S3, EBS Provides Database Service (Instances or Clusters) to use Examples: Amazon RDS, Google Spanner Provides full platform for your application development Examples: Heroku, Amazon Elastic Beanstalk, OpenShift 10

Regions and Availability Zones Region Specifies Geographic Region Hierarchy - North America West California High Latency between Regions Complete Isolation Availability Zone Is located in the region Reasonably isolated from each other Medium Latency between AZ 11

Making it Visual Source: https://docs.aws.amazon.com/awsec2/latest/userguide/using-regions-availability-zones.html 12

Top Cloud Providers 13

Technologies to be aware of 14

Decisions to Make 15

Should you move to the cloud? This is decision you rarely have Programmable infrastructure is the future Virtualization overhead is going down Some clouds providers support Bare Metal 16

Public? Private? Hybrid Public Cloud Agility Scalability Costs Small and Medium Businesses Private Cloud Control Costs Legacy Integration Some Enterprise Companies Hybrid Cloud Infrastructure using Both Can get benefits of both At the cost of extra complexity 17

Single vendor vs Multi Vendor Single Vendor Multi Vendor Use all features vendor has to offer Danger of Vendor Lock In Have to use lowest common denominator Avoid Vendor Lock In 18

DBaaS DBaaS (ie Amazon RDS) Easier Takes off some operational pains Less Flexible More Expensive More Lock-In IaaS (ie EC2+EBS+S3) Harder to roll your own Operations on your own (or your partner) More Flexible Less Expensive Less Lock-In 19

Open Source in the Cloud Open Source Compatible is not same as Open Source 20

Migration 21

Keep it Simple Do not try doing upgrade at the same time as migration Exactly same minor version is optimal Same major version - must 22

Moving to IaaS Cloud General Practices as in Datacenter Migrations apply Easy to use Binary Backups Slave_compressed_protocol or compression in VPN Support utilities may need to be modified for EBS/S3 23

Moving to DBaaS Need to use database dump to copy Mysqldump Mysqlpump Mydumper Can set external slave (Amazon RDS) CALL mysql.rds_set_external_master Monitoring Backup may need revision Do not have direct access to physical box Do not have root user 24

New With Amazon RDS Aurora Can use Percona Xtrabackup s Backup to seed the cluster http://amzn.to/2pk6iq7 25

Moving from DBaaS Logical Database dump as well Replication supported for Migration only Configure Binary Log Retention mysql.rds_set_configuration 26

Best Practices 27

Being Cost Efficient Know your cloud vendor pricing policies Look beyond compute pricing Best Price/Performance configuration in the cloud is likely to be different AWS: Reserve Instances AWS: Spot Instances 28

Guarantee versus Burst Guaranteed Performance resource is guaranteed to have in worst case scenario This is what you can plan for Burst Performance resource can provide Typically not guaranteed Typically limited in length to prevent abuse 29

Network Understand Application-Database Network Latency Same AZ Optimal; Same Region Must have 10Gb Network Understand network jitter Latency is critical for most applications Bandwidth can be important for dumps and batch job 30

CPU Same whenever you re in the cloud or not MySQL uses single thread for single query Multi-Core gives good scalability for Web workloads 31

Memory Use mainly as a cache Very important for Performance 32

Storage Instance Local Storage May or may not be available Not Highly available May be inexpensive and high Performance Cloud Block Storage Reliable Remote Separately Prices EBS on AWS File/Object Storage Store Files/Objects No interactive block level access S3 on AWS 33

Things to Note You can t get any combination EBS Performance depends on the instance size Provisioned IOPs for Optimal Performance Glacier storage for old backups 34

Operating System Consider Cloud Optimized Linux Versions At very least use Recent Linux Versions Cloud Only Linux might be inconvenient for development 35

MySQL Version and Configuration Use Recent Version Do not count on good Defaults 36

DBaaS There is essentially same systems underneath! Most of same practices Apply 37

DBaaS is not always faster Source: https://twindb.com/rds-vs-aurora-vs-ec2-benchmark/ 38

High Availability 39

Your Choices Roll your own Use DBaaS 40

Things to Consider You have less control or visibility into the infrastructure Things as IP take over might not work 41

Load Balancers Cloud Load Balancer (Elastic Load Balancer at AWS) HAProxy ProxySQL 42

Maintaining copies of Data MySQL Replication MySQL Group Replication Percona XtraDB Replication (PXC) and Galera 43

Why Percona XtraDB Cluster in the Cloud Read/Write to any node works great with simple load balancers Automatic Provisioning and Auto Scaling Can run with local instance storage Can deploy across multiple AZ 44

Scaling 45

Scalability in the Cloud Better Worse Due to cloud optimized options like Amazon Aurora Due to restricted hardware choices 46

Scaling How Scale Up Scale Out Vertical Scaling Scale with the Harware Size CPUs, Memory, Storage Horizontal Scaling Scale by adding nodes 47

Bad reputation of Scaling Up but Reasonable commodity MySQL Server Can handle 3-5TB database size 100K+ queries/sec 5M+ rows read/sec 100K rows modified/sec 48

Scaling What? Reads Writes Data Size 49

Scaling Reads Replication Caching Moving some load from MySQL 50

Scaling Writes New MySQL Versions Parallel Replication TokuDB Functional Partitioning Sharding 51

New in Sharding ProxySQL Vitess 52

Scaling Data Size Functional Partitioning and Sharding Data Archiving TokuDB for Compression Often Operations drive this needs not App Performance 53

Percona Live Europe Call for Papers & Registration are Open! Championing Open Source Databases MySQL, MongoDB, Open Source Databases Time Series Databases, PostgreSQL, RocksDB Developers, Business/Case Studies, Operations September 25-27th, 2017 Radisson Blu Royal Hotel, Dublin, Ireland Submit Your Proposal by July 17 th! www.percona.com/live/e17 54

DATABASE PERFORMANCE Database Performance Matters MATTERS