MySQL Empowers Mobility - From Network Infrastructure to Mobile Application

Ricky Setyawan Principal Sales Consultant, MySQL

1 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Agenda

 Oracle‟s Investment in MySQL  MySQL 5.6  Trends & Product Directions

2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Thank You, MySQL Community
Helping to Produce the Best MySQL Releases Ever

 Reviews, bug reports for MySQL 5.6 DMRs and RC  Strong interest and feedback during development  Sharing your enthusiasm post GA
“This is probably the most notable and innovative release from many years, if not ever. Oracle developer teams did great work for MySQL 5.6.” Marco Tusa, Pythian

“MySQL 5.6 is probably the version of MySQL with the biggest bundle of new features.” Giuseppe Maxia, Continuent

3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

The Open Road to MySQL 5.6
Consistent and Predictable Releases
DMR1*
April 2011

DMR2
Oct 2011

DMR3
Dec 2011

DMR4
April 2012

DMR5
Aug 2012

RC
Nov 2012

Optimizer:
MRR, ICP, File Sort

Optimizer:
BKA, New EXPLAIN, Traces

Optimizer:
Sub-Queries

Optimizer:
JSON EXPLAIN, Sub-Queries

InnoDB
TT, Online DDL, Memcached API

New Server Defaults More Partitioning

InnoDB:
Split Kernel Mutex, MT Purge

InnoDB:
Dump/Restore Buffer Pool

InnoDB:
Full Text Index, Read-Only Optimizations

Replication:
GTIDs

Replication:
Binary Log Group Commit

Replication:
Crash-Safe, Multi-Thread Slave, Checksums

More P_S

Memcached API New P_S

Condition Handling

TIMESTAMP & DATESTAMP Password Mgmt
More P_S

More GTID, TT

Partitioning Improvements
4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Fractional Seconds

More Partitioning

*Development Milestone Release

Controversial Releases
MySQL 5.0 & MySQL 5.1
 ”MySQL 5.0: Remarkably painful”

Jeremy Cole
 “MySQL 5.1 release as “GA” seems to be the most controversial to

date... As a Summary I think this was inevitable MySQL 5.1 will be released for commercial/marketing reasons, not because it really meets quality guidelines…On the bright side MySQL 5.1 “GA” quality was much better than MySQL 5.0 quality when it was released.” Peter Zaitsev

5 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

MySQL 5.5
First GA Release Under Oracle Stewardship
 “Version 5.5 of the MySQL database is probably is the best MySQL version

ever produced, and the upcoming version 5.6 is looking strong as well.” Mårten Mickos
 “If you are using MySQL today, and you need a solid path forward on it as a

platform? I’d stick with what Oracle is creating.” Brian Aker
 "From an engineering standpoint, Oracle is doing the best work on MySQL

that's ever been done. Oracle is doing good, formal software engineering.” Baron Schwartz

6 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

MySQL 5.6: The Best Release Ever
“MySQL 5.6 is probably the version of MySQL with the biggest bundle of new features.” Giuseppe Maxia
“MySQL 5.6 is much faster on IO-bound, read-only workloads.” Mark Callaghan “If GTIDs and MySQL failover work as advertised, it's living the dream of no-fuss failover.” Sheeri Cabral “I am very excited and thrilled to use the latest release of MySQL 5.6 in production. This is probably the most notable and innovative release from many years, if not ever. Oracle developer teams did great work for MySQL 5.6, so we have to give Oracle credit for that.“ Marco Tusa “MySQL vs MariaDB performance. The obvious take away is as expected, upgrade any 5.5 installations to 5.6.” Brian Aker
7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Driving Innovation AND Quality

MySQL 5.6 MySQL 5.5

MySQL 5.1 MySQL 5.0

8 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Significantly Invests in MySQL
In a Unique Position to Deliver

EXPERTISE & RESOURCES INNOVATION & ROADMAP PROFESSIONAL ENGINEERING
9 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Hundreds of MySQL development

engineers, support experts and consultants, including original architects of the server, InnoDB and MySQL Cluster  Investing and growing the team BY FAR, THE LARGEST DEVELOPMENT TEAM IN MySQL’S HISTORY
10 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

A Very Busy Team: Innovation and Quality
 191 Worklogs for MySQL 5.6

 1667 Bugs Fixed in 5.6
 2909 Bugs Fixed in Total Since MySQL 5.5 GA

 911 New MTR Tests in MySQL 5.6
 Tripled QA Team - 400 Man/Year Database QA Experience

11 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

MySQL Code Size Over Releases
Observations and Blog from Stewart Smith
“MySQL 5.6 is the largest MySQL code size increase in a MySQL version ever. The last time we saw anything like this was with the merging of MySQL Cluster in 4.1. At the very least, Oracle is paying people to write lines of code to extent that nobody has before.” Stewart Smith
12 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

13 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

COMPONENTS

50 Product Categories
14 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Web, Mobile, Embedded On Premise & in the Cloud

15 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Driving MySQL Innovation
MySQL Enterprise Backup 3.7 Oracle VM Template for MySQL Enterprise Edition MySQL Enterprise Monitor 2.2 MySQL Cluster 7.1 MySQL Cluster Manager 1.0 MySQL Enterprise Oracle Certifications MySQL Windows Installer MySQL Enterprise Security MySQL Enterprise Scalability

MySQL Cluster 7.2 MySQL Cluster Manager 1.4

MySQL Utilities 1.2
MySQL Migration Wizard MySQL Enterprise Backup 3.8 MySQL Enterprise Audit MySQL Database 5.6

MySQL Workbench 5.2
MySQL Database 5.5 MySQL Enterprise Backup 3.5 MySQL Enterprise Monitor 2.3

All GA!
MySQL Cluster 7.3 DMR

All GA!
MySQL Database 5.6 DMR* MySQL Cluster 7.2 DMR MySQL Labs! (“early and often”)
2011
*Development Milestone Release

MySQL Cluster Manager 1.1

Available Now!

All GA!
2010
16 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

2012-13

MySQL 5.6: Best Release Ever!

17 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

MySQL 5.6: Scalability

 Users can fully utilize latest generations of hardware and OS  Scales as data volumes and users grow
18 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

MySQL 5.6 SysBench Benchmarks

MySQL 5.6

MySQL 5.5

Up to 234% Performance Gain
19 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

MySQL 5.6: InnoDB

20 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

MySQL 5.6: InnoDB
NoSQL Key Value Access to InnoDB
Same app can leverage:  Key-value access to InnoDB via familiar Memcached API  SQL for rich queries, JOINs, FKs, etc.  Fully transactional  Up to 9x performance boost for updates  Great for fast data ingestion in Big Data pipeline
21 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

MySQL 5.6: Optimizer

22 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

MySQL 5.6: Best Replication Features Ever

23 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

MySQL 5.6: Performance Schema
New Instrumentation
 Statements/Stages  Table and Index I/O  Table locks  Users/Hosts/Accounts  Network I/O

New Features
 Show contents of Host cache  New Summary tables

 Easier configuration
- Start up defaults in my.cnf - Auto tune

[mysqld] performance_schema=on

 Reduced overhead
 On by default

Provides user/session level stats on resource usage for Cloud-based consumption/reporting/charge back
24 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

TRENDS & PRODUCT DIRECTIONS
25 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Mobile Internet Booming
Strong demand for web & mobile apps/services accessible 24/7 from mobile devices

Organizations

creating, deploying and utilizing Web apps faster and in greater numbers than ever before

26 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

UBIQUITOUS IN THE CLOUD

27 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

MySQL 5.7.1
Available Now! dev.mysql.com

1st DMR

 Support for stacked diagnostic areas according to the SQL

standard  Replication improvements:
Non-blocking „SHOW SLAVE STATUS‟ – useful for monitoring tools  Idempotent mode of operation for MySQL Server, where the server will ignore errors while applying row-based events in a binlog file  Added –rewrite-db option to mysqlbinlog so an RBR log can be replayed to a different database name

29 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

MySQL 5.7.1
Available Now! dev.mysql.com

1st DMR

• Online RENAME INDEX

• Online enlarge VARCHAR size
• Improved InnoDB temporary table DDL performance to

get it on par with or even better than MyISAM • Introduced InnoDB table space for temporary (noncompressed) tables • Fixed long-standing bug#6295 – “Triggers are not processed for not null columns”
30 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

MySQL Enterprise Edition
Highest Levels of MySQL Scalability, Security and Uptime
Oracle Premier Lifetime Support MySQL Enterprise Security MySQL Enterprise Audit MySQL Enterprise Scalability Oracle Product Certifications/Integrations MySQL Enterprise Monitor/Query Analyzer MySQL Enterprise Backup MySQL Workbench

MySQL Enterprise High Availability
31 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Driving new Database Requirements

EXTREME WRITE SCALABILITY

REAL TIME USER EXPERIENCE

ROCK SOLID RELIABILITY
32 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

RAPID SERVICE INNOVATION

No Trade-Offs

Transactional Integrity
EXTREME WRITE SCALABILITY

Complex Queries

REAL TIME USER EXPERIENCE

Standards & Skillsets
ROCK SOLID RELIABILITY
33 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

ELIMNATE BARRIERS TO ENTRY

MySQL Cluster: Overview
HIGH SCALE, READS + WRITES
• Meet transaction demands of new web, mobile, cloud applications, with ACID • Scale-out on commodity hardware

99.999% AVAILABILITY

• Delivering continuous service availability • Self-healing, on-line maintenance, geographically distributed

REAL-TIME

• Low latency for a fast, predictable, high-quality user experience • Speed of an in-memory database + scalability of disk

SQL + NoSQL

• Flexibility in how developers access their data
• Key/Value + Complex, Relational Queries

LOW TCO

• Open Source + Affordable Commercial Editions • Commodity hardware + Support, Management Tools

34 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

MySQL Cluster Architecture
On-Line Scaling

Clients

Application Layer

Management

Management

MySQL Cluster Data Nodes

Data Layer

35 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

 Foreign Key Support  MySQL 5.6  Connection Thread Scalability  Auto-Installer  NoSQL JavaScript for node.js
36 36 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Example : Application HLR
Requirements :
 Database size: up to 70M subscribers, size

constant
 Throughput: up to 50,000 transactions/second

(select/update by unique key)
 HA required: 99.999s, mission critical database

 Very low latency
 Language: C/C++

37 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Example : Application HLR
Considerations :
 In-memory database for low latency

 Internal synchronous replication and geographic

asynchronous replication for High Availability
 Skip the SQL layer for maximum native

performance
 MySQL Cluster is the right product and can meet

all the requirements

38 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

MySQL Cluster (NDB Storage Engine)

39 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Architecture Proposal
 2 clusters, both active  2 replication channels  Conflict detection and

resolution
 All the subscribers stored in

each cluster

40 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Example : Considerations on proposed architecture
All the subscribers are stored in 1 cluster
 Inefficient (high network latency)  Management complexity

Alternative Architecture
 Partition the subscribers across multiple clusters,

distributed by country/region to optimize access
 Each sub-cluster is replicated for High Availability

41 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Example : Application SMS Gateway
Requirements :
 Database size: – small database for SMS delivery – large & growing database (hundreds of GB) for logging  Throughput:

– up to 1,000 transactions/second

(select/insert/update/delete)
– Big, complex queries for analysis

 HA required: 99.999s, mission critical database
 low latency  Language: Java
42 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Example : Application SMS Gateway
Considerations :
 In-memory database for low latency  Internal synchronous replication and geographic

asynchronous replication for HA
 Split data according to use – Hot & Cold

– Hot data (sms delivery)

– Cold data ( logging)
 MySQL Cluster is the right solution for hot data  MySQL Server with InnoDB is the right solution for cold data

43 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Architecture for Hot Data

44 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Architecture for Hot and Cold Data

45 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Concluding Thoughts
 Oracle Invests in MySQL like Never Before
 Oracle Drives MySQL Innovation

 Oracle Makes MySQL Better for Next Generation Web,

Cloud and Big Data Applications

Get MySQL 5.6! http://www.mysql.com/downloads/
46 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

San Francisco, September 21-23
Additional Day of Tutorials
Oracle.com/mysqlconnect

Graphic Section Divider

47 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

48 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.