MySQL in the Cloud Tricks and Tradeoffs

Similar documents
Identifying Workloads for the Cloud

Design Patterns for the Cloud. MCSN - N. Tonellotto - Distributed Enabling Platforms 68

HOW TO PLAN & EXECUTE A SUCCESSFUL CLOUD MIGRATION

Introduction to Cloud Computing

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

Training on Amazon AWS Cloud Computing. Course Content

Introduction to Database Services

Hybrid Infrastructure Hosting Clouds + Dedicated + Colocated GoGrid / ServePath September 09

Amazon Web Services Cloud Computing in Action. Jeff Barr

Actifio Test Data Management

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

Modernize Your Backup and DR Using Actifio in AWS

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

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

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

ApsaraDB for Redis. Product Introduction

Disaster Recovery and Mitigation: Is your business prepared when disaster hits?

Database Services at CERN with Oracle 10g RAC and ASM on Commodity HW

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

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

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

MySQL and Virtualization Guide

How to Scale Out MySQL on EC2 or RDS. Victoria Dudin, Director R&D, ScaleBase

AWS Course Syllabus. Linux Fundamentals. Installation and Initialization:

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

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

Secure Block Storage (SBS) FAQ

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

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

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

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

Héctor Fernández and G. Pierre Vrije Universiteit Amsterdam

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

Next Generation Storage for The Software-Defned World

Introduction to Amazon Web Services

Welcome! Considering a Warm Disaster Recovery Site?

Demystifying the Cloud With a Look at Hybrid Hosting and OpenStack

Become a MongoDB Replica Set Expert in Under 5 Minutes:

Database Level 100. Rohit Rahi November Copyright 2018, Oracle and/or its affiliates. All rights reserved.

How to host and manage enterprise customers on AWS: TOYOTA, Nippon Television, UNIQLO use cases

Non-disruptive, two node high-availability (HA) support keeps you operating against unplanned storage failures in the cloud

2014 VMware Inc. All rights reserved.

VMware Virtual SAN Technology

Basics of Cloud Computing Lecture 2. Cloud Providers. Satish Srirama

CIT 668: System Architecture. Amazon Web Services

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

Advanced Architectures for Oracle Database on Amazon EC2

CS / Cloud Computing. Recitation 3 September 9 th & 11 th, 2014

How to Keep UP Through Digital Transformation with Next-Generation App Development

Document Sub Title. Yotpo. Technical Overview 07/18/ Yotpo

THE ZADARA CLOUD. An overview of the Zadara Storage Cloud and VPSA Storage Array technology WHITE PAPER

High Availability Infrastructure for Cloud Computing

Scientific Workflows and Cloud Computing. Gideon Juve USC Information Sciences Institute

Data Centers and Cloud Computing

Data Centers and Cloud Computing. Slides courtesy of Tim Wood

The Cloud's Cutting Edge: ArcGIS for Server Use Cases for Amazon Web Services. David Cordes David McGuire Jim Herries Sridhar Karra

Introduction To Cloud Computing

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

COP Cloud Computing. Presented by: Sanketh Beerabbi University of Central Florida

what is cloud computing?

Real-Time & Big Data GIS: Best Practices. Josh Joyner Adam Mollenkopf

Identifying and Eliminating Backup System Bottlenecks: Taking Your Existing Backup System to the Next Level

Amazon Web Services (AWS) Training Course Content

Amazon AWS-Solution-Architect-Associate Exam

Unlimited Scalability in the Cloud A Case Study of Migration to Amazon DynamoDB

Architekturen für die Cloud

Enterprise Architectures The Pace Accelerates Camberley Bates Managing Partner & Analyst

Data Centers and Cloud Computing. Data Centers

dbx MNT AWS Setup Guide

Nimble Storage vs HPE 3PAR: A Comparison Snapshot

ShuttleService. Scalable Big Data Processing Utilizing Cloud Structures. A Tick Data Custom Data Solutions Group Case Study

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

Opendedupe & Veritas NetBackup ARCHITECTURE OVERVIEW AND USE CASES

Nicman Group Test Data Management 2.0 Leveraging Copy Data Virtualization Technology in QA for SQuAD. November 2016

Creating the Fastest Possible Backups Using VMware Consolidated Backup. A Design Blueprint

Eucalyptus Overview The most widely deployed on-premise cloud computing platform

Microsoft SQL Server HA and DR with DVX

TCC, so your business continues

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

How the Cloud is Enabling the Disruption of the Construction Industry. AWS Case Study Construction Industry. Abstract

Postgres in Amazon RDS. Denish Patel Lead Database Architect

Amazon Web Services Training. Training Topics:

NetApp Solutions for Oracle

RA-GRS, 130 replication support, ZRS, 130

NewSQL Without Compromise

Basics of Cloud Computing Lecture 2. Cloud Providers. Satish Srirama

SAP VORA 1.4 on AWS - MARKETPLACE EDITION FREQUENTLY ASKED QUESTIONS

Cloud Computing /AWS Course Content

Disk-to-Disk backup. customer experience. Harald Burose. Architect Hewlett-Packard

AUTOMATING IBM SPECTRUM SCALE CLUSTER BUILDS IN AWS PROOF OF CONCEPT

AWS: Basic Architecture Session SUNEY SHARMA Solutions Architect: AWS

Dell EMC Cloud Data Protection Disaster Recovery as a Service. Efri Nattel-Shay, Director, Product Management Saar Cohen, DE, CTO

Cloud Backup and Recovery for Healthcare and ecommerce

Chapter 10 Protecting Virtual Environments

4 Myths about in-memory databases busted

Virtualization Overview. Joel Jaeggli AFNOG SS-E 2013

Hyper-Convergence De-mystified. Francis O Haire Group Technology Director

AWS_SOA-C00 Exam. Volume: 758 Questions

Massive Scalability With InterSystems IRIS Data Platform

Future-Proofing MySQL for the Worldwide Data Revolution

Transcription:

MySQL in the Cloud Tricks and Tradeoffs Thorsten von Eicken CTO RightScale 1

MySQL & Amazon EC2 @RightScale Operating in Amazon EC2 since fall 2006 Cloud Computing Management System Replicated MySQL product offering mid 07 100 s of customer deployments Automation to launch slaves, failover, backup, Animoto.com scaled to 4000 servers in 3.5 days 2

Cloud Computing & Databases 1. Infinite computing resources 2. Available on-demand 3. Pay per use 4. Delivered across the Internet Fully Automatable Infrastructure As many DB machines as you want! No cost for short periods Save work, More reliable 3

Cloud Computing Vision No up-front costs load Easy Dev & Test clone mon tue wed thu fri sat sun time Pay for average, not peak load peak load Scale batch apps average load mon tue wed thu fri sat sun time 4

Scale-up/down Automation www.mysite.com Scale-up App server load > 50% Apache HAproxy Apache HAproxy Majority voting Add app servers Tie into load bal & db Scale-down App Srvr App Srvr App Srvr 1/array App Srvr N/array App server load < 20% Majority voting MySQL master replication MySQL slave 5

6

Load exceeds threshold Additional servers operational Load drops below threshold Additional servers terminated 7

Starcut (Olympics) Low cost to entry, scale up as demand grows Repeatable, clean-room design promotes stability and process Great sandbox for testing and benchmarking 8

Starcut (Stocks) Daily scale up/down to save costs Global reach for services is needed (Europe, USA, Asia) Big name clients demand carrier-grade reliability Full 24/7, 365 support expectations to us and us to our vendors 9

Std MySQL/EBS configuration & Storage Array in the Sky 10

Amazon EC2 Storage Architecture CPU Memory Local disks ½ core 8 cores 1.7GB 16GB 1 x 160GB 4 x 420GB $0.10-$0.80/hr EBS Scalable disk array 1GB 1TB volumes $0.10/GB/mo 1 volumes / server $0.10/M-io-ops network attached, redundant S3 Persistent Store redundant back-end store S3 put/get semantics $0.15/GB/mo $0.10/K-ops 11

Elastic Block Store (EBS) Create volume: 1GB 1TB size Attach to any one instance in same availability zone Pay $0.10/GB per month + $0.10/million I/O ops Snapshot backup a volume to S3 Create new volume from snapshot 12

Snapshots Server 2 Server 3 Server 4 Server 1 Point-in-time snapshot Vol 1 Vol 2 Vol 3 Vol 4 Written to S3 (Not to bucket!) snap 1 snap 2 Amazon S3 Incremental snapshots Restore to new volume Instantaneous (lazy restore) 13

Incremental Snapshots delete snap 2 Table of Contents vs. Data Blocks Space used difficult to gauge Frequent snapshots: minimal cost 14

Keeping Safe Freeze data while snapshotting XFS filesystem has freeze command But: 2.6.18 kernel bug causes hung filesystem (ouch!) Volumes are fragile in transit! Unmounting can leave data in flight Mounting mistake will be destructive Use snapshots for safety! Always snapshot after unmount Create fresh volume from snapshot, mount that, retry in case of problem 15

MySQL/EBS Replication App Server 1 App Server 2 MySQL master replication MySQL slave EBS vol EBS vol daily snapshots 10-minute snapshots Amazon S3 Amazon S3 16

Database operations pain points Master hardware failure Master software failure Testing schema change Migrate to new hardware New DB requirement no replica til hw fixed no replica til root caused extra system: 99% idle 2x rack space, SAN ports, machines, ports, disks, QA, test, stage, DR, demo, always to few, always too idle 17

Failure? Allocate fresh resources! MySQL dead replication MySQL master replication MySQL slave replication MySQL next replication MySQL next EBS vol EBS vol EBS vol EBS vol EBS vol snapshot snapshot snapshot snapshot snapshot init init Amazon S3 Amazon S3 Amazon S3 Amazon S3 Amazon S3 time Extra resources are free for short periods! (e.g. 4-core/16GB + 1TB EBS => <$30/day 18

Vertical Database Scaling www.rightscaledemo.com 1 Clone Server Config Load bal Load bal App Srvr App Srvr Small master clone config replication Small slave Large slave 19

Vertical Database Scaling www.rightscaledemo.com 1 Clone Server Config Load bal Load bal 2 Launch large slave App Srvr App Srvr Small master replication replication Small slave Large slave Launch 20

Vertical Database Scaling www.rightscaledemo.com 1 Clone Server 2 Launch large slave Load bal Load bal 3 Promote to master App Srvr App Srvr Small master replication Small slave replication master-db.rightscaledemo.com Large slave 21

Vertical Database Scaling www.rightscaledemo.com 1 Clone Server 2 Launch large slave Load bal Load bal 3 Promote to master App Srvr App Srvr 4 Launch new slave Small master replication Large master replication replication Small slave Large slave Launch Watch demo in webinar recording at www.rightscale.com/webinars 22

Cloud Principle #1: grab the next one! Database management Always roll forward, never fail-back Animoto upgraded L -> XL @600 servers App server management Always roll forward, never fix in-place www1 bust? Launch www3! Then troubleshoot Good sysadmins have the urge to fix 23

MySQL/EBS Toolbox server 24

Many small databases Database pain cycle: 1. Recognize the DB is important 2. Buy expensive DB hardware 3. Consolidate DBs onto expensive hardware 4. Recognize the DB is now even more critical 5. Buy more expensive DB hardware 6. Repeat! Cloud Computing = Infinite servers and disks + Fully automatable 25

Many Small Databases Sharding Split by user Need to manage mappings Read slaves Many slave to increase read performance Need to manage failover 26

EBS Performance Functionality (snapshots) trump performance Very difficult to benchmark Multiple levels of cache, some hidden Sequential I/O limited by network 70-90MB/sec typ, 100MB/sec max 4 local drives striped yield more Random I/O (sustained) 400-1000 read ops/sec 100-400 write ops/sec Stripe to increase performance 27

Clouds are Multiplying! Amazon US + EU GoGrid, Flexiscale Eucalyptus open source release RackSpace CloudServers Sun cloud announcement And many more Operating principles are the same Storage architectures differ From better local drives to traditional SANs 28

Public vs. Private Cloud Public cloud: shared cloud computing infrastructure connected to the public internet Cloud Definition: 1. Infinite computing resources 2. Available on-demand 3. Pay per use 4. Delivered across the Internet Private cloud: cloud infrastructure dedicated to a single party may not be connected to the public internet Hybrid cloud private and public clouds used together leverage the benefits of both 29

Hybrid Cloud Use-Cases Develop in public, deploy in private Outsourced/distributed development flexibility of test & dev resources Develop in private, deploy in public existing in house dev resources ability to scale in public cloud public-facing app Private core, public expansion Transaction intensive in-house core Batch processing in public cloud 30

RightScale Supports Hybrid Clouds 1. Commandeer some machines 2. Install Eucalyptus 3. Register with RightScale 4. The power of RightScale for your cloud 5. Invite friends to your cloud 31

Multi-Cloud Architecture RightScale Core Eucalyptus Cloud Controller Node Node Node Node Node Node EC2 GoGrid FlexiScale RackSpace Sun more 32

Clouds Surpass Traditional Hosting Servers on-demand Disk Volumes on-demand Multiple datacenters Reassign IPs / VIPs across datacenters Multiple geographies Multiple providers Automation tying it all together 33

RightScale Cloud Management Platform Automation Multi-Cloud Fully transparent Fully customizable Replicated MySQL/EBS ServerTemplates 34