+ All Categories
Home > Documents > MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise...

MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise...

Date post: 19-Apr-2020
Category:
Upload: others
View: 47 times
Download: 0 times
Share this document with a friend
53
1 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Oracle Corporation MySQL Engineering Vice President Tomas Ulin, April, 3 rd , 2012 MySQL Technical Overview
Transcript
Page 1: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

Oracle Corporation MySQL Engineering

Vice President Tomas Ulin,

April, 3rd, 2012

MySQL Technical Overview

Page 2: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

Safe Harbor Statement

The following 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.

Page 3: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

Agenda

• Oracle’s Strategy and Investment in MySQL

• What’s New in MySQL 5.6

• MySQL Cluster 7.2

• MySQL Enterprise Edition

• Q&A

Page 4: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

4 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

UNMATCHED INVESTMENT

HUNDREDS OF EXPERTS

LARGEST MySQL ENGINEERING & SUPPORT ORGANIZATION

LINUX

WINDOWS

NoSQL

InnoDB

REPLICATION

MySQL CLUSTER

MySQL ENTERPRISE EDITION

PERFORMANCE IMPROVEMENTS

WORLD-CLASS SUPPORT WEB

CLOUD

EMBEDDED

STRATEGIC

Page 5: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

More Product Releases Than Ever Before

CY2010 CY2011

• MySQL Workbench 5.2

• MySQL Database 5.5

• MySQL Enterprise Backup 3.5

• MySQL Enterprise Monitor 2.3

• MySQL Cluster Manager 1.1

All GA!

A Better MySQL

Q1 CY2012

• MySQL Enterprise Monitor 2.2

• MySQL Cluster 7.1

• MySQL Cluster Manager 1.0

• MySQL Enterprise Backup 3.7

• Oracle VM Template for MySQL

Enterprise Edition

• MySQL Enterprise Oracle

Certifications

• MySQL Windows Installer

• New MySQL Enterprise

Commercial Extensions

*Development Milestone Release

• MySQL Database 5.6 DMR*

• MySQL Cluster 7.2 DMR

and MySQL Labs!

(“early and often”)

Driving MySQL

Innovation

All GA!

• MySQL Cluster 7.2: GA!

Page 6: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

• Development Milestone Releases (“DMR”)

• New DMR every 3-6 months

• Accumulating features for next GA (5.6)

• New features integrated on stable trunk

• Features signed off by QA and tested together

• Close to Release Candidate quality

• Next GA cut from one upcoming DMR

• MySQL Labs “Early Access” features: Previews, not on trunk

MySQL “Early Access” Release Model

Page 7: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

7 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Improved Performance • Enhancements in MySQL DB

• Enhancements in InnoDB

• + 360% over 5.1 on Linux

• + 1500% over 5.1 on Windows

Improved Availability • Semi-synchronous Replication

• Replication Heartbeat

Improved Usability • SIGNAL/RESIGNAL

• More Partitioning Options

• New PERFORMANCE_SCHEMA

> 95% of all MySQL apps run on InnoDB

InnoDB is Default Storage Engine

MySQL 5.5, Best Release Ever!

Page 8: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

MySQL 5.5

• Support for 4-byte UTF8, 16, 32

• Improved performance for Japanese characters translations

• Standardized upper/lower case character conversion across

Chinese, Korean, Japanese (consistent with Latin characters)

• Upgraded to Unicode 5.2

• MySQL Enterprise Monitor & Documentation in Japanese

• More general globalization improvements

APAC Specific Enhancements

Page 9: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

9 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

• MySQL 5.6 builds on MySQL 5.5 by improving:

• Optimizer for better performance, scalability

• Performance Schema for better instrumentation

• InnoDB for better transactional throughput

• Replication for higher availability, data integrity

• “NotOnlySQL” options for more flexibility

• MySQL 5.6.4 DMR – available now

• MySQL 5.6.5 DMR – coming soon!

dev.mysql.com/downloads/mysql/

MySQL 5.6, a Better MySQL.

Page 10: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

10 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

• File sort optimizations with small limit

• 3X better execution time – 40s to 10s

• Index Condition Pushdown

• Better execution time – 15s to 90ms

• Batched Key Access and Multi Range Read

• Better execution time – 2000s to 10s

• Postpone Materialization of views/subqueries in FROM

• 240X better execution time for EXPLAIN - 8m to 2s

• EXPLAIN for INSERT, UPDATE, and DELETE

• Persistent Optimizer Statistics - InnoDB

• Optimizer Traces

MySQL 5.6.4 - Optimizer

Page 11: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

MySQL 5.6.4 – Optimizer File sort optimization with small LIMIT

• Web use case – list first 100 products sorted by name

• Avoid creating intermediate sorted files

• Produce ordered result set using a single table scan

• Example above: 20 million rows, default sort buffer

=> 3X better execution time (drops from 40s to 10s)

CREATE TABLE products(

productid int auto_increment PRIMARY KEY,

productname varchar(200) );

SELECT * FROM products ORDER BY productname LIMIT 100;

Page 12: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

12 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

test per

CREATE TABLE person (

personid INTEGER PRIMARY KEY,

firstname CHAR(20),

lastname CHAR(20),

postalcode INTEGER,

age INTEGER,

address CHAR(50),

KEY k1 (postalcode,age) ) ENGINE=InnoDB;

SELECT lastname, firstname FROM person

WHERE postalcode BETWEEN 5000 AND 5500 AND age BETWEEN 21 AND 22;

• With ICP Disabled • 15 s (buffer pool 128 Mb) • 1.4 s (buffer pool 1.5 Gb)

• With ICP Enabled Execution time drops to 90 ms for both

MySQL 5.6.4 – Optimizer Index Condition Pushdown (ICP)

Page 13: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

0 8 16 24 32 40 48 56 645

50

500

5000

1225

9.63

2821

No BKA

BKA

Join Buffer Size (MB)

Query

Tim

e (

secs)

MySQL 5.6.4 – Optimizer Batched Key Access (BKA) and Multi Range Read

Improves performance of disk-bound join queries

Execution time

without BKA + MRR

Execution time

with BKA + MRR

DBT3 Q3: “Customer Distribution Query”

Page 14: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

14 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

MySQL 5.6.4 – Optimizer Postpone materialization of views/subqueries in FROM

Late materialization

• Allows fast EXPLAINs for views/subqueries

• Avoid materialization when possible, faster bail out

A key can be generated for derived tables

=> 240X better execution time (drops from ~8 min to ~2 sec)

EXPLAIN SELECT * FROM (SELECT * FROM a_big_table);

SELECT … FROM derived_table AS dt

join table AS t WHERE dt.fld = t.dlf

Page 15: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

• Long standing feature request from customers and users

mysql> EXPLAIN UPDATE t1 SET c1 = 10 WHERE c2 = 1;

+----+-------------+-------+-------+---------------+------+---------+------+------+-------------+

| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |

+----+-------------+-------+-------+---------------+------+---------+------+------+-------------+

| 1 | SIMPLE | t1 | range | c2,c2_2 | c2 | 5 | NULL | 1 | Using where |

+----+-------------+-------+-------+---------------+------+---------+------+------+-------------+

1 row in set (0.00 sec)

MySQL 5.6.4 – Optimizer Add EXPLAIN for INSERT/UPDATE/DELETE

CREATE TABLE t1(c1 INT, c2 INT, KEY(c2), KEY(c2, c1));

EXPLAIN UPDATE t1 SET c1 = 10 WHERE c2 = 1;

Page 16: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

16 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

MySQL 5.6.4 – Optimizer Traces

SET SESSION.OPTIMIZER_TRACE=‘enabled=on’;

SELECT (SELECT 1 FROM t6 WHERE d = c)

AS RESULT FROM t5;

select * from information_schema.OPTIMIZER_TRACE;

"records_estimation": [

{

"database": "test",

"table": "t6",

"range_analysis": {

"table_scan": {

"records": 2,

"cost": 4.5034

},

"potential_range_indices": [

{

"index": "d",

"usable": true,

"key_parts": [

"d"

]

}

],

"best_covering_index_scan": {

"index": "d",

"cost": 1.4233,

"chosen": true

},

• EXPLAIN shows the generated plan

• TRACE shows how the plan was generated, decision points etc.

• Developers, support, advanced customers

• First step in 5.6.3, more tracing to come

Page 17: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

• More Accurate Statistics

• More Stable Statistics

• Run ANALYZE

• mysql.innodb_table_stats and mysql.innodb_index_stats

• Can be manually updated

MySQL 5.6.4 – Optimizer Persistent Optimizer Statistics (InnoDB)

Page 18: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

18 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

• Statements/Stages

• What are my most resource intensive queries? Where do they spend time?

• Table/Index I/O, Table Locks

• Which application tables/indexes cause the most load or contention?

• Network I/O

• What is the network load like? How long do sessions idle?

• Users/Hosts/Accounts

• Which application users, hosts, accounts are consuming the most resources?

• Summaries

• Aggregated statistics grouped by thread, user, host, account or object

MySQL 5.6.4 – Performance Schema Instrumentation Improved Database Profiling/Application Tuning

Page 19: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

19 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

• Better Performance, Scale

• Improved thread scheduling

• Reduced contention during file extension

• Deadlock detection now non-recursive

• Improve LRU flushing

• Increase max redo log size

• Separate tablespaces for undo log

• Fast checksum

MySQL 5.6.4 - InnoDB

Page 20: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

• Better Recovery

• Dump and restore buffer pool

• Better Usability

• Full-text Search

• Variable page sizes – 4k, 8k

• Larger limit of index key prefixes (3072 bytes)

• New INFORMATION_SCHEMA tables

• Metrics table, System tables, Buffer pool info table

MySQL 5.6.4 - InnoDB

Page 21: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

21 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

• Better Data Integrity

• Crash-Safe Slaves, Replication Checksums, Crash-Safe Binlog

• Better Performance, Scale

• Multi-threaded slaves

• Reduced Binlog size for RBR

• Extra Flexibility

• Time-delayed replication

• Simpler Troubleshooting

• Row-based repl. logging of original query

• Enhanced Monitoring/Management

MySQL 5.6.4 - Replication

MySQL Masters

Slave 1 Slave 2 Slave 3 Slave 4 Slave 5

Slave 6 Slave 7 Slave 8 Slave 9 Slave 10

Page 22: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

• TIME/TIMESTAMP/DATETIME – fractional second precision

• Ipv6 improvements

• Support Unicode for Windows command client

• Import/export tables to/from partitioned tables

• Explicit partition selection

• GIS/MyISAM: Precise spatial operations

• And more...

5.6.4 DMR – Available now!

MySQL 5.6.4 - General Improvements

dev.mysql.com/downloads/mysql/

Page 23: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

• Global Transaction Ids (WL#3584)

• Replication Failover Utility (WL#6143)

• Better Optimizer

• Subquery optimizations (WL#5729)

• Filesort optimizations (WL#6160)

• Statistics-based Range optimization for many ranges (WL#5957)

• More efficient ORDER BY (WL#5558)

• Structured EXPLAIN (WL#855)

• And more...

MySQL 5.6.5: Coming Soon!

Page 24: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

24 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

• Foundation for reliable, automatic failover & recovery

– Unique identifier for each replication event written to the Binlog

• Simple to track & compare replication across the cluster

• Automatically identify the most up-to-date slave for failover

• Deploy complex replication topologies

• Eliminates Dev/Ops overhead Master

GTID=123456

GTID=123456

GTID=123456 GTID=123456

MySQL 5.6.5 - Global Transaction Ids

Page 25: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

25 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Master

Slaves

Failover

Utility Monitoring

• Leverages GTIDs to provide

Automatic failover & recovery

• Manual switchover for maintenance

• Delivers HA within the base MySQL

distribution

• Eliminates cost & complexity of

integrating 3rd party components to

achieve HA

MySQL 5.6.5 – Replication Failover Utility

Page 26: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

• Default is to promote most up-to-date

slave, based on GTID

• Slave promotion policies are fully

configurable

• Monitors slave lag

Master

Slaves

Failover

Utility

Auto-Failover &

Slave Promotion

Fail-Over MySQL 5.6.5 – Replication Failover Utility

Page 27: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

• Replication

• Binlog Group Commit

• Binlog API

• InnoDB

• “NotOnlySQL” options for accessing InnoDB data

• Online operations (INDEX add, rebuild) – coming soon!

• SSD/Flash Optimizations – coming soon!

• And More...

MySQL Database - Under Development Early Access Features

labs.mysql.com/

Page 28: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

28 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

• Fast, simple access to InnoDB

• Accessed via Memcached API

• Use existing Memcached clients

• Bypasses SQL transformations

• NotOnlySQL access

• For key-value operations

• SQL for rich queries, JOINs, FKs, etc.

• Implementation

• Memcached daemon plug-in to mysqld

• Memcached protocol mapped to the

native InnoDB API

• Shared process space for ultra-low

latency

InnoDB Storage Engine

MySQL Server Memcached plugin

Application SQL

(MySQL Client)

NoSQL (Memcached

Protocol) mysqld

MySQL Database, Key-value access for InnoDB NotOnlySQL: Memcached API

labs.mysql.com/

Page 29: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

MySQL Cluster

Page 30: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

30 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

MySQL Cluster • Read AND Write Scalability

• 99.999% Availability

• Very Low Latency

• SQL and NoSQL Access Flexibility & Schema Agility

Web

• High volume OLTP • eCommerce • User Profile Management • Session Management & Caching • Content Management • On-Line Gaming

Communications

• Subscriber Databases (HLR / HSS) • Service Delivery Platforms • VAS: VoIP, IPTV & VoD • Mobile Content Delivery • Mobile Payments • LTE Access

Page 31: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

31 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

MySQL Cluster 7.2: GA February 15th 2012

• 70x Higher Complex Query Performance: Adaptive Query Localization

• New Native NoSQL memcached API

• MySQL 5.5 Server Integration

• Oracle VM Support

Enabling Next Generation Web Services

• Multi-Site Clustering

• Simplified Active / Active Replication

Enhancing Cross Data Center Scaling

• MySQL Cluster Manager 1.1.4

• Consolidated Privileges

Simplifying Provisioning & Administration

Page 32: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

32 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Adaptive Query Localization Scaling Distributed Joins

• Perform Complex Queries across Shards

• JOINs pushed down to data nodes

• Executed in parallel

• Returns single result set to MySQL

• Opens Up New Use-Cases

• Real-time analytics

• Recommendations engines

• Analyze click-streams

mysqld

Data Nodes

mysqld

A

Q

L

Data Nodes

70x

More

Performance

DON’T COMPROMISE FUNCTIONALITY TO

SCALE-OUT !!

Page 33: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

33 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

The Best of Both Worlds SQL & NoSQL Combined

• SQL: Complex, relational queries

• HTTP / memcached: Key-Value web services

• Java: Enterprise Apps

• NDB API: Real-time services

Mix

&

Match

Data Nodes

NDB API

Clients

Native memcached HTTP/REST

JDBC / ODBC

PHP / PERL

Python / Ruby

Page 34: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

• 8 x Commodity Intel Servers

– 2 x 6-core processors 2.93GHz

– x5670 processors (24 threads per

total)

– 48GB RAM

– Linux

• Infiniband networking

• flexAsynch benchmark

– C++ NoSQL API (NDB API)

0

200

400

600

800

1,000

1,200

2 4 8

Millio

ns

Number of Data Nodes

SELECT Queries per Minute

0

20

40

60

80

100

120

4 8

Millio

ns

Number of Data Nodes

UPDATE Queries per Minute

Page 35: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

MySQL & MySQL Cluster • MySQL Storage Engine Strategy

• Select on a per-table, providing broadest

application functionality

• InnoDB: Foreign Keys, XA Transactions, Large

Rows

• MySQL Cluster: HA, High Write Rates, Real-Time

• Choose the right tool for the job - Example: On-

Line Retail Service

• User profiles & session management

• Content management

• eCommerce

• Analytics

• Reduces Complexity, Simplifies DevOps

Page 36: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

36 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

MySQL Enterprise Edition

Page 37: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

Oracle Premier Support

MySQL Enterprise Oracle Certifications/Integrations

MySQL Enterprise High Availability

MySQL Enterprise Security

MySQL Enterprise Scalability

MySQL Enterprise Backup

MySQL Enterprise Monitor/Query Analyzer

MySQL Workbench

MySQL Enterprise Edition

Highest levels of MySQL Scalability, Security & Uptime

Page 38: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

A Virtual MySQL Tuning Assistant!

MySQL Enterprise Monitor

• Global view of MySQL environment

• Automated, rules-based monitoring and alerts (SMTP, SNMP enabled)

• Query capture, monitoring, analysis and tuning, correlated with Monitor graphs

• Visual monitoring of “hot” applications and servers

• Real-time Replication Monitor with auto-discovery of master-slave topologies

• Integrated with MySQL Support

Page 39: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

MySQL Enterprise Backup

• Online Backup for InnoDB

• Full, Incremental, Partial Backups (scriptable interface)

• Compression

• Point in Time, Full, Partial Recovery options

• Metadata on status, progress, history

• Unlimited Database Size

• Cross-Platform

• Windows, Linux, Unix

• Certified with Oracle Secure Backup

MEB Backup Files

MySQL Database Files

mysqlbackup

Ensures quick, online backup and recovery of your MySQL apps.

Page 40: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

• MySQL default thread-handling – excellent performance, can limit scalability as connections grow

• MySQL Thread Pool improves sustained performance/scale as user connections grow

• Thread Pool API

MySQL Enterprise Scalability Thread Pool

Page 41: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

Default Thread Handling

Internal Clients

Default

Thread Handling

Connections

/statements

assigned

to Threads

for life

• Connections assigned to 1 thread for life, same thread used for all statements

• No prioritization of threads, statement executions

• Many concurrent connections = many concurrent execution threads to consume

server memory, limit scalability

Connection Execution Threads

External Clients

Page 42: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

42 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

With Thread Pool Enabled

Internal Clients

Connection Execution Threads

External Clients

Thread Pool

Thread Group 1

Threads 1 - 4096

Thread Group 2

Threads 4097 - 8193

Thread Group N

Threads 8194 - N

• Configurable number of thread groups (default = 16), 4096 threads

• Each connection assigned to thread group via round robin

• Threads are prioritized, statements queued to limit concurrent executions, load on

server, improve scalability as connections grow

Thread Group 1

Thread Group 2

Thread Group N

Page 43: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

MySQL Enterprise Edition

With Thread Pool

MySQL Community Edition

Without Thread Pool

MySQL Enterprise Edition

20x Better Scalability with Thread Pool

0

1,000

2,000

3,000

4,000

5,000

6,000

7,000

8,000

8 16 32 64 128 256 512 1,024 1,536 2,048 2,560 3,072 3,584 4,096

Tra

nsacti

on

s P

er

Seco

nd

Simultaneous Database Connections

MySQL 5.5 Sysbench OLTP Read/Write

MySQL 5.5.16

Oracle Linux 6.1, Unbreakable Kernel 2.6.32

2 sockets, 24 cores, 2 X 12-core

Intel(R) Xeon(R) X5670 2.93GHz CPUs

72GB DDR3 RAM

2 X LSI SCSI Disk (MR9261-8i) (597GB)

Page 44: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

• PAM (Pluggable Authentication Modules)

• Access external authentication methods

• Standard interface (Unix, LDAP, Kerberos, others)

• proxied and non-proxied users

• Windows

• Access native Windows services (WAD)

• Authenticate users already logged into Windows

• Pluggable Authentication API

MySQL Enterprise Security MySQL External Authentication

Integrates MySQL apps with existing security infrastructures/SOPs

Page 45: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

Oracle VM Template for MySQL

• Oracle Linux with the Unbreakable Enterprise Kernel

• Oracle VM & Oracle VM Manager

• Oracle Cluster File System 2 (OCFS2)

• MySQL Database (Enterprise Edition)

Pre-Installed & Pre-Configured

Full Integration & QA Testing

Single Point of Support*

Windows Server Failover Clustering

• Failures of MySQL or underlying server

detected; MySQL restarted on standby node

• Proactive failover for maintenance operations

Business Critical Applications using native

Windows Clustering services

Expanded HA solutions range on Windows

MySQL Enterprise High Availability

•Technical support for Oracle Linux and Oracle Virtual Machine requires

Unbreakable Linux Network subscription.

Page 46: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

46 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

MySQL Workbench SE Database Design

• Visual Design, modeling

• Forward/Reverse Engineer

• Schema validation, Schema doc

SQL Development

• SQL Editor - Color Syntax Highlighting

• Objects - Import/Export, Browse/Edit

• Connections - Wizard, SSH Tunnel

Database Administration

• Status, Configuration, Start/Stop

• Users, Security, Sessions

• Import/Export Dump Files

Scripting & Plug-in Support

UI Designed to match VS 2010

Saves you time developing and managing your MySQL apps.

Page 47: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

• Oracle Fusion MiddleWare

• WebLogic Server

• Database Adapter for Oracle SOA

Suite

• Oracle Business Process Management

• Oracle Virtual Directory

• Oracle Data Integrator

• Oracle Enterprise Performance

Management

• Oracle Identity Analytics

• Open SSO STS, Open SSO Fedlet

• Oracle Linux

• Oracle VM

• Oracle VM Template for MySQL

Enterprise Edition

• Oracle GoldenGate

• Oracle Secure Backup

• Oracle Database Firewall

• MyOracle Online Support

MySQL Enterprise Oracle Certifications Completed

Page 48: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

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

• Oracle Fusion MiddleWare

• WebCenter Suite

• Enterprise Content Management

• Oracle Business Intelligence Suite

• Oracle Clusterware

• Oracle Audit Vault

• Oracle Enterprise Manager

• And More…

MySQL Enterprise Oracle Certifications In Progress

Page 49: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

49 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

ORACLE DRIVES

MySQL INNOVATION

BEST OF BREED SOLUTIONS FOR NEXT

GENERATION WEB APPLICATIONS

Page 50: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

50 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Than you!

“Thank you MySQL users in

Japan for your feedback and

contributions to MySQL!

Page 51: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

51 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Q&A

Page 52: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

52 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Page 53: MySQL Technical Overview · •Oracle VM Template for MySQL Enterprise Edition •MySQL Enterprise Oracle Certifications • MySQL Windows Installer •New MySQL Enterprise *Development

53 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.


Recommended