SlideShare ist ein Scribd-Unternehmen logo
1 von 38
Downloaden Sie, um offline zu lesen
MySQL 5.6 and Cluster
Lee Stigile – Technical Sales Consulting
Manager -- Americas

1

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Agenda
Goal:
Benefits of Upgrading to MySQL 5.6
Understand MySQL Cluster
 MySQL 5.6 – Top 5 New Features
 Improved Features: Compression and Partitioning
 MySQL Cluster

2

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Oracle Invests
Innovations for the MySQL Community
Oracle Delivers. Past 12 Months:
GA: MySQL 5.6, MySQL Cluster 7.3, MySQL Workbench 6.0, MySQL
Utilities, MySQL Connectors...and more
DMRs: MySQL 5.7

Labs: Multi-source Replication, Fabric

3

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
MySQL Enterprise Edition
Highest Levels of Security, Performance, and Availability
Oracle Premier
Lifetime Support

MySQL Enterprise
Thread Pool
MySQL Enterprise
Authentication
MySQL Enterprise
Audit

4

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

MySQL Enterprise
Monitor/Query Analyzer
MySQL Enterprise
Backup

MySQL
Workbench
Features

 Performance
 Online Schema (DDL) Changes

 Replication

 Pre-load Buffer Pool

 Performance Schema

 Full Text Search (InnoDB)

 Partitioning

 NoSQL and SQL Access

5

 Optimizer Improvements

 Compression

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

6

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
MySQL 5.6: Scalability

 Users can fully utilize latest generations of hardware and OS
 Scales as data volumes and users grow
7

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

January 2010
Oracle Buys Sun
InnoDB joins MySQL

Oracle Buys
Innobase/InnoDB

2005

2008

4 CPU MySQL 5.0

8

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

2009

4 CPU MySQL 5.1
16 CPU InnoDB Plugin
Sun Micro

2010

2010

December
32 CPU MySQL 5.5

2012

Up to 48 CPU
MySQL 5.6
Performance Improvements
 InnoDB and MySQL

Refactored InnoDB
Split kernel mutex
Separate thread for flushing operations
Multi-threaded purge
Reduced buffer pool contention
New adaptive hashing algorithm

MySQL
Memory Allocation

Switch from malloc to better memory allocators for multi-threaded
concurrency
Lock_open contention (bottleneck when opening tables)
9

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
ScienceLogic
Moved from 5.1 to 5.5, 5.6

 Network Monitoring Software
 Averages 8,000 queries every second or about 1 billion queries a day
 Can reach 175,000 tables and up to 20 million rows in a single table.

 2 terabytes on average
 “tremendous performance gains”

 “moving log-flushing from a main process to a background process”

10

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

11

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

Insert Information Protection Policy Classification from Slide 12
Online DDL for InnoDB Tables
ADD INDEX
DROP INDEX
DROP COLUMN
ADD COLUMN
RENAME COLUMN

12

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

13

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
DBT-3 Benchmarks
Open-source Benchmark
DBT1,2,4,5
OLTP, Web Services,
Web Server

DBT-3
Decision Support Systems
Large Data Volume

Complex Queries

QUERY #16
SELECT p_brand, p_type, p_size, count(distinct ps_suppkey)
as supplier_cnt
FROM partsupp, part
WHERE p_partkey = ps_partkey AND p_brand <> 'Brand#23'
AND p_typce not like 'LARGE PLATED%' AND p_size in
(43, cc1, 25, 5, 35, 12, 42, 40)

AND ps_suppkey not in (
SELECT s_suppkey FROM supplier
WHERE s_comment like '%Customer%Complaints%')
GROUP BY p_brand, p_type, p_size

ORDER BY supplier_cnt desc, p_brand, p_type, p_size;

14

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Materialized Subqueries
Query #17
~40 days to execute
Now – 6.8 seconds

Executes Once
Hash Index
Query #16 0.65 -> 0.47

QUERY #17
SELECT c_name, c_custkey, o_orderkey, o_orderdate,
o_totalprice, sum(l_quantity)
FROM customer, orders, lineitem
WHERE o_orderkey in (
SELECT l_orderkey

FROM lineitem
GROUP BY l_orderkey
HAVING sum(l_quantity) > 313)
AND c_custkey = o_custkey
AND o_orderkey = l_orderkey
GROUP BY c_name, c_custkey, o_orderkey,
o_orderdate, o_totalprice
ORDER BY o_totalprice desc, o_orderdate
LIMIT 100;

15

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Optimizer Summary
Complex
Optimize Many Tables in Join 25+
Postpone Materialization of Views/Subqueries in FROM
Indexes for Derived Tables

Standard
Optimize “IN” clause
Optimized SELECT col1, 
 FROM t1 .. ORDER BY name LIMIT 10
Better Optimizer Diagnostics
EXPLAIN for INSERT, UPDATE and DELETE
EXPLAIN output in JSON

16

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

17

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
MySQL 5.6 – Performance Schema
‱ Resource-intensive queries
‱ Tables/indexes with most load
‱ Users consuming the most resources
‱ Network load
‱ Aggregated statistics by
‱ thread
‱ user
‱ host
‱ object

18

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Show which Queries executed the most # of times

19

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Top Files by Total I/O (ps_helper)

20

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Statements with Temporary Tables

21

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
MySQL Query Analyzer

22

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

23

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
MySQL 5.6: Crash-Safe Slaves
Atomic

Before:
–

Transaction Data: in tables

–

Replication Info:

Data

CRASH!
Position Info

Time

in files

MySQL 5.6
–
–

24

Transaction Data: in tables
Replication Info: in tables

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

Atomic

Data
Position Info

Time
Multi-Threaded Slaves
Multi-Threaded Slave Performance

 Reduce Slave Latency
 Per Schema
 Threads per Schema
 Multi-tenancy

300
Queries per Second

 5x Performance Gain

250
200
150
100
50
0
QPS

25

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

0
58.11

5
144.4
Worker Threads

10
282.53
Honorable Mentions

26

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

partitioned
table

index

SELECT * FROM table
WHERE custID=100

0-99

100-199

200-299

27

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

index
Compression
current: Antelope
new: Barracuda
compression
off-page storage of variable length data

[mysqld]
innodb_file_format=Barracuda
innodb_file_per_table=1
row_format=compressed
key_block_size=8 # or 4, 2, 1K
28

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

 Performance
 Online Schema (DDL) Changes

 Replication

 Pre-load Buffer Pool

 Performance Schema

 Full Text Search (InnoDB)

 Partitioning

 NoSQL and SQL Access

29

 Optimizer Improvements

 Compression

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

30

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

Insert Information Protection Policy Classification from Slide 12
MySQL Cluster – Basic Architecture
‱
‱
‱
‱

Active/Active
99.999% Availability
No Single Point of Failure
1 billion/minute
Data Node2

Data Node 1
F1

F2

F2

F1

Data Nodes
31

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
MySQL Cluster -- Extended

Node Group 2
Node
3

F1

F3

F3
F1

Data Nodes
32

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

F2

Node
4

Node
2

Cluster
Mgmt

Node
1

Node Group 1

F4

F4

F2

Cluster
Mgmt
Data Node Distribution
F1-Primary

F1-Secondary

F2-Secondary

F2-Primary

Node Group 1

‱ Four Data Nodes
‱ Two Replicas
‱ Two Node Groups
33

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

F3-Primary

F3-Secondary

F4-Secondary

F4-Primary

Node Group 2
Transparent
‱ Application
‱ Transparency
‱ Sharding

34

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

1.
2.
3.
4.
5.

Direct API
Key-Value
NoSQL
SQL
Schema-less

HTTP

memcached

JDBC / ODBC / PHP / PERL /
Python / Ruby 


Data Node 1

Data Node2

F1

F2

F2

F1

Data Nodes

35

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Flight Control
1. Flight Operations
Management System
2. No Single Point of
Failure

36

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
ecommerce
1.
2.
3.
4.
5.

37

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

Payment Processing
Fulfillment
18,000 Retailers
High Availability
Scaling
QUESTIONS?
What’s New in MySQL 5.6

38

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

Insert Information Protection Policy Classification from Slide 12

Weitere Àhnliche Inhalte

Was ist angesagt?

What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
Satishbabu Gunukula
 

Was ist angesagt? (20)

Eng systems oracle_overview
Eng systems oracle_overviewEng systems oracle_overview
Eng systems oracle_overview
 
Oracle RAC 12c Overview
Oracle RAC 12c OverviewOracle RAC 12c Overview
Oracle RAC 12c Overview
 
Oracle Multitenant in 50 minutes
Oracle Multitenant in 50 minutesOracle Multitenant in 50 minutes
Oracle Multitenant in 50 minutes
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new features
 
What to Expect From Oracle database 19c
What to Expect From Oracle database 19cWhat to Expect From Oracle database 19c
What to Expect From Oracle database 19c
 
Doag data replication with oracle golden gate: Looking behind the scenes
Doag data replication with oracle golden gate: Looking behind the scenesDoag data replication with oracle golden gate: Looking behind the scenes
Doag data replication with oracle golden gate: Looking behind the scenes
 
Oracle RAC 19c with Standard Edition (SE) 2 - Support Update
Oracle RAC 19c with Standard Edition (SE) 2 - Support UpdateOracle RAC 19c with Standard Edition (SE) 2 - Support Update
Oracle RAC 19c with Standard Edition (SE) 2 - Support Update
 
Oracle RAC One Node 12c Overview
Oracle RAC One Node 12c OverviewOracle RAC One Node 12c Overview
Oracle RAC One Node 12c Overview
 
Real-Time Query for Data Guard
Real-Time Query for Data Guard Real-Time Query for Data Guard
Real-Time Query for Data Guard
 
Understanding oracle rac internals part 2 - slides
Understanding oracle rac internals   part 2 - slidesUnderstanding oracle rac internals   part 2 - slides
Understanding oracle rac internals part 2 - slides
 
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 versionOracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
 
Oracle Multitenant meets Oracle RAC - IOUG 2014 Version
Oracle Multitenant meets Oracle RAC - IOUG 2014 VersionOracle Multitenant meets Oracle RAC - IOUG 2014 Version
Oracle Multitenant meets Oracle RAC - IOUG 2014 Version
 
ă€æ—§ç‰ˆă€‘Oracle Database Cloud ServiceïŒšă‚”ăƒŒăƒ“ă‚čæŠ‚èŠăźă”çŽč介 [2020ćčŽ5月版]
ă€æ—§ç‰ˆă€‘Oracle Database Cloud ServiceïŒšă‚”ăƒŒăƒ“ă‚čæŠ‚èŠăźă”çŽč介 [2020ćčŽ5月版]ă€æ—§ç‰ˆă€‘Oracle Database Cloud ServiceïŒšă‚”ăƒŒăƒ“ă‚čæŠ‚èŠăźă”çŽč介 [2020ćčŽ5月版]
ă€æ—§ç‰ˆă€‘Oracle Database Cloud ServiceïŒšă‚”ăƒŒăƒ“ă‚čæŠ‚èŠăźă”çŽč介 [2020ćčŽ5月版]
 
Sangam 18 - The New Optimizer in Oracle 12c
Sangam 18 - The New Optimizer in Oracle 12cSangam 18 - The New Optimizer in Oracle 12c
Sangam 18 - The New Optimizer in Oracle 12c
 
Paper: Oracle RAC Internals - The Cache Fusion Edition
Paper: Oracle RAC Internals - The Cache Fusion EditionPaper: Oracle RAC Internals - The Cache Fusion Edition
Paper: Oracle RAC Internals - The Cache Fusion Edition
 
ă€æ—§ç‰ˆă€‘Oracle Cloud Infrastructure æ–™é‡‘äœ“çł» [2020ćčŽ5月版]
ă€æ—§ç‰ˆă€‘Oracle Cloud Infrastructure æ–™é‡‘äœ“çł» [2020ćčŽ5月版]ă€æ—§ç‰ˆă€‘Oracle Cloud Infrastructure æ–™é‡‘äœ“çł» [2020ćčŽ5月版]
ă€æ—§ç‰ˆă€‘Oracle Cloud Infrastructure æ–™é‡‘äœ“çł» [2020ćčŽ5月版]
 
MySQL 8.0 Features -- Oracle CodeOne 2019, All Things Open 2019
MySQL 8.0 Features -- Oracle CodeOne 2019, All Things Open 2019MySQL 8.0 Features -- Oracle CodeOne 2019, All Things Open 2019
MySQL 8.0 Features -- Oracle CodeOne 2019, All Things Open 2019
 
Oracle Database æœ€æ–°æƒ…ć ±(Oracle Cloudă‚Šă‚§ăƒ“ăƒŠăƒŒă‚·ăƒȘăƒŒă‚ș: 2020ćčŽ6月25æ—„)
Oracle Database æœ€æ–°æƒ…ć ±(Oracle Cloudă‚Šă‚§ăƒ“ăƒŠăƒŒă‚·ăƒȘăƒŒă‚ș: 2020ćčŽ6月25æ—„)Oracle Database æœ€æ–°æƒ…ć ±(Oracle Cloudă‚Šă‚§ăƒ“ăƒŠăƒŒă‚·ăƒȘăƒŒă‚ș: 2020ćčŽ6月25æ—„)
Oracle Database æœ€æ–°æƒ…ć ±(Oracle Cloudă‚Šă‚§ăƒ“ăƒŠăƒŒă‚·ăƒȘăƒŒă‚ș: 2020ćčŽ6月25æ—„)
 
MySQL InnoDB Cluster in a Nutshell - Hands-on Lab
MySQL InnoDB Cluster in a Nutshell - Hands-on LabMySQL InnoDB Cluster in a Nutshell - Hands-on Lab
MySQL InnoDB Cluster in a Nutshell - Hands-on Lab
 

Ähnlich wie Meetup my sql5.6_cluster

MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014
Dave Stokes
 
Oracle Solaris 11.1 New Features
Oracle Solaris 11.1 New FeaturesOracle Solaris 11.1 New Features
Oracle Solaris 11.1 New Features
Orgad Kimchi
 
Mysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesMysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New Features
Tarique Saleem
 
Oracle NoSQL Database release 3.0 overview
Oracle NoSQL Database release 3.0 overviewOracle NoSQL Database release 3.0 overview
Oracle NoSQL Database release 3.0 overview
Paulo Fagundes
 

Ähnlich wie Meetup my sql5.6_cluster (20)

MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...
MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...
MySQL 5.7 NEW FEATURES, BETTER PERFORMANCE, AND THINGS THAT WILL BREAK -- Mid...
 
MySQL 5.7 New Features to Exploit -- PHPTek/Chicago MySQL User Group May 2014
MySQL 5.7 New Features to Exploit -- PHPTek/Chicago MySQL User Group May 2014MySQL 5.7 New Features to Exploit -- PHPTek/Chicago MySQL User Group May 2014
MySQL 5.7 New Features to Exploit -- PHPTek/Chicago MySQL User Group May 2014
 
MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014
 
MySQL Quick Dive
MySQL Quick DiveMySQL Quick Dive
MySQL Quick Dive
 
20190713_MySQL開ç™șæœ€æ–°ć‹•ć‘
20190713_MySQL開ç™șæœ€æ–°ć‹•ć‘20190713_MySQL開ç™șæœ€æ–°ć‹•ć‘
20190713_MySQL開ç™șæœ€æ–°ć‹•ć‘
 
Oracle Solaris 11.1 New Features
Oracle Solaris 11.1 New FeaturesOracle Solaris 11.1 New Features
Oracle Solaris 11.1 New Features
 
Solution Use Case Demo: The Power of Relationships in Your Big Data
Solution Use Case Demo: The Power of Relationships in Your Big DataSolution Use Case Demo: The Power of Relationships in Your Big Data
Solution Use Case Demo: The Power of Relationships in Your Big Data
 
What's New in MySQL 5.7
What's New in MySQL 5.7What's New in MySQL 5.7
What's New in MySQL 5.7
 
Mysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesMysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New Features
 
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 
Oracle_DB_sobre_Oracle
Oracle_DB_sobre_OracleOracle_DB_sobre_Oracle
Oracle_DB_sobre_Oracle
 
MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015
 
Session 307 ravi pendekanti engineered systems
Session 307  ravi pendekanti engineered systemsSession 307  ravi pendekanti engineered systems
Session 307 ravi pendekanti engineered systems
 
Beyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
Beyond SQL Tuning: Insider's Guide to Maximizing SQL PerformanceBeyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
Beyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
 
NoSQL and MySQL
NoSQL and MySQLNoSQL and MySQL
NoSQL and MySQL
 
Oracle NoSQL Database release 3.0 overview
Oracle NoSQL Database release 3.0 overviewOracle NoSQL Database release 3.0 overview
Oracle NoSQL Database release 3.0 overview
 
Oracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationOracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for Consolidation
 
MySQL
MySQLMySQL
MySQL
 
20190817 coscup-oracle my sql innodb cluster sharing
20190817 coscup-oracle my sql innodb cluster sharing20190817 coscup-oracle my sql innodb cluster sharing
20190817 coscup-oracle my sql innodb cluster sharing
 
MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise Monitor
 

KĂŒrzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

KĂŒrzlich hochgeladen (20)

Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

Meetup my sql5.6_cluster

  • 1. MySQL 5.6 and Cluster Lee Stigile – Technical Sales Consulting Manager -- Americas 1 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 2. Agenda Goal: Benefits of Upgrading to MySQL 5.6 Understand MySQL Cluster  MySQL 5.6 – Top 5 New Features  Improved Features: Compression and Partitioning  MySQL Cluster 2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 3. Oracle Invests Innovations for the MySQL Community Oracle Delivers. Past 12 Months: GA: MySQL 5.6, MySQL Cluster 7.3, MySQL Workbench 6.0, MySQL Utilities, MySQL Connectors...and more DMRs: MySQL 5.7 Labs: Multi-source Replication, Fabric 3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 4. MySQL Enterprise Edition Highest Levels of Security, Performance, and Availability Oracle Premier Lifetime Support MySQL Enterprise Thread Pool MySQL Enterprise Authentication MySQL Enterprise Audit 4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. MySQL Enterprise Monitor/Query Analyzer MySQL Enterprise Backup MySQL Workbench
  • 5. Features  Performance  Online Schema (DDL) Changes  Replication  Pre-load Buffer Pool  Performance Schema  Full Text Search (InnoDB)  Partitioning  NoSQL and SQL Access 5  Optimizer Improvements  Compression Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 6. #1 Performance 6 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 7. MySQL 5.6: Scalability  Users can fully utilize latest generations of hardware and OS  Scales as data volumes and users grow 7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 8. MySQL Scalability January 2010 Oracle Buys Sun InnoDB joins MySQL Oracle Buys Innobase/InnoDB 2005 2008 4 CPU MySQL 5.0 8 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2009 4 CPU MySQL 5.1 16 CPU InnoDB Plugin Sun Micro 2010 2010 December 32 CPU MySQL 5.5 2012 Up to 48 CPU MySQL 5.6
  • 9. Performance Improvements  InnoDB and MySQL Refactored InnoDB Split kernel mutex Separate thread for flushing operations Multi-threaded purge Reduced buffer pool contention New adaptive hashing algorithm MySQL Memory Allocation Switch from malloc to better memory allocators for multi-threaded concurrency Lock_open contention (bottleneck when opening tables) 9 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 10. ScienceLogic Moved from 5.1 to 5.5, 5.6  Network Monitoring Software  Averages 8,000 queries every second or about 1 billion queries a day  Can reach 175,000 tables and up to 20 million rows in a single table.  2 terabytes on average  “tremendous performance gains”  “moving log-flushing from a main process to a background process” 10 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 11. #2 Online Operations 11 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12
  • 12. Online DDL for InnoDB Tables ADD INDEX DROP INDEX DROP COLUMN ADD COLUMN RENAME COLUMN 12 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 13. #3 Optimizer 13 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 14. DBT-3 Benchmarks Open-source Benchmark DBT1,2,4,5 OLTP, Web Services, Web Server DBT-3 Decision Support Systems Large Data Volume Complex Queries QUERY #16 SELECT p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt FROM partsupp, part WHERE p_partkey = ps_partkey AND p_brand <> 'Brand#23' AND p_typce not like 'LARGE PLATED%' AND p_size in (43, cc1, 25, 5, 35, 12, 42, 40) AND ps_suppkey not in ( SELECT s_suppkey FROM supplier WHERE s_comment like '%Customer%Complaints%') GROUP BY p_brand, p_type, p_size ORDER BY supplier_cnt desc, p_brand, p_type, p_size; 14 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 15. Materialized Subqueries Query #17 ~40 days to execute Now – 6.8 seconds Executes Once Hash Index Query #16 0.65 -> 0.47 QUERY #17 SELECT c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, sum(l_quantity) FROM customer, orders, lineitem WHERE o_orderkey in ( SELECT l_orderkey FROM lineitem GROUP BY l_orderkey HAVING sum(l_quantity) > 313) AND c_custkey = o_custkey AND o_orderkey = l_orderkey GROUP BY c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice ORDER BY o_totalprice desc, o_orderdate LIMIT 100; 15 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 16. Optimizer Summary Complex Optimize Many Tables in Join 25+ Postpone Materialization of Views/Subqueries in FROM Indexes for Derived Tables Standard Optimize “IN” clause Optimized SELECT col1, 
 FROM t1 .. ORDER BY name LIMIT 10 Better Optimizer Diagnostics EXPLAIN for INSERT, UPDATE and DELETE EXPLAIN output in JSON 16 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 17. #4 Performance Schema 17 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 18. MySQL 5.6 – Performance Schema ‱ Resource-intensive queries ‱ Tables/indexes with most load ‱ Users consuming the most resources ‱ Network load ‱ Aggregated statistics by ‱ thread ‱ user ‱ host ‱ object 18 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 19. Show which Queries executed the most # of times 19 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 20. Top Files by Total I/O (ps_helper) 20 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 21. Statements with Temporary Tables 21 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 22. MySQL Query Analyzer 22 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 23. #5 Replication 23 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 24. MySQL 5.6: Crash-Safe Slaves Atomic Before: – Transaction Data: in tables – Replication Info: Data CRASH! Position Info Time in files MySQL 5.6 – – 24 Transaction Data: in tables Replication Info: in tables Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Atomic Data Position Info Time
  • 25. Multi-Threaded Slaves Multi-Threaded Slave Performance  Reduce Slave Latency  Per Schema  Threads per Schema  Multi-tenancy 300 Queries per Second  5x Performance Gain 250 200 150 100 50 0 QPS 25 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 0 58.11 5 144.4 Worker Threads 10 282.53
  • 26. Honorable Mentions 26 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 27. Partitioning table partitioned table index SELECT * FROM table WHERE custID=100 0-99 100-199 200-299 27 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. index
  • 28. Compression current: Antelope new: Barracuda compression off-page storage of variable length data [mysqld] innodb_file_format=Barracuda innodb_file_per_table=1 row_format=compressed key_block_size=8 # or 4, 2, 1K 28 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 29. Features  Performance  Online Schema (DDL) Changes  Replication  Pre-load Buffer Pool  Performance Schema  Full Text Search (InnoDB)  Partitioning  NoSQL and SQL Access 29  Optimizer Improvements  Compression Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 30. MySQL Cluster 30 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12
  • 31. MySQL Cluster – Basic Architecture ‱ ‱ ‱ ‱ Active/Active 99.999% Availability No Single Point of Failure 1 billion/minute Data Node2 Data Node 1 F1 F2 F2 F1 Data Nodes 31 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 32. MySQL Cluster -- Extended Node Group 2 Node 3 F1 F3 F3 F1 Data Nodes 32 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. F2 Node 4 Node 2 Cluster Mgmt Node 1 Node Group 1 F4 F4 F2 Cluster Mgmt
  • 33. Data Node Distribution F1-Primary F1-Secondary F2-Secondary F2-Primary Node Group 1 ‱ Four Data Nodes ‱ Two Replicas ‱ Two Node Groups 33 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. F3-Primary F3-Secondary F4-Secondary F4-Primary Node Group 2
  • 34. Transparent ‱ Application ‱ Transparency ‱ Sharding 34 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 35. Access Application 1. 2. 3. 4. 5. Direct API Key-Value NoSQL SQL Schema-less HTTP memcached JDBC / ODBC / PHP / PERL / Python / Ruby 
 Data Node 1 Data Node2 F1 F2 F2 F1 Data Nodes 35 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 36. Flight Control 1. Flight Operations Management System 2. No Single Point of Failure 36 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 37. ecommerce 1. 2. 3. 4. 5. 37 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Payment Processing Fulfillment 18,000 Retailers High Availability Scaling
  • 38. QUESTIONS? What’s New in MySQL 5.6 38 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12