mysql 5.7 -- scale feb 2014

Post on 14-Jan-2015

88 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

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

➔ Dave Stokes➔ MySQL Community Manager

➔ David.Stokes@oracle.com @Stoker

MySQL 5.7 Preview for LA MySQL Users Group

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

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

decision. 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

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

MySQL Manual 5.7

• Performance Improvements• MDL, Transactions & Memory

Instrumentation with Performance Schema

• Cleans up and improves architecture

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

But 5.7 will BREAK some things

• Yes, we KNOW it is painful!• We are trying to be

• As carefule as possible• Provide as much notice as possible• Let you know why we made the change

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

Things to do to help the change

• Change the default to use desired behavior• Issue warnings about feature deprecations• Remove features

We are doing all three

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

Proposal: enable sql mode to ONLY_FULL_GROUP

• Default behavior for other databases• In 5.6 and lower, MySQL was guessing what to use for non-grouped

fields.– New ANY_VALUE() SQL Function to allow 'non-deterministic'

statements so things can work 'old way'

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

Replication

• 5.6 provided more durable replication with group commit • 5.7 proposal – make durable the default

– sync_binlog =1

– Master-info-repository = TABLE

– Relay-log-infor-repository = TABLE

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

Proposal

• Deprecate SHOW ENGINE INNODB MUTEX• Overlaps with Performance Schema

• Deprecate InnoDB Monitor tables

– Developed long before Performance Schema

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

Proposal – make STRICT the default SQL Mode

• Lot of criticism that MySQL is too permissive, truncating out-of-range, zero dates, etc.

• Roll ERROR_FOR_DIVISION_BY_ZERO, NO_ZERO_DATE, and NO_ZERO_IN_DATE into STRICT Mode

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

Proposal

• Deprecate EXPLAIN PARTITIONS• Deprecate EXPLAIN EXTENDED

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

Alter Ignore Table

• Useful for adding PRIMAY/UNIQUE keys on tables with duplicate keys

• Will silently drop rows for you

• Deprecated 5.7.17

• Removed in DMR4

• Was a MySQL-only extension

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

Query Cache

● Defaults to DISABLED in 5.6

● Plans for other options in later releases

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

Deprecate NULL synonym \N

• Anyone using? We DO want feedback!!• For removal in 5.7 or 5.8

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

FEDERATE & MERGE Storage Engines

• We recommend multi-source replication over Federated

• We want your feedback if you are still using Federated!!

• Similar to Partitioning but MyISAM ONLY• Major limitations with Partition Exchange• Anyone using?

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

Slide to check if audience is still awake

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

• 191 Worklogs for 5.6• 191 Bugs fixed in 5.6• 3763 Bugs in total since 5.5 GA• 911 New MTR tests in MySQL 5.6• Tripled QA team – 400 man/years experience

Driving Innovation AND Quality

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

New Yum Repositories--Now with 5.7 DRMs

● Simple and convenient way to install and update MySQL to the latest software packages using Yum

– Server

– Workbench

– Connectors

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

Benchmarks

● Sysbench Point Select

– 500,000 Queries Per Second, ~ 64 concurrent user sessions

– 95% faster than 5.6, ~32 concurrent user sessions

– 172% faster than 5.5

● InnoDB Memached

– 1,150,000 QPS, ~128 concurrent user sessions

– 550% faster than 5.6

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

• Optimized for Web, Cloud-based, Embedded use cases• Simplified, Pluggable architecture

• Maintainability, more extensible• More NoSQL options (HTTP, JSON, JavaScript, etc.)

• Refactoring• Data Dictionary in InnoDB• Optimizer/Parser/Protocol

• InnoDB • Optimized for SSD • GIS

• Easy HA, Replication and Sharding → Fabric

MySQL Database Development Priorities

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

Connections Per Second

● 5.5.23 ~ 19k without P_S and ~18k with

● 5.6.15 ~ 24K and 19.5k

● 5.7.2 ~44k and ~18k

● 5.7.3 ~45k and ~44k

● Thanks to help from Facebook!!

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

Optimizer

● Improved JSON based explain

– VISUAL EXPLAIN

– Better traces

● Improved “IN” performance

● Non sorted fields in sort buffer compacted, reduces disk sorts

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

Performance_schema

● New summary tables

– Easier place to start

– Metadata Lock Instrumentation

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

InnoDB

● Online rename index, online change to varchars

● Innochecksums (in 5.6) for calculated/reported → report

● 5.7

– Selectable algorithm (innodb/crc32/none)

– Force rewrite of checksum (even if invalid)

– Table spaces > 3GB supported

– Specify max page count mismatch before terminating

– Supports multiple table spaced, files per tablespace

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

InnoDB temp tables

● New separate table space for temp tables

● Better create/drop – 11x faster

● 2-4x faster INSERT/DELETE/UPDATE

● Optimized DML operations

● Undo logs in temp table spces

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

Replication

● Higher slave throughput, parallel threads on same schema

● Enhanced semi-sync, wait for N slaves

● Performance_Schema

● Added SSL for mysqlbinlog

● Dynamically change replication filers

– CHANGE REPLICATION FILTER

– No need to start/sop server to make changes

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

Triggers

● Multiple Triggers per table

● Set execution order

● Check column constraints at end of trigger execution

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

Error logging

● Three levels

– Errors Only

– Errors + Warnings

– Errors + Warnings + Notes (default)

● --log-error-verbosity = 1

● SET GLOBAL log_error_verbosity=1;

● --log_timestamps = SYSTEM UTC (default)

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

✗ mysql.com✗ MySQL Products, Editions, Training, Consulting✗ Customer use cases and success stories

✗ dev.mysql.com✗ Downloads, Documentation✗ Forums

✗ PlanetMySQL✗ eDelivery.oracle.com

✗ Download and evaluate all MySQL products

Learn More

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

New MySQL 5.6 TrainingLearn about the world’s most popular open-source database

oracle.com/education/mysql

Learn MySQL From Oracle• Expert-led training to help you

install, configure, and administer MySQL 5.6.

• Extensive hands-on practices guide you through each concept

• Explore real-world problems and discover best practices as you work with the tools and techniques used by professional MySQL database administrators

• Content developed in collaboration with product engineering.

• Available in traditional or virtual classroom as well as self-study formats.

• Custom training solutions to match your organization’s specific business needs

• Backed by Oracle University’s 100% Satisfaction Program

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

MySQL Connect

➔ September, 4-days at same time as OOW

➔ San Francisco Union Square Hotel?➔ Learn from the best

➔ MySQL Engineers➔ Customers

➔ Tutorials on Advanced Subjects➔ Passes for User Groups?

➔ How do we discount for UG???

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

MySQL 5.7

David.Stokes@Oracle.com@stokerslideshare.net/davestokes

top related