MySQL 5.6 Updates

download MySQL 5.6 Updates

of 38

  • date post

    08-May-2015
  • Category

    Technology

  • view

    897
  • download

    3

Embed Size (px)

description

August 2012 -- latest MySQL update for 5.6

Transcript of MySQL 5.6 Updates

  • 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 Oracles 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 INVESTMENTInnoDBREPLICATIONPERFORMANCE IMPROVEMENTS EMBEDDEDCLOUDWINDOWSHUNDREDS OF EXPERTSSTRATEGICWORLD-CLASS SUPPORT MySQL CLUSTER WEBNoSQLLINUX 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 byimproving: 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, ScaleTransactional by DefaultImproved thread concurrency, LRU flushingReduced contention during file extensionIncrease max redo log sizeSeparate tablespaces for undo logFast 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: ReplicationLargest 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 thecluster Unique identifier for each transaction written to the Binlog Automatically identify the most up-to-date slave forfailoverMaster GTID=123456 Deploy n-tier replication hierarchiesGTID=123456GTID=123456 GTID=123456Copyright 2012 Oracle and/or its affiliates. All rights reserved. 12. Replication HA Utilities Enabling self-healing replication topologies Automated failover & recoveryFailed mysqlfailover UtilityMaster Switchover & administration mysqlrpladmin Utility Promoted MonitoringHA Utilities Master Delivers HA within the core MySQL distribution Eliminates the need for 3rd partySlavessolutions Allows extensibility to support varietyof HA mechanismsCopyright 2012 Oracle and/or its affiliates. All rights reserved. 13. Growing Suite of MySQL UtilitiesWorkflow for ReplicationCheckRepl 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 limit4X better execution time 40s to 10s Index Condition Pushdown160X Better execution time 15s to 90ms Postpone Materialization of views/subqueries in FROM240X better execution time for EXPLAIN 8m to 2s Batched Key Access and Multi Range Read280X 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 TracesCopyright 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 time2821 without MRR + BKA1225 Query Time (secs) 500 DBT3 Q13: Customer Distribution No BKA BKA 50Query9.63Execution time5 0 81624 32 40 48 56 64with MRR + BKAJoin Buffer Size (MB)Copyright 2012 Oracle and/or its affiliates. All rights reserved. 17. MySQL 5.6: Performance Schema InstrumentationImproved 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. InnoDBEarly Access Features NotOnlySQL Key-value access to InnoDB dataOnline Operations (INDEX add, FK Drop, Columnrename)....more to comeRemoval of LOCK_open as a bottleneckRemoval of CPU cache sharings as a bottleneckImproved InnoDB flushingTry it Today!labs.mysql.com/Copyright 2012 Oracle and/or its affiliates. All rights reserved. 21. InnoDB Performance Improvements12000 Up to 2.8x higher10000performance Removal of LOCK_openQueriesper Second 8000 Removal of CPU cache 6000 MySQL 5.6.5 sharings 4000MySQL 5.6.June InnoDB flushing 2000 Sysbench R/W0 8 x Socket / 6-core Intel 24 326496 128 Xeon 7540, 2GHz Threads 512GB RAM SSDCopyright 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 clientsSQLNoSQL(MySQL Client) (Memcached Bypasses SQL parsingProtocol) NotOnlySQL access mysqld MySQL ServerMemcached 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 InnoDBTry it Today!APIlabs.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 diskTry it Today!labs.mysql.com/ Copyright 2012 Oracle and/or its affiliates. All rights reserved. 24. Binary Log Group Commit New!Performance10000 Up to 2.3x with binlog90008000 configured versus 5.6.5 MySQL 5.6 June with no binlogQueriesper Second7000 sync_binlog =MySQL 5.6.5 - No6000 15000Binlog Up to 3.5x faster with MySQL 5.6.4000 MySQL 5.6.5 - No Binlog sync_binlog = 1 binlog configured30002000MySQL 5.6 June - Sysbench R/W MySQL 5.6.5 sync_binlog = 11000 sync_binlog = 8 x Socket / 6-core Intel 10 24 32 64 96 128Xeon 7540, 2GHzThreads 512GB RAM SSDSync_binlog = 1Copyright 2012 Oracle and/or its affiliates. All rights reserved. 25. Binary Log Group Commit New!Performance Impact 11% average withsync_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.3New!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 keysBlending SQL &NoSQLTry it Today -- labs.mysql.comCopyright 2012 Oracle and/or its affiliates. All rights reserved. 32. 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 Roadmapsoracle.com/mysqlconnectCopyright 2012 Oracle and/or its affiliates. All rights reserved. 33. MySQL Connect - KeynotesSaturday, 9.00 am PT The Stat