Mysql Cluster • Mysql, Heartbeat Plus DRBD Architectures • Setup and Configuration • Managing Failover • High Availability Services from Mysql •Q & A

Total Page:16

File Type:pdf, Size:1020Kb

Mysql Cluster • Mysql, Heartbeat Plus DRBD Architectures • Setup and Configuration • Managing Failover • High Availability Services from Mysql •Q & A High Availability Architectures with MySQL and DRBD Jimmy Guerrero Senior Product Manager [email protected] Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 1 Agenda • Introduction to MySQL • Comparing MySQL HA Architectures – MySQL Replication – MySQL Replication plus Linux Heartbeat – MySQL Cluster • MySQL, Heartbeat plus DRBD Architectures • Setup and Configuration • Managing Failover • High Availability Services from MySQL •Q & A Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 2 Overview of MySQL AB • Founded in 1995 • Operations in 24 countries • World’s Most Popular Open Source Database – Over 10 million installations – 50,000 downloads each day • Reduces TCO of database management – Reliable, high performance, easy to use • Bundled by over 100 software & hardware companies • Partners HP, Dell, Novell, Red Hat, Unisys, Accenture, LogicaCMG, T-Systems and IPL Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 3 Established & Emerging Companies High Volume Websites – Web 2.0 – Dynamic content – eCommerce – Look to Book – Session Management – Gaming & Entertainment craigslist –Scale Out Enterprise – Data Warehousing – High-Volume OLTP –Scale Out Embedded – Software & Hardware Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 4 MySQL, Heartbeat and DRBD Cluster • High availability solution built on open source software – MySQL: Database – Linux Heartbeat: Virtual IP management – DRBD: Synchronous block level replication and fast data resynchronization after node failure • Low cost – Many popular Linux distributions supported – Can be built on COTS hardware components – No migration hassles • Supports MySQL “scale out” for reads • Supports transactional storage engines – InnoDB –Falcon Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 5 What is DRBD? • Block device which leverages synchronous replication – Open source Linux kernel module – Bundled by several popular Linux distributions – Project maintained by LinBit • Core functionality – The entire block device is mirrored via a dedicated network – Similar to RAID-1 over Ethernet – DRBD operates at disk I/O layer – Transparent to MySQL and the underlying file system – MySQL fails over to passive DRBD server via "virtual IP management" • Typically accomplished with the Linux Heartbeat package. – MySQL transactional storage engine independent • InnoDB, Falcon http://www.drbd.org/ http://www.linux-ha.org/ Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 6 MySQL HA Solutions Clustering & Geographical Redundancy MySQL Clustering Cluster Technologies MySQL + DRBD Replication MySQL + SAN Technologies Well-Managed MySQL Replication Unmanaged Small ISPs & Telco Data Banking Military Business Mainstream Centers Medical Business Defense 9 9 . 9 9 9 % 35 days 4 days 8 hours 50 mins 5 mins Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 7 What is Replication? Asynchronous Replication update customer Synchronous Replication update customer Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 8 MySQL Replication • Asynchronous Requirements Support – Statement Availability – Row-based (5.1) Automated IP Fail Over No – Mixed (5.1) Automated DB Fail Over No • Read vs. Write Typical Fail Over Time Varies – Response times – Load balancing Resynchronization of Data No –Scale Out Geographic Redundancy Yes • Administration Scalability – Backups Built-in Load Balancing Scale-Out – Upgrades Read Intensive Yes – Testing Write Intensive No • Geographic Redundancy Dozens for # of Nodes Reads Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 9 MySQL Replication Topologies Master > Slave Master > Slaves Masters > Slave (Multi-Source) Master > Slave > Slaves Circular (Multi-Master) Master < > Master (Multi-Master) Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 10 MySQL Replication - Scale Out • Write to one master • Read from many slaves • Perfect for read intensive apps Load Balancer Writes & Reads Reads Reads MySQL Replication Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 11 MySQL Replication & Linux Heartbeat IP Management Active Passive MySQL MySQL Server Server Asynchronous MySQL Replication Heartbeat implements serial, UDP, and PPP/UDP heartbeats together with IP address takeover, this solves MySQL Replication’s “fail over” problem, but, data resynchronization is not automatic and can be complex. Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 12 MySQL Cluster • In-Memory Database Requirements Support – Disk Data (5.1) Availability • Shared-nothing storage Automated IP Fail Over No • Synchronous replication Automated DB Fail Over Yes • Fast-automatic data fail over Typical Fail Over Time < 3 Secs • High performance Resynchronization of Data Yes – NDB API Yes Geographic Redundancy • No special hardware (w/ Replication) • Best for primary key lookups Scalability • Transactional Load Balancing Scale-Out • Online backup Read Intensive Yes (Look ups) • No automated IP failover Write Intensive Yes 5.0: 64 # of Nodes 5.1: 255 Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 13 MySQL Cluster: Architecture Clients NDB API Application Nodes (NDB API and/or MySQL Server) Management Nodes (Typically 2) Data Nodes NDB Storage Engine Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 14 MySQL Cluster: Data Distribution PK col1 col2 col3 Partitions - Automatic or User-Defined 1 data data data - Horizontal 2 data data data - MD5 hash of Primary Key 3 data data data 4 data data data Two Data Nodes * Complete copy of database on each node Two Replicas * Two copies of each partition Node Group One Node Group P1 - Primary P1 - Replica * One set of identical Data Nodes P2 - Replica P2 - Primary Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 15 MySQL, Heartbeat & DRBD Cluster • Distributed storage Requirements Support • Similar to network RAID 1 Availability • Synchronous replication Automated IP Fail Over Yes • No special networking Automated DB Fail Over Yes components Typical Fail Over Time < 30 secs • Excellent performance Resynchronization of Data Yes – Blocks vs. rows of data MySQL Geographic Redundancy • Manages inconsistencies of Replication data during a failure Scalability • Hides the complexity of many Built-in Load Balancing No recovery actions Read Intensive Yes • Heartbeat manages fail over and virtual IPs Write Intensive Possible # of Nodes 1 Active Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 16 MySQL, Heartbeat & DRBD Cluster IP Management Active Passive DRBD DRBD Server Server Synchronous Block Replication Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 17 Scale Out MySQL Replication w/ DRBD Cluster IP Management Active Passive Server Server MySQL Replication Slaves – Read Scalability - Asynchronous Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 18 Application Partitioning MySQL Replication w/ DRBD Cluster • Data is separated into distinct, autonomous data silos or “shards” within DRBD Clusters • Applications access “shards” directly or through load balancing • Used in conjunction with MySQL Replication, can increase read & write scalability • Potential to also increase availability depending on partitioning scheme • Partitioning on different levels – Application – MySQL data partitioning in 5.1 – Reads vs Writes Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 19 Application Partitioning MySQL Replication w/ DRBD Cluster Load Balancer/SQL Relay Shard 1 Shard 2 IP Management IP Management Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 20 Block Devices • A device node is a type of special file – Used on many Unix-like operating systems • Facilitates transparent communication – Between user space applications and hardware • Correspond to resources allocated by the operating system kernel • Accessed using standard system calls and treated like regular files • Used to correspond to devices – Data is transmitted in the form of blocks. • Make use of buffered input and output routines Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 21 DRBD Basics • Each device has one of two states – Primary – Secondary • Application runs and accesses the device on the primary node • Writes are sent to the local lower level block device and to the node with the device in secondary state • Secondary device writes the data to its lower level block device • Reads are always carried out locally – Key advantage over SAN/NAS • If the primary node fails – Heartbeat switches the secondary device into a primary state and starts the application (MySQL) Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 22 DRBD Basics • When the failed node comes up – Becomes a secondary node – Must synchronize its data to the primary – Synching happens in the background without service interruption – Only the parts of the device which have changed since the failure will be resynchronized. • Total resynchronization in just several minutes – Regardless of device size – Even after the hard crash of an active node – Resynch rates may be configured per device • Device sizes currently limited to 4 TB Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 23 Setup & Configuration System Requirement Support Hosts Minimum 2 (More for scale-out or partitioning) COTS or SMP - 32
Recommended publications
  • Mysql Replication Tutorial
    MySQL Replication Tutorial Lars Thalmann Technical lead Replication, Backup, and Engine Technology Mats Kindahl Lead Developer Replication Technology MySQL Conference and Expo 2008 Concepts 3 MySQL Replication Why? How? 1. High Availability Snapshots (Backup) Possibility of fail-over 1. Client program mysqldump 2. Load-balancing/Scale- With log coordinates out 2. Using backup Query multiple servers InnoDB, NDB 3. Off-site processing Don’t disturb master Binary log 1. Replication Asynchronous pushing to slave 2. Point-in-time recovery Roll-forward Terminology Master MySQL Server • Changes data • Has binlog turned on Master • Pushes binlog events to slave after slave has requested them MySQL Server Slave MySQL Server • Main control point of replication • Asks master for replication log Replication • Gets binlog event from master MySQL Binary log Server • Log of everything executed Slave • Divided into transactional components • Used for replication and point-in-time recovery Terminology Synchronous replication Master • A transaction is not committed until the data MySQL has been replicated (and applied) Server • Safer, but slower • This is available in MySQL Cluster Replication Asynchronous replication • A transaction is replicated after it has been committed MySQL Server • Faster, but you can in some cases loose transactions if master fails Slave • Easy to set up between MySQL servers Configuring Replication Required configuration – my.cnf Replication Master log-bin server_id Replication Slave server_id Optional items in my.cnf – What
    [Show full text]
  • Beyond Relational Databases
    EXPERT ANALYSIS BY MARCOS ALBE, SUPPORT ENGINEER, PERCONA Beyond Relational Databases: A Focus on Redis, MongoDB, and ClickHouse Many of us use and love relational databases… until we try and use them for purposes which aren’t their strong point. Queues, caches, catalogs, unstructured data, counters, and many other use cases, can be solved with relational databases, but are better served by alternative options. In this expert analysis, we examine the goals, pros and cons, and the good and bad use cases of the most popular alternatives on the market, and look into some modern open source implementations. Beyond Relational Databases Developers frequently choose the backend store for the applications they produce. Amidst dozens of options, buzzwords, industry preferences, and vendor offers, it’s not always easy to make the right choice… Even with a map! !# O# d# "# a# `# @R*7-# @94FA6)6 =F(*I-76#A4+)74/*2(:# ( JA$:+49>)# &-)6+16F-# (M#@E61>-#W6e6# &6EH#;)7-6<+# &6EH# J(7)(:X(78+# !"#$%&'( S-76I6)6#'4+)-:-7# A((E-N# ##@E61>-#;E678# ;)762(# .01.%2%+'.('.$%,3( @E61>-#;(F7# D((9F-#=F(*I## =(:c*-:)U@E61>-#W6e6# @F2+16F-# G*/(F-# @Q;# $%&## @R*7-## A6)6S(77-:)U@E61>-#@E-N# K4E-F4:-A%# A6)6E7(1# %49$:+49>)+# @E61>-#'*1-:-# @E61>-#;6<R6# L&H# A6)6#'68-# $%&#@:6F521+#M(7#@E61>-#;E678# .761F-#;)7-6<#LNEF(7-7# S-76I6)6#=F(*I# A6)6/7418+# @ !"#$%&'( ;H=JO# ;(\X67-#@D# M(7#J6I((E# .761F-#%49#A6)6#=F(*I# @ )*&+',"-.%/( S$%=.#;)7-6<%6+-# =F(*I-76# LF6+21+-671># ;G';)7-6<# LF6+21#[(*:I# @E61>-#;"# @E61>-#;)(7<# H618+E61-# *&'+,"#$%&'$#( .761F-#%49#A6)6#@EEF46:1-#
    [Show full text]
  • Two Node Mysql Cluster
    Two Node MySQL Cluster 1.0 EXECUTIVE SUMMARY This white paper describes the challenges CONTENTS involved in deploying the 2 node High Available MySQL-Cluster with a proposed solution. For the SECTION PAGE sake of users reading this document it also describes in brief the main components of the MySQL Cluster which are necessary to 1.0 EXECUTIVE SUMMARY………………………1 understand the paper overall. 2.0 BUSINESS CHALLENGES……………………1 The solution relies on the Linux HA framework 3.0 MYSQL CLUSTER……………………………..1 (Heartbeat/Pacemaker) so the white paper can 3.1 CLIENTS/APIS………………………………….2 be best understood with the knowledge of Linux 3.2 SQL NODE………………………………………2 HA framework. 3.3 DATA NODE…………………………………….2 3.4 NDB MANAGEMENT NODE………………….3 3.5 CHALLENGES………………………………….3 3.6 SOLUTION………………………………………4 4.0 REFERENCES………………………………….7 2.0 BUSINESS CHALLENGES The MySQL cluster demands at least 4 nodes to be present for deploying a High Available MySQL database cluster. The typical configuration of any enterprise application is a 2 Node solution (Active-Standby mode or Active-Active Mode). The challenge lies in fitting the MySQL Clsuter Nodes in the 2 Nodes offering the application services and to make it work in that configuration with no single point of failure. 3.0 MYSQL CLUSTER The intent of this section is to briefly mention the important actors and their roles in the overall MySQL Cluster. For more information the reader can refer to the MYSQL reference documents from its official site (http://dev.mysql.com/doc/index.html). MySQL Cluster is a technology that enables clustering of in-memory databases in a “shared-nothing system”.
    [Show full text]
  • Data Platforms Map from 451 Research
    1 2 3 4 5 6 Azure AgilData Cloudera Distribu2on HDInsight Metascale of Apache Kaa MapR Streams MapR Hortonworks Towards Teradata Listener Doopex Apache Spark Strao enterprise search Apache Solr Google Cloud Confluent/Apache Kaa Al2scale Qubole AWS IBM Azure DataTorrent/Apache Apex PipelineDB Dataproc BigInsights Apache Lucene Apache Samza EMR Data Lake IBM Analy2cs for Apache Spark Oracle Stream Explorer Teradata Cloud Databricks A Towards SRCH2 So\ware AG for Hadoop Oracle Big Data Cloud A E-discovery TIBCO StreamBase Cloudera Elas2csearch SQLStream Data Elas2c Found Apache S4 Apache Storm Rackspace Non-relaonal Oracle Big Data Appliance ObjectRocket for IBM InfoSphere Streams xPlenty Apache Hadoop HP IDOL Elas2csearch Google Azure Stream Analy2cs Data Ar2sans Apache Flink Azure Cloud EsgnDB/ zone Platforms Oracle Dataflow Endeca Server Search AWS Apache Apache IBM Ac2an Treasure Avio Kinesis LeanXcale Trafodion Splice Machine MammothDB Drill Presto Big SQL Vortex Data SciDB HPCC AsterixDB IBM InfoSphere Towards LucidWorks Starcounter SQLite Apache Teradata Map Data Explorer Firebird Apache Apache JethroData Pivotal HD/ Apache Cazena CitusDB SIEM Big Data Tajo Hive Impala Apache HAWQ Kudu Aster Loggly Ac2an Ingres Sumo Cloudera SAP Sybase ASE IBM PureData January 2016 Logic Search for Analy2cs/dashDB Logentries SAP Sybase SQL Anywhere Key: B TIBCO Splunk Maana Rela%onal zone B LogLogic EnterpriseDB SQream General purpose Postgres-XL Microso\ Ry\ X15 So\ware Oracle IBM SAP SQL Server Oracle Teradata Specialist analy2c PostgreSQL Exadata
    [Show full text]
  • High Performance Mysql Other Microsoft .NET Resources from O’Reilly
    High Performance MySQL Other Microsoft .NET resources from O’Reilly Related titles Managing and Using MySQL PHP Cookbook™ MySQL Cookbook™ Practical PostgreSQL MySQL Pocket Reference Programming PHP MySQL Reference Manual SQL Tuning Learning PHP Web Database Applications PHP 5 Essentials with PHP and MySQL .NET Books dotnet.oreilly.com is a complete catalog of O’Reilly’s books on Resource Center .NET and related technologies, including sample chapters and code examples. ONDotnet.com provides independent coverage of fundamental, interoperable, and emerging Microsoft .NET programming and web services technologies. Conferences O’Reilly Media bring diverse innovators together to nurture the ideas that spark revolutionary industries. We specialize in docu- menting the latest tools and systems, translating the innovator’s knowledge into useful skills for those in the trenches. Visit con- ferences.oreilly.com for our upcoming events. Safari Bookshelf (safari.oreilly.com) is the premier online refer- ence library for programmers and IT professionals. Conduct searches across more than 1,000 books. Subscribers can zero in on answers to time-critical questions in a matter of seconds. Read the books on your Bookshelf from cover to cover or sim- ply flip to the page you need. Try it today for free. SECOND EDITION High Performance MySQL Baron Schwartz, Peter Zaitsev, Vadim Tkachenko, Jeremy D. Zawodny, Arjen Lentz, and Derek J. Balling Beijing • Cambridge • Farnham • Köln • Sebastopol • Taipei • Tokyo High Performance MySQL, Second Edition by Baron Schwartz, Peter Zaitsev, Vadim Tkachenko, Jeremy D. Zawodny, Arjen Lentz, and Derek J. Balling Copyright © 2008 O’Reilly Media, Inc. All rights reserved. Printed in the United States of America.
    [Show full text]
  • Mysql Administration Contents 1 Introduction 2 Server Configuration
    SA|MySQL Administration Page 1 1 -- From Linux command-line: MySQL Administration 2 sudo install mysql-server mysql by Terry Sergeant 3 sudo mysql_secure_installation 4 mysql -u root 5 Contents 6 -- now we are in the MySQL client: 7 SELECT user, host, authentication_string, plugin FROM mysql.user; 1 Introduction 1 8 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; 1.1 Installation . 1 9 FLUSH PRIVILEGES; 1.2 First Steps . 1 10 \q 1.3 Some Other Useful Commands . 1 11 12 -- Back at Linux command-line ... test new password 2 Server Configuration 1 13 mysql -u root -p 2.1 SQL Mode . 1 2.2 Logging . 2 1.3 Some Other Useful Commands 3 MySQL Clients 2 From Linux command-line: 4 Data Types 2 1 systemctl status mysql 4.1 Numeric . 2 2 systemctl restart mysql 4.2 Character . 2 3 systemctl enable mysql 4.3 Binary . 2 4 systemctl is-enabled mysql 4.4 Temporal . 2 4.5 Other . 2 From MySQL command-line: 5 Obtaining Metadata 3 1 show databases; 2 use DBNAME; 6 Storage Engines 3 3 show tables; 6.1 MyISAM (default) . 3 4 desc TNAME; 6.2 InnoDB . 3 5 create database DBNAME; 6.3 InnoBase . 3 6 source SQLFILE; -- same as \. SQLFILE 6.4 MEMORY . 3 7 select @@datadir; 6.5 Other Engines . 3 7 Security and User Management 3 2 Server Configuration 7.1 Risks . 3 7.2 Some Commands . 3 Here are some common ways to tweak the server's configuration. 8 Backup and Recovery 4 mysqld --verbose --help (to see runtime options sup- 8.1 Backup Types .
    [Show full text]
  • Navicat Wine En.Pdf
    Table of Contents Getting Started 8 System Requirements 9 Registration 9 Installation 10 Maintenance/Upgrade 11 End-User License Agreement 11 Connection 17 Navicat Cloud 18 General Settings 21 Advanced Settings 24 SSL Settings 27 SSH Settings 28 HTTP Settings 29 Server Objects 31 MySQL/MariaDB Objects 31 MySQL Tables 31 MySQL/MariaDB Table Fields 32 MySQL/MariaDB Table Indexes 34 MySQL/MariaDB Table Foreign Keys 35 MySQL/MariaDB Table Triggers 36 MySQL/MariaDB Table Options 37 MySQL/MariaDB Views 40 MySQL/MariaDB Functions/Procedures 41 MySQL/MariaDB Events 43 Oracle Objects 44 Oracle Data Pump (Available only in Full Version) 44 Oracle Data Pump Export 45 Oracle Data Pump Import 48 Oracle Debugger (Available only in Full Version) 52 Oracle Physical Attributes/Default Storage Characteristics 53 Oracle Tables 55 Oracle Normal Tables 55 Oracle Table Fields 55 Oracle Table Indexes 57 Oracle Table Foreign Keys 58 Oracle Table Uniques 59 Oracle Table Checks 59 Oracle Table Triggers 60 Oracle Table Options 61 Oracle External Tables 62 2 Fields for Oracle External Tables 62 External Properties for Oracle External Tables 63 Access Parameters for Oracle External Tables 64 Oracle Index Organized Tables 64 Options for Oracle Index Organized Tables 64 Oracle Views 65 Oracle Functions/Procedures 66 Oracle Database Links 68 Oracle Indexes 68 Oracle Java 71 Oracle Materialized Views 72 Oracle Materialized View Logs 75 Oracle Packages 76 Oracle Sequences 77 Oracle Synonyms 78 Oracle Triggers 78 Oracle Types 81 Oracle XML Schemas 82 Oracle Recycle Bin
    [Show full text]
  • Mysql Database Administrator
    MySQL Database Administrator Author: Kacper Wysocki Contact: [email protected] Date: December 2010 License: Creative Commons: CC BY-SA Oslo, December 2010, CC BY-SA Contents Introduction 5 Introductions everybody 5 About this course 5 Course outline 6 Course schedule 6 How to do excersies 6 MySQL: history and future 6 MySQL: the present 7 MySQL: the future 7 MySQL compared to other DBs 7 MySQL language support 8 Embedding MySQL 8 Getting help with MySQL 8 MySQL architecture 9 Modular architecture 9 The MySQL modules 9 Client/server architecture 10 Installing MySQL 10 Installation process 10 Distribution packages 11 MySQL official binaries 11 Deploying sandboxes 12 Installing from source 13 Server Startup and Shutdown 14 MySQL relevant files 15 Excersises: Installation 15 Upgrading MySQL 16 Clients: the mysql* suite 16 Client: mysql 16 Excersise: Client mysql 16 Excersise: mysql CLI 17 Further CLI fun 17 Digression: some SQL 18 Client: mysqladmin 18 Excersises: Client: mysql 18 Clients: applications and libraries 18 Oslo, December 2010, CC BY-SA migration 19 Importing data: timezones 19 Importing data 19 Excersises: importing data 20 Excersises: time zones 20 Exporting data 20 Excersises: Exporting data 21 Configuration 21 More configuration 21 Run-time Variables 22 MySQL Architecture 23 Storage Engines 23 Storage Engines 23 Storage Engines types 23 MyISAM 24 MYISAM_MRG 24 InnoDB 24 Excersises: InnoDB 24 FEDERATED 25 CSV 25 ARCHIVE 25 MEMORY 25 BLACKHOLE 25 So... which engine? 26 Engine Excersises 26 Implementing Security 26
    [Show full text]
  • Mysql Cluster Wann Brauche Ich Das?
    MySQL Cluster Wann brauche ich das? Mario Beck Principal Sales Consultant [email protected] The presentation is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 2.1BN USERS 8X DATA GROWTH IN 5 YRS 750M USERS 70+ NEW DOMAINS EVERY 60 SECONDS 20M APPS PER DAY 40% DATA GROWTH PER YEAR 600 NEW VIDEOS EVERY 60 SECONDS $1TR BY 2014 100K TWEETS PER MINUTE $700BN IN 2011 5.3BN MOBILE SUBS IN 2010 (78% PENETRATION) 13K iPHONE APPS 370K CALL MINUTES EVERY 60 SECONDS DOWNLOADED PER MINUTE Driving new Database Requirements EXTREME WRITE SCALABILITY REAL TIME USER EXPERIENCE ROCK SOLID RELIABILITY ELIMNATE BARRIERS TO ENTRY No Trade-Offs Transactional Integrity EXTREME WRITE SCALABILITYComplex REALQueries TIME USER EXPERIENCE Standards & Skillsets ROCK SOLID RELIABILITY ELIMNATE BARRIERS TO ENTRY No Trade-Offs: Cellular Network HLR / HSS Location Updates AuC, Call Routing, Billing Pre & Post Paid • Massive volumes of write traffic • <3ms database response • Downtime & lost transactions = lost $ Billing, AuC, VLR MySQL Cluster in Action: http://bit.ly/oRI5tF No Trade-Offs: eCommerce • Integrated Service Provider platform • eCommerce • Payment processing • Fulfillment • Supports 1k+
    [Show full text]
  • How Mysql Handles ORDER BY, GROUP BY, and DISTINCT
    How MySQL handles ORDER BY, GROUP BY, and DISTINCT Sergey Petrunia, [email protected] MySQL University Session November 1, 2007 Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 1 Handling ORDER BY • Available means to produce ordered streams: – Use an ordered index • range access – not with MyISAM/InnoDB's DS-MRR – not with Falcon – Has extra (invisible) cost with NDB • ref access (but not ref-or-null) results of ref(t.keypart1=const) are ordered by t.keypart2, t.keypart3, ... • index access – Use filesort Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 2 Executing join and producing ordered stream There are three ways to produce ordered join output Method EXPLAIN shows Use an ordered index Nothing particular Use filesort() on 1st non-constant table “Using filesort” in the first row Put join result into a temporary table “Using temporary; Using filesort” in the and use filesort() on it first row EXPLAIN is a bit counterintuitive: id select_type table type possible_keys key key_len ref rows Extra Using where; 1 SIMPLE t2 range a a 5 NULL 10 Using temporary; Using filesort 1 SIMPLE t2a ref a a 5 t2.b 1 Using where Copyright 2007 MySQL AB The World’s Most Popular Open Source Database 3 Using index to produce ordered join result • ORDER BY must use columns from one index • DESC is ok if it is present for all columns • Equality propagation: – “a=b AND b=const” is detected – “WHERE x=t.key ORDER BY x” is not • Cannot use join buffering – Use of matching join order disables use of join buffering.
    [Show full text]
  • Mysql Cluster – Evaluation and Tests, OCTOBER 2, 2012 1 Mysql Cluster – Evaluation and Tests
    MySQL Cluster – Evaluation and Tests, OCTOBER 2, 2012 1 MySQL Cluster – Evaluation and Tests Michael Raith (B.Sc.), Master-Student F Abstract Websites or web applications, whether they represent shopping systems, on demand services or a social networks, have something in common: data must be stored somewhere and somehow. This job can be achieved by various solutions with very different performance characteristics, e.g. based on simple data files, databases or high performance RAM storage solutions. For today’s popular web applications it is important to handle database operations in a minimum amount of time, because they are struggling with a vast increase in visitors and user generated data. Therefore, a major requirement for modern database application is to handle huge data (also called “big data”) in a short amount of time and to provide high availability for that data. A very popular database application in the open source community is MySQL, which was originally developed by a swedisch company called MySQL AB and is now maintenanced by Oracle. MySQL is shipped in a bundle with the Apache web server and therefore has a large distribution. This database is easily installed, maintained and administrated. By default MySQL is shipped with the MyISAM storage engine, which has good performance on read requests, but a poor one on massive parallel write requests. With appropriate tuning of various database settings, special architecture setups (replication, partitioning, etc.) or other storage engines, MySQL can be turned into a fast database application. For example Wikipedia uses MySQL for their backend data storage. In the lecture “Ultra Large Scale Systems” and “System Engineering” teached by Walter Kriha at Media University Stuttgart, the question “Can a MySQL database application handle more then 3000 database requests per second?” came up some time.
    [Show full text]
  • ZRM for Mysql Performance Benchmarks
    Backup and recovery benchmarks for MyISAM and InnoDB engines with Zmanda Recovery Manager for MySQL. By Dmitri Joukovski and Shailen Patel "As MySQL gains widespread adoption and moves more broadly into the enterprise, ZRM for MySQL addresses the growing need among database administrators to protect their digital assets with a comprehensive backup and recovery solution. Zmanda is a valued member of MySQL's ecosystem, and their open source backup solutions are an excellent complement to MySQL's open source database offerings." Marten Mickos, CEO of MySQL AB. Abstract This document provides backup and recovery benchmarks for MyISAM and InnoDB engines with logical, raw and snapshot methods of backup available in ZRM for MySQL. Please send your comments to [email protected] The MySQL database has become the world's most popular open source database because of its consistent fast performance, high reliability and ease of use. The DBAs also expect performance, robustness and ease of use from a backup solution for MySQL. Often times we are asked what performance to expect from Zmanda Recovery Manager (ZRM) for MySQL. This document describes our first results in measuring ZRM backup and recovery performance. Testing configuration 2 x 2.8Ghz/800 FSB Xeon server 4GB ECC/Registered 333Mhz RAM 9500S-12MI 3Ware SATA Controller 230 GB RAID 1 system array 2.27 TB RAID 0 data array All Disks 7200 RPM Operating System - Red Hat Enterprise Linux AS 4 with 2.6.12 kernel Backup of MySQL version 5.0 database MyISAM and InnoDB storage engines Version 1.1 of Enterprise Edition ZRM for MySQL According to 3Ware, the 9500 SATA controller supports a transfer rate of approximately 400 MB/s.
    [Show full text]