SlideShare une entreprise Scribd logo
1  sur  38
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

Eng systems oracle_overview
Eng systems oracle_overviewEng systems oracle_overview
Eng systems oracle_overviewFran Navarro
 
Oracle Multitenant in 50 minutes
Oracle Multitenant in 50 minutesOracle Multitenant in 50 minutes
Oracle Multitenant in 50 minutesConnor McDonald
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new featuresJakkrapat S.
 
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 19cMaria Colgan
 
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 scenesTrivadis
 
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 UpdateMarkus Michalewicz
 
Oracle RAC One Node 12c Overview
Oracle RAC One Node 12c OverviewOracle RAC One Node 12c Overview
Oracle RAC One Node 12c OverviewMarkus Michalewicz
 
Real-Time Query for Data Guard
Real-Time Query for Data Guard Real-Time Query for Data Guard
Real-Time Query for Data Guard Uwe Hesse
 
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 - slidesMohamed Farouk
 
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 versionMarkus Michalewicz
 
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
 
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 VersionMarkus Michalewicz
 
【旧版】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 12cConnor McDonald
 
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 EditionMarkus Michalewicz
 
【旧版】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 2019Dave Stokes
 
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 LabFrederic Descamps
 

Tendances (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
 

Similaire à Meetup my sql5.6_cluster

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...Dave Stokes
 
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 2014Dave Stokes
 
MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014Dave Stokes
 
20190713_MySQL開発最新動向
20190713_MySQL開発最新動向20190713_MySQL開発最新動向
20190713_MySQL開発最新動向Machiko Ikoma
 
Oracle Solaris 11.1 New Features
Oracle Solaris 11.1 New FeaturesOracle Solaris 11.1 New Features
Oracle Solaris 11.1 New FeaturesOrgad Kimchi
 
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 DataInfiniteGraph
 
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.7Olivier DASINI
 
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 FeaturesTarique Saleem
 
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 SupportMysql User Camp
 
Oracle_DB_sobre_Oracle
Oracle_DB_sobre_OracleOracle_DB_sobre_Oracle
Oracle_DB_sobre_OracleFran Navarro
 
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. 2015Mario Beck
 
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 PerformanceAshish Agrawal
 
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 overviewPaulo Fagundes
 
Oracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationOracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationYudi Herdiana
 
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 sharingIvan Ma
 
MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise MonitorMark Swarbrick
 

Similaire à 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
 

Dernier

Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 

Dernier (20)

Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 

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