How to choose High Availability solutions for MySQL MySQL UC 2010 Yves Trudeau Read by Peter Zaitsev. Percona Inc MySQLPerformanceBlog.



Similar documents
High Availability Solutions for the MariaDB and MySQL Database


High Availability Solutions for MySQL. Lenz Grimmer DrupalCon 2008, Szeged, Hungary

Flash Databases: High Performance and High Availability

Tushar Joshi Turtle Networks Ltd

A SURVEY OF POPULAR CLUSTERING TECHNOLOGIES

How to evaluate which MySQL High Availability solution best suits you

Architectures Haute-Dispo Joffrey MICHAÏE Consultant MySQL

Top 10 Reasons why MySQL Experts Switch to SchoonerSQL - Solving the common problems users face with MySQL

How To Monitor Mysql With Zabbix

Synchronous multi-master clusters with MySQL: an introduction to Galera

Tier Architectures. Kathleen Durant CS 3200

Blackboard Managed Hosting SM Disaster Recovery Planning Document

MySQL High Availability Solutions. Lenz Grimmer OpenSQL Camp St. Augustin Germany

High Availability Using MySQL in the Cloud:

Module 14: Scalability and High Availability

High Availability & Disaster Recovery Development Project. Concepts, Design and Implementation

Availability Digest. MySQL Clusters Go Active/Active. December 2006

Not Your Grandpa s Replication

High Availability with Postgres Plus Advanced Server. An EnterpriseDB White Paper

Cloud Based Application Architectures using Smart Computing

High Availability of VistA EHR in Cloud. ViSolve Inc. White Paper February

The Future of PostgreSQL High Availability Robert Hodges - Continuent, Inc. Simon Riggs - 2ndQuadrant

Microsoft SharePoint 2010 on VMware Availability and Recovery Options. Microsoft SharePoint 2010 on VMware Availability and Recovery Options

Designing, Optimizing and Maintaining a Database Administrative Solution for Microsoft SQL Server 2008

MySQL Reference Architectures for Massively Scalable Web Infrastructure

MySQL Fabric: High Availability Solution for Connector/Python

How To Build A Fault Tolerant Mythrodmausic Installation

MS Design, Optimize and Maintain Database for Microsoft SQL Server 2008

MySQL és Hadoop mint Big Data platform (SQL + NoSQL = MySQL Cluster?!)

High Availability on MapR

MySQL Replication. openark.org

bla bla OPEN-XCHANGE Open-Xchange Hardware Needs

Preparing for the Big Oops! Disaster Recovery Sites for MySQL. Robert Hodges, CEO, Continuent MySQL Conference 2011

WHITE PAPER. Best Practices to Ensure SAP Availability. Software for Innovative Open Solutions. Abstract. What is high availability?

short introduction to linux high availability description of problem and solution possibilities linux tools

High Availability Solutions with MySQL

High Availability Storage

Data Warehousing and Analytics Infrastructure at Facebook. Ashish Thusoo & Dhruba Borthakur athusoo,dhruba@facebook.com

MySQL backups: strategy, tools, recovery scenarios. Akshay Suryawanshi Roman Vynar

MySQL High-Availability and Scale-Out architectures

Fault Tolerant Servers: The Choice for Continuous Availability on Microsoft Windows Server Platform

Understanding Neo4j Scalability

Database Scalability {Patterns} / Robert Treat

Near Real Time Indexing Kafka Message to Apache Blur using Spark Streaming. by Dibyendu Bhattacharya

Creating A Highly Available Database Solution

Ecomm Enterprise High Availability Solution. Ecomm Enterprise High Availability Solution (EEHAS) Page 1 of 7

Overview of Databases On MacOS. Karl Kuehn Automation Engineer RethinkDB

In Memory Accelerator for MongoDB

MySQL Backup and Recovery: Tools and Techniques. Presented by: René Senior Operational DBA

ORACLE DATABASE HIGH AVAILABILITY STRATEGY, ARCHITECTURE AND SOLUTIONS

OVERVIEW. CEP Cluster Server is Ideal For: First-time users who want to make applications highly available

SCALABLE DATA SERVICES

Non-Stop Hadoop Paul Scott-Murphy VP Field Techincal Service, APJ. Cloudera World Japan November 2014

HA for Enterprise Clouds: Oracle Solaris Cluster & OpenStack

Contents. SnapComms Data Protection Recommendations

Adding Indirection Enhances Functionality

Windows Server Failover Clustering April 2010

High Availability Database Solutions. for PostgreSQL & Postgres Plus

SysAid Cloud Architecture Including Security and Disaster Recovery Plan

Copyright 1

Microsoft SQL Server on Stratus ftserver Systems

Astaro Deployment Guide High Availability Options Clustering and Hot Standby

Deployment Topologies

Enabling Database-as-a-Service (DBaaS) within Enterprises or Cloud Offerings

Percona Server features for OpenStack and Trove Ops

High Availability, Disaster Recovery and Extreme Read Scaling using Binlog Servers. Jean-François Gagné jeanfrancois DOT gagne AT booking.

High Availability Using Raima Database Manager Server

Fault Tolerant Servers: The Choice for Continuous Availability

Introduction to Hadoop. New York Oracle User Group Vikas Sawhney

SQL Server AlwaysOn Deep Dive for SharePoint Administrators

High Availability for Database Systems in Cloud Computing Environments. Ashraf Aboulnaga University of Waterloo

Managed Hoster gains competitive edge through new cross-region multi-datacenter architecture

Storage Architectures for Big Data in the Cloud

Open-Xchange Server High Availability

Search Big Data with MySQL and Sphinx. Mindaugas Žukas

Database high availability

Leveraging Virtualization in Data Centers

Dell High Availability and Disaster Recovery Solutions Using Microsoft SQL Server 2012 AlwaysOn Availability Groups

Building Scalable Web Sites: Tidbits from the sites that made it work. Gabe Rudy

High Availability and Disaster Recovery Solutions for Perforce

Products and Solutions

On- Prem MongoDB- as- a- Service Powered by the CumuLogic DBaaS Platform

Fault-Tolerant Computer System Design ECE 695/CS 590. Putting it All Together

SCALABILITY AND AVAILABILITY

Benchmarking Couchbase Server for Interactive Applications. By Alexey Diomin and Kirill Grigorchuk

Designing, Scoping, and Configuring Scalable Drupal Infrastructure. Presented by David Strauss

Vess A2000 Series HA Surveillance with Milestone XProtect VMS Version 1.0

HA / DR Jargon Buster High Availability / Disaster Recovery

Database System Architecture for Fault tolerance and Disaster Recovery

High-availability with Galera Cluster for MySQL

High availability on the Catalyst Cloud

Transcription:

How to choose High Availability solutions for MySQL MySQL UC 2010 Yves Trudeau Read by Peter Zaitsev Percona Inc MySQLPerformanceBlog.com

-2- About us http://www.percona.com http://www.mysqlperformanceblog.com/ http://www.bigdbahead.com Yves Trudeau, Ph. D. Principal Consultant

-3- Plan 1)Definitions of some High-Availability (HA) terms 2)Questions to ask 3)HA mindset 4)Common HA solutions with MySQL Replication based Shared storage based NDB Cluster 5)Other solutions

-4- Definitions 1)High-Availability (HA) A computer architecture design and implementation that is targeted at improving the availability of a given service 2)Uptime and downtime The proportion of time a high availability service is up or down over the total time. Normally, uptime + downtime = 100%. 3)Level of availability Typically in term of the fraction of uptime and referred by the number of 9, 99% (2 9s), 99.9% (3 9s), etc.

-5- Definitions 4)Single point of failure (SPOF) An isolated device or piece of software for which a failure will cause a downtime of the HA service. The goal of an HA architecture is to remove the SPOFs. 5)Recovering or failover The process by which a HA architecture recovers after a failure. 6)Fencing/Stonith Often, an HA architecture is stuck by a non-responsive device that is not releasing a critical resource. Fencing or Stonith (Shoot The Other Node In The Head) is then required.

-6- Definitions 7)Cluster A group of computers acting together to offer a service. 8) Fault Tolerance Ability to handle failures with graceful degradation. Not all components may need same level of HA 9) Disaster Recovery The plan and technologies to recover in case of disaster. Often longer downtime allowed in this case.

-7- Questions 1)Do you need HA? can be rephrased to What is your downtime cost? Include non-monetary aspects like corporate image and marketing For the downtime cost, what is acceptable over a year? Do you have maintenance windows that offers reduce downtime cost? 2)Can you afford to lose some data? What is the cost of losing a transaction? How critical is data consistency?

-8- Questions 3)Are relying on MyISAM only features? Fulltext indexes? GIS? Sphinx or Lucene options? 4)What is the write load? How many threads are writing simultaneously? How many write ops/s? 5)What is the growth potential of your dataset?

-9- Questions 6)How qualified is your IT department or support company? 7)How much are you ready to invest?

-10- HA Mindset 1)HA, not only about technologies No technology is fool proof Operating procedures are required Testing and staging Monitoring and alerting 2)A HA is not isolated, look at the broad picture No need for HA of 99.999% if ISP SLA is 99.9% Power Cooling, more frequent problem than you might think Very high HA requirements need multiple data centers.

-11- Replication based 1) Simplest example, plain replication Widely used Manual failover

-12- Replication based failover 2)Simple replication, failover process Manual operation required

-13- Replication based MMM 3)Example 2, using MMM

Replication based MMM failover -14-4)Failover with MMM Manager transfer IP1 and IP to the surviving server

-15- Replication based other 4)Other solutions built on replication Tungsten, Java proxy layer doing man in the middle work for queries and replication stream Pacemaker/Heartbeat, not released yet, developed by Linbit, will add fencing capabilities

-16- Replication based Pros Simple/Inexpensive Supports MyISAM All servers can be used, no standby Good to scale read ops Caches are kept warm Can be used for online schema changes, upgrades Loosely coupled

-17- Replication based Cons Limited availability Replication can break Replication can lag behind Replication can be out of sync Manual or at best semi-automatic failover, tricky to automate. Limited write capacity: single threaded Can lose data: async (with semi-sync repl?) Immature tools, edge cases not always handled

Shared storage/san -18-

Shared storage/san failover -19-

Shared storage/drbd -20-

Shared storage/drbd failover -21-

-22- Shared storage Pros No data loss Much higher write capacity Automatic failover in about 1 minute with InnoDB log files of about 100 MB Comes at performance cost No SPOF with DRBD

-23- Shared storage Cons Only works with engine supporting recovery (InnoDB), should work with PBXT and Maria (Have not tested) More complex: nic bounding, fencing, etc. Requires fencing A server is standby, idle hardware Cold cache after failover although XtraDB LRU dump can be a big winner here No online schema change Corruption Propagation

NDB Cluster -24-

-25- NDB Cluster failover Still up!

-26- NDB Cluster Pros Sharding framework by hashes No SPOF, high level of HA Scalable, if the schema is well designed, adding data nodes adds processing capacity Huge write capacity

-27- NDB Cluster Cons Complex, much than other solutions Needs work on schema and queries for good performance Higher skill set required Poor for large joins Size of dataset more limited, large memory footprint Minimum of physical servers

-28- Emerging Solutions 1)Hot market a lot of work going on! 2)ScaleDB 3)Galera Replication 4) Number of Solutions which are still in stealth

-29- Mixed solutions Geo-redundancy Shared storage + replication NDB + replication Scaling reads ops Shared storage HA Master with reads slaves Sharding solutions Global database using NDB shards using shared storage

-30- Questions Questions? Yves Trudeau: yves@percona.com http://www.percona.com/ http://www.mysqlperformanceblog.com/