Top Banner
© 2011 Oracle Corporation – Proprietary and Confidential 1 MySQL Update Aug MySQL Update Aug 2012 2012
38

MySQL 5.6 Updates

May 08, 2015

Download

Technology

Dave Stokes

August 2012 -- latest MySQL update for 5.6
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: MySQL 5.6 Updates

© 2011 Oracle Corporation – Proprietary and Confidential 1

MySQL Update Aug 2012MySQL Update Aug 2012

Page 2: MySQL 5.6 Updates

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

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.

Safe Harbor Statement

Page 3: MySQL 5.6 Updates

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

• Best of Breed at Every Level

• Built & Tested together

• Managed together

• Serviced together

• Based on open standards

• Lower cost

• Lower risk

• More reliable

MySQL Completes The Stack

Page 4: MySQL 5.6 Updates

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 5.6 Updates

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

MySQL Database

Page 6: MySQL 5.6 Updates

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

Page 7: MySQL 5.6 Updates

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: A Better MySQL

Page 8: MySQL 5.6 Updates

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

• Better Performance, Scale• Improved thread concurrency, LRU flushing• Reduced contention during file extension• Increase max redo log size• Separate tablespaces for undo log• Fast checksum

• Better Recovery• Dump and restore buffer pool

• Better Usability• Full-text Search• Variable page sizes – 4k, 8k

MySQL 5.6: InnoDBTransactional by Default

> 95% of MySQL apps run InnoDB

Page 9: MySQL 5.6 Updates

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

MySQL 5.6: ReplicationLargest EVER set of Enhancements

Page 10: MySQL 5.6 Updates

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

5x Higher Replication Performance

• SysBench, running across 10 x schemas

• Oracle Linux 6.1, Oracle Sun Fire x4150 m2 Server

Page 11: MySQL 5.6 Updates

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

Global Transaction Identifiers

• Simple to track & compare replication across the cluster– Unique identifier for each transaction written to the

Binlog

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

• Deploy n-tier replication hierarchies

Master

GTID=123456

GTID=123456

GTID=123456 GTID=123456

Page 12: MySQL 5.6 Updates

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

• Enabling self-healing replication topologies

• Automated failover & recovery– mysqlfailover Utility

• Switchover & administration– mysqlrpladmin Utility

• Delivers HA within the core MySQL distribution– Eliminates the need for 3rd party

solutions – Allows extensibility to support variety

of HA mechanisms

HA UtilitiesMonitoring

FailedMaster

Slaves

PromotedMaster

Replication HA Utilities

Page 13: MySQL 5.6 Updates

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

• Check: Verifying pre-requisites for Replication

• Repl: Initiating Replication to the new slave

• Show: Displaying Replication topology

• HA: Detecting and failing-over from master to slave. Monitoring status.

• Implemented as Python scripts– Available from LaunchPad or as a plug-in for MySQL Workbench– Extensible to include custom scripting

Check Repl Show HA

Growing Suite of MySQL Utilities Workflow for Replication

Page 14: MySQL 5.6 Updates

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

• Subquery Optimizations• File sort optimizations with small limit

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

• Index Condition Pushdown•160X Better execution time – 15s to 90ms

• Postpone Materialization of views/subqueries in FROM•240X better execution time for EXPLAIN – 8m to 2s

• Batched Key Access and Multi Range Read•280X Better execution time – 2800s to 10s

MySQL 5.6: Optimizer

Page 15: MySQL 5.6 Updates

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

Better Diagnostics and Debugging • EXPLAIN• INSERT, UPDATE, and DELETE• JSON format for better readability

• Persistent Optimizer Statistics - InnoDB• Optimizer Traces

MySQL 5.6: Optimizer

Page 16: MySQL 5.6 Updates

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 BKABKA

Join Buffer Size (MB)

Que

ry T

ime

(sec

s)

MySQL 5.6: OptimizerBatched Key Access (BKA) & Multi Range Read

Improve performance of disk-bound join queries

Execution time without MRR + BKA

Execution time with MRR + BKA

DBT3 Q13: “Customer Distribution Query”

Page 17: MySQL 5.6 Updates

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

• Statements/Stages• 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?

• Users/Hosts/Accounts• Which application users/hosts/apps consume the most resources?

• Network I/O• Network loaded? How long do sessions idle?

• Summaries• Aggregate stats grouped by thread, user, host, account or object

MySQL 5.6: Performance Schema InstrumentationImproved Database Profiling/Application Tuning – Less Than 5% Overhead

Page 18: MySQL 5.6 Updates

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

Evaluate MySQL 5.6 TODAY

dev.mysql.com/downloads/mysqlSelect Development Release tab

Page 19: MySQL 5.6 Updates

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

Page 20: MySQL 5.6 Updates

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

• “NotOnlySQL” Key-value access to InnoDB data•Online Operations (INDEX add, FK Drop, Column rename)....more to come•Removal of LOCK_open as a bottleneck•Removal of CPU cache sharings as a bottleneck•Improved InnoDB flushing

InnoDB Early Access Features

Try it Today!labs.mysql.com/

Page 21: MySQL 5.6 Updates

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

InnoDB Performance Improvements

• Up to 2.8x higher performance• Removal of LOCK_open• Removal of CPU cache

sharings• InnoDB flushing

• Sysbench R/W• 8 x Socket / 6-core Intel

Xeon 7540, 2GHz• 512GB RAM • SSD

Page 22: MySQL 5.6 Updates

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

• Fast, simple access to InnoDB

• via Memcached API

• Use existing Memcached clients

• Bypasses SQL parsing

• NotOnlySQL access

• For key-value operations

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

• Implementation

• Memcached plug-in to mysqld

• Memcached mapped to native InnoDB API

• Shared process for ultra-low latency

InnoDB Storage Engine

MySQL Server Memcached plugin

ApplicationSQL

(MySQL Client)NoSQL (Memcached Protocol)

mysqld

Key-value Access to InnoDB Data

Try it Today!labs.mysql.com/

Page 23: MySQL 5.6 Updates

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

• Increases performance

• Commits multiple transactions as a group to Binlog on disk

Session

Binary Log

Master Database

T1 T2

T3 T4

Groupcommit

New!

Try it Today!labs.mysql.com/

Binary Log Group Commit Early Access Features

Page 24: MySQL 5.6 Updates

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

Binary Log Group Commit Performance

• Up to 2.3x with binlog configured versus 5.6.5 with no binlog

• Up to 3.5x faster with binlog configured

• Sysbench R/W• 8 x Socket / 6-core Intel

Xeon 7540, 2GHz• 512GB RAM • SSD

Sync_binlog = 1

New!

MySQL 5.6 June – sync_binlog = 1

MySQL 5.6. – No Binlog

MySQL 5.6.5 – sync_binlog = 1

Page 25: MySQL 5.6 Updates

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

Binary Log Group Commit Performance Impact

• 11% average with sync_binlog = 0

• 0%10% with sync_binlog = 1 above 48 threads• 20% at lower thread counts

• Sysbench R/W• 8 x Socket / 6-core Intel Xeon

7540, 2GHz• 512GB RAM • SSD

New!

Page 26: MySQL 5.6 Updates

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

• Optimizer: Up to 280X Better Execution Time• Replication: Up to 5X Higher Performance, Self-Healing• InnoDB: Better Performance, Scalability, NoSQL,

Recovery and Usability• Plus, Performance Schema, MySQL Utilities

MySQL 5.6: A Better MySQL

Best Open Source Product 2011 Award by CRN“MySQL 5.6 … includes significant advances in text-based search inside a database, as well as performance enhancements... MySQL 5.6 is firmly in place as the strongest open-source database.”

Page 27: MySQL 5.6 Updates

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

MySQL Cluster

Page 28: MySQL 5.6 Updates

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

MySQL Cluster 7.2Fastest Growing Release EVER

Page 29: MySQL 5.6 Updates

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

• 1 Billion+ Reads per Minute, 8 node Intel Xeon cluster

• NoSQL C++ API, flexaSynch benchmark

• Multi-Threaded Data Node Extensions

Comparing MySQL Cluster Performance8x Higher Performance per Node

Page 30: MySQL 5.6 Updates

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

• 30 x Intel E5-2600 Intel Servers

• NoSQL C++ API, flexaSynch benchmark

• ACID Transactions, with Synchronous Replication

Page 31: MySQL 5.6 Updates

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

• Foreign Keys - Design Goal: compatibility to InnoDB- Natively implemented in the data layer- Accessible from SQL and NoSQL access layer- Online add/drop foreign keys

MySQL Cluster 7.3 Early Access Features

Try it Today -- labs.mysql.com

New!

Blending SQL & NoSQL

Page 32: MySQL 5.6 Updates

MySQL ConnectSeptember 29-30, San Francisco

• Keynotes, Breakout Sessions, Hands-On Labs and BOFs

• Boost Your MySQL Skills in Two Days

• Share & Network with the MySQL Community

• Meet the Engineers Behind the Latest Code

• Talk to the Experts in the MySQL Support Team

• Learn About the New Features and Roadmaps

oracle.com/mysqlconnect

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

Page 33: MySQL 5.6 Updates

MySQL Connect - KeynotesSaturday, 9.00 am PT

oracle.com/mysqlconnect

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

The State of The DolphinJoin Oracle Executive Vice President Edward Screven and MySQL Vice President of Engineering Tomas Ulin to hear about Oracle’s MySQL strategy, and the key latest developments including product releases, roadmap and community.

Additional Keynotes to be announced…

Page 34: MySQL 5.6 Updates

MySQL ConnectBreakout Sessions

• Over 65 technical breakout sessions• Oracle MySQL Engineers on MySQL 5.6 new features,

InnoDB, Replication, Backup, Optmizer, MySQL Cluster, Security, Performance & scalability…and more!

• Case Studies from users and customers• Sessions from partners and community members

oracle.com/mysqlconnect

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

Page 35: MySQL 5.6 Updates

MySQL ConnectBirds-of-a-feather, Hands-On Labs

• BOFs on Backup, MySQL 5.6 replication, Optimizer, Community...and more

• Hands-On Labs running throughout the two days on Performance schema, MySQL Utilities, Getting started with MySQL, Security, MySQL Cluster…and more

oracle.com/mysqlconnect

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

Page 36: MySQL 5.6 Updates

MySQL Connect…And

• Exhibit hall• Demo pods• Saturday evening reception• Taylor Street Open House Sunday Reception• Sponsorship and Exhibit opportunities

Register Now! Early Bird Rate until July 27: Save $500

oracle.com/mysqlconnect

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

Page 37: MySQL 5.6 Updates

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

ORACLE DRIVES MySQL INNOVATION

BEST OF BREED SOLUTIONS FOR NEXT GENERATION WEB APPLICATIONS

Page 38: MySQL 5.6 Updates

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

David.Stokes @ Oracle.com

slideshare.net/davestokes/presentations