MySQL 5.6 Updates
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

MySQL 5.6 Updates

on

  • 1,145 views

August 2012 -- latest MySQL update for 5.6

August 2012 -- latest MySQL update for 5.6

Statistics

Views

Total Views
1,145
Views on SlideShare
1,144
Embed Views
1

Actions

Likes
2
Downloads
45
Comments
0

1 Embed 1

http://www.slashdocs.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • The key point I’d like to get across today is that Oracle Drives MySQL Innovation We’re delivering more and better products than ever before in MySQL’s history We’re improving the MySQL experience: For MySQL users, for example delivering many new features available to all in the DMR of MySQL 5.6 and MySQL Cluster 7.2, as well as for early testing via labs.mysql.com For customers using MySQL Enterprise Edition, providing them with new added value features and tools For folks using Linux, Windows and other platforms For Oracle customers using or considering to use MySQL in their environment And we can do all this because: Largest MySQL Engineering & Support Organization Hundreds of Experts, including Core MySQL Engineers plus Oracle Performance and Database Gurus Improved Engineering Processes Oracle’s Human and Capital Investment in MySQL is unmatched
  • Let’s look at each of these areas in a bit more detail.
  • The key point I’d like to get across today is that Oracle Drives MySQL Innovation We’re delivering more and better products than ever before in MySQL’s history We’re improving the MySQL experience: For MySQL users, for example delivering many new features available to all in the DMR of MySQL 5.6 and MySQL Cluster 7.2, as well as for early testing via labs.mysql.com For customers using MySQL Enterprise Edition, providing them with new added value features and tools For folks using Linux, Windows and other platforms For Oracle customers using or considering to use MySQL in their environment And we can do all this because: Largest MySQL Engineering & Support Organization Hundreds of Experts, including Core MySQL Engineers plus Oracle Performance and Database Gurus Improved Engineering Processes Oracle’s Human and Capital Investment in MySQL is unmatched
  • The key point I’d like to get across today is that Oracle Drives MySQL Innovation We’re delivering more and better products than ever before in MySQL’s history We’re improving the MySQL experience: For MySQL users, for example delivering many new features available to all in the DMR of MySQL 5.6 and MySQL Cluster 7.2, as well as for early testing via labs.mysql.com For customers using MySQL Enterprise Edition, providing them with new added value features and tools For folks using Linux, Windows and other platforms For Oracle customers using or considering to use MySQL in their environment And we can do all this because: Largest MySQL Engineering & Support Organization Hundreds of Experts, including Core MySQL Engineers plus Oracle Performance and Database Gurus Improved Engineering Processes Oracle’s Human and Capital Investment in MySQL is unmatched
  • - Removal of the infamous LOCK_open as a bottleneck, replaced by a configurable number of table caches. - Removal of a number of false CPU cache sharings that in some cases was a significant bottleneck to the MySQL Server - Improved flushing in InnoDB to remove performance dips and get a much more stable performance
  • Let’s look at each of these areas in a bit more detail.
  • - Removal of the infamous LOCK_open as a bottleneck, replaced by a configurable number of table caches. - Removal of a number of false CPU cache sharings that in some cases was a significant bottleneck to the MySQL Server - Improved flushing in InnoDB to remove performance dips and get a much more stable performance
  • Oracle Drives MySQL Innovation Complementary to the Oracle Database and Other Oracle offerings Best of Breed & Best of Both Worlds MySQL Solutions for Web Applications Strong MySQL Momentum MySQL Ubiquitous in the Cloud

MySQL 5.6 Updates Presentation Transcript

  • 1. MySQL Update Aug 2012© 2011 Oracle Corporation – Proprietary and Confidential 1
  • 2. 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.Copyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 3. MySQL Completes The Stack • Best of Breed at Every Level • Built & Tested together • Managed together • Serviced together • Based on open standards • Lower cost • Lower risk • More reliableCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 4. UNMATCHED INVESTMENT InnoDB REPLICATION PERFORMANCE IMPROVEMENTS EMBEDDEDCLOUD WINDOWS HUNDREDS OF EXPERTS STRATEGICWORLD-CLASS SUPPORT MySQL CLUSTER WEB NoSQL LINUX MySQL ENTERPRISE EDITIONLARGEST MySQL ENGINEERING & SUPPORT ORGANIZATION Copyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 5. MySQL DatabaseCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 6. Copyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 7. MySQL 5.6: A Better MySQL• 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 flexibilityCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 8. MySQL 5.6: InnoDB• Better Performance, Scale Transactional by Default • 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 > 95% of MySQL apps run InnoDB • Variable page sizes – 4k, 8k Copyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 9. MySQL 5.6: Replication Largest EVER set of EnhancementsCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 10. 5x Higher Replication Performance • SysBench, running across 10 x schemas • Oracle Linux 6.1, Oracle Sun Fire x4150 m2 ServerCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 11. 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 Master GTID=123456• Deploy n-tier replication hierarchies GTID=123456 GTID=123456 GTID=123456 Copyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 12. Replication HA Utilities • Enabling self-healing replication topologies • Automated failover & recovery Failed – mysqlfailover Utility Master • Switchover & administration – mysqlrpladmin Utility Promoted Monitoring HA Utilities Master • Delivers HA within the core MySQL distribution – Eliminates the need for 3rd party Slaves solutions – Allows extensibility to support variety of HA mechanismsCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 13. Growing Suite of MySQL Utilities Workflow for Replication Check Repl Show HA• 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 Copyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 14. MySQL 5.6: Optimizer• 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 10sCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 15. MySQL 5.6: OptimizerBetter Diagnostics and Debugging• EXPLAIN • INSERT, UPDATE, and DELETE • JSON format for better readability• Persistent Optimizer Statistics - InnoDB• Optimizer Traces Copyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 16. MySQL 5.6: Optimizer Batched Key Access (BKA) & Multi Range Read Improve performance of disk-bound join queries 5000 Execution time 2821 without MRR + BKA 1225 Query Time (secs) 500 DBT3 Q13: “Customer Distribution No BKA BKA 50 Query” 9.63 Execution time 5 0 8 16 24 32 40 48 56 64 with MRR + BKA Join Buffer Size (MB)Copyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 17. MySQL 5.6: Performance Schema Instrumentation Improved Database Profiling/Application Tuning – Less Than 5% Overhead• 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 objectCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 18. Evaluate MySQL 5.6 TODAY dev.mysql.com/downloads/mysql Select Development Release tabCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 19. Copyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 20. InnoDB Early Access Features • “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 Try it Today! labs.mysql.com/Copyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 21. InnoDB Performance Improvements 12000 • Up to 2.8x higher 10000 performance • Removal of LOCK_openQueriesper Second 8000 • Removal of CPU cache 6000 MySQL 5.6.5 sharings 4000 MySQL 5.6.June • InnoDB flushing 2000 • Sysbench R/W 0 • 8 x Socket / 6-core Intel 24 32 64 96 128 Xeon 7540, 2GHz Threads • 512GB RAM • SSD Copyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 22. Key-value Access to InnoDB Data • Fast, simple access to InnoDB • via Memcached API Application • Use existing Memcached clients SQL NoSQL(MySQL Client) (Memcached • Bypasses SQL parsing Protocol) • NotOnlySQL access mysqld MySQL Server Memcached plugin • For key-value operations • SQL for rich queries, JOINs, FKs, etc. InnoDB Storage Engine • Implementation • Memcached plug-in to mysqld • Memcached mapped to native InnoDB Try it Today! API labs.mysql.com/ • Shared process for ultra-low latency Copyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 23. Binary Log Group Commit New! Early Access Features Binary Log T1 T2 Session T3 T4 • Increases performance Group • Commits multiple commit transactions as a group toMaster Database Binlog on disk Try it Today! labs.mysql.com/ Copyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 24. Binary Log Group Commit New! Performance 10000 • Up to 2.3x with binlog 9000 8000 configured versus 5.6.5 MySQL 5.6 June with no binlogQueriesper Second 7000 – sync_binlog = MySQL 5.6.5 - No 6000 1 5000 Binlog • Up to 3.5x faster with MySQL 5.6. 4000 MySQL 5.6.5 - – No Binlog sync_binlog = 1 binlog configured 3000 2000 MySQL 5.6 June - • Sysbench R/W MySQL 5.6.5 – sync_binlog = 1 1000 sync_binlog = • 8 x Socket / 6-core Intel 1 0 24 32 64 96 128 Xeon 7540, 2GHz Threads • 512GB RAM • SSD Sync_binlog = 1 Copyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 25. Binary Log Group Commit New! 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 • SSDCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 26. MySQL 5.6: A Better MySQL• 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 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.”Copyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 27. MySQL ClusterCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 28. MySQL Cluster 7.2 Fastest Growing Release EVERCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 29. Comparing MySQL Cluster Performance 8x Higher Performance per Node • 1 Billion+ Reads per Minute, 8 node Intel Xeon cluster • NoSQL C++ API, flexaSynch benchmark • Multi-Threaded Data Node ExtensionsCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 30. • 30 x Intel E5-2600 Intel Servers • NoSQL C++ API, flexaSynch benchmark • ACID Transactions, with Synchronous ReplicationCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 31. MySQL Cluster 7.3 New! Early Access Features • 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 Blending SQL & NoSQL Try it Today -- labs.mysql.comCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 32. MySQL Connect September 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.
  • 33. MySQL Connect - Keynotes Saturday, 9.00 am PT The State of The Dolphin Join 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… oracle.com/mysqlconnecCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 34. MySQL Connect Breakout 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/mysqlconnecCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 35. MySQL Connect Birds-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/mysqlconnecCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 36. 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/mysqlconnecCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 37. ORACLE DRIVES MySQL INNOVATION BEST OF BREED SOLUTIONS FOR NEXT GENERATION WEB APPLICATIONSCopyright © 2012 Oracle and/or its affiliates. All rights reserved.
  • 38. David.Stokes @ Oracle.com slideshare.net/davestokes/presentationsCopyright © 2012 Oracle and/or its affiliates. All rights reserved.