SlideShare a Scribd company logo
MySQL Day – Paris
22 Novembre 2018
Introduction &
The State of the Dolphin
Xavier GERARD
MySQL Enterprise Manager
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Equipe MySQL France
Enterprise customers
• Xavier Gerard Alexis Bensa Rassol Dia
Embedded/ISV customers
• Jean Francois Houplain Andra Barbu
Presales
• Olivier Dasini Andrea Ciobotaru
Partenaires, Client Success Manager
• Neville Tanzer Nicoleta Militaru
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Safe Harbor Statement
The following is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied upon
in making purchasing decisions. The development, release, and timing of any features or
functionality described for Oracle’s products remains at the sole discretion of Oracle.
3
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Explosive Data Growth
4
4.33 Million
Videos Views
473,400
Tweets
854,166
Logins
97,222
Hours of Video
Streamed
1,389
Rides
120+
New Professionals
Every
60 Seconds
0
20
40
60
80
100
120
140
160
180
2010 2012 2014 2016 2018 2020 2022 2024
Zettabytes
Source: IDC, 2017 Source: Domo, 2018
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
DB-Engines 2018
Database Ranking
MySQL is the 2nd most popular database
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Stack Overflow Developer Survey 2018
Survey Results over 100,000 developers Worldwide
MySQL is the most popular database
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
JetBrains Survey 2018
The State of Developer Ecosystem
MySQL is the most popular database
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 8
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
What's New in MySQL
NoSQL + SQL = MySQL
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
MySQL 8.0: One Giant Leap for SQL
“This is a landmark release as MySQL
eventually evolved beyond SQL-92
and the purely relational dogma.
Among a few other standard SQL
features, MySQL now supports window
functions (over) and common table
expressions (with). Without a doubt,
these are the two most important post-
SQL-92 features.”
https://modern-sql.com/blog/2018-04/mysql-8.0
Objectif 1 : extraire de la valeur de vos données
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
NoSQL
JSON Documents
Schemaless JSON Collections
SQL
Relational Tables
Foreign Keys
X Dev API
SQL
CRUD
MySQL
Document
Store
Objectif 2 : gérer la donnée dans tous les formats
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
InnoDB Cluster
12
App Servers with
MySQL Router
MySQL Group Replication
MySQL Shell
Setup, Manage,
Orchestrate
• Synchronisation des données
• Routage des données transparent
• Provisionning et orchestration
Objectif 3 : La donnée toujours accessible
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Get started in minutes
MySQL Shell 8.0: for the DevOps era
• Rapid prototyping capabilities
– Using JavaScript and Python
• Full SQL and X DevAPI support
– With built in auto-completion
• InnoDB Cluster support
– Setup your HA solution within minutes
• DevOps Tool
– Designed for DevOps operations
Objectif 4 : Automatiser la gestion de vos serveurs MySQL
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Authentication,
Encryption, Masking
Monitoring
Firewall
& Auditing
High Availability
& Backup
• Assess
– MySQL Enterprise Monitor
– MySQL Workbench
• Prevent
– MySQL Enterprise Authentication
– MySQL Enterprise Firewall
– MySQL Enterprise Encryption
– New! MySQL Enterprise Data Masking
• Detect
– MySQL Enterprise Audit
• Recover
– MySQL Enterprise HA
– MySQL Enterprise Backup
Objectif 5 : une architecture de sécurité MySQL
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
0
50 000
100 000
150 000
200 000
250 000
300 000
1 2 4 8 16 32 64 128 256 512 1 024
QueriesperSecond
Users
MySQL 8.0
MySQL 5.7
MySQL 8.0 Performance improvements : so much see DimitriK’s blog
eg : SysBench Read Write (update nokey)
2x Faster than MySQL 5.7
15
OS : Oracle Linux 7.4
CPU : 48cores-HT Intel Skylake 2.7Ghz
(2CPU sockets, Intel(R) Xeon(R) Platinum 8168 CPU)
RAM: 256GB
Storage : x2 Intel Optane flash devices
(Intel (R) Optane (TM) SSD P4800X Series)
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Management ToolsAdvanced Features Support
• Data Masking
• High Availability
• Authentification
• Audit
• Encryption + TDE
• Firewall
•Monitoring
•Backup
•Development
•Administration
•Migration
• Technical Support
• Consultative Support
• Oracle Certifications
MySQL Enterprise Edition subscription
16
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
• Ground breaking technology from Oracle Labs
• Extreme Performance with In-Memory Analytics
• Integrated with MySQL
– Can instantiate a new service or add to a running MySQL service
• Support for Real-Time SQL Analytics
– Analytics provided over the same transactional store
• Architected for Oracle Cloud Infrastructure
– Designed for Massive Elasticity
• Supports data on premise or in the cloud
Confidential – Oracle Internal/Restricted/Highly Restricted
MySQL Analytics Service
Analytics
DEV
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Analytics deployment in “Hybrid cloud”
Enables analytics of data which has not been moved to cloud
MySQL/RAPID
(Slave)
RAPID
Server
RAPID
Server
Block/SSD Storage
Object
Storage
(backup)
MySQL
(Master)
MySQL
(Slave)
MySQL MySQL Analytics
(Finance)
MySQL/RAPID
(Slave)
RAPID
Server
MySQL Analytics
(HR)
MySQL DB master instance outside of OCI
RAPID
Server
RAPID
Server
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 19
Performance Improvement : Filter
0,04 0,1 0,5 1
SPEEDUP (AVG) 292,628571 252,52459 186,532258 174,065728
RAPID (AVG) 105 122 165,333333 177,5
MYSQL-IN-MEMORY (AVG) 30726 30808 30840 30896,6667
293X
253X
187X
174X
0
50
100
150
200
250
300
350
0
5000
10000
15000
20000
25000
30000
RAPIDtoMySQLAvg.Speedup
ExecutionTime(msecs)
Filter Selectivity %
Filter predicate of TPCH Q1 @ SF=16; 16GB, 96 M rows
on 1 BMC Node
Speed up
95%
1%
0% 4%
Filter Query Time
Breakdown
(1% Selectivity, TPCH 16, 1
Node)
Rapid Execution
Row Callback
End Send
Rapid Network
15%
34%
11%
40%
Filter Query Time
Breakdown
(10% Selectivity, TPCH
16, 1 Node)
Rapid Execution
Row Callback
End Send
Rapid Network
More than 100x
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 20
Performance Improvement : Joins
40,013
(0.04%)
633,836
(0.66%)
2,431,528
(2.5%)
SPEEDUP (AVG) 107,6 84,33 65,54
RAPID (AVG) 50 90 650
MySQL-IN-MEMORY (AVG) 5380 7590 42600
107X
84X
65X
0
20
40
60
80
100
120
0
5000
10000
15000
20000
25000
30000
35000
40000
45000
RAPIDtoMySQLAvg.Speedup
ExecutionTime(msecs)
PK-FK Join Query @ SF=16 on 1 OCI Node
(with Index on bases tables)
0.16 sec
1070 sec
1
10
100
1000
10000
100000
1000000
10000000
RAPID (AVG) MySQL-IN-MEMORY
(AVG)
ExecutionTime(msecs)
Join Query @SF=16 on 1 OCI Node
(without Indexes on base tables)
>6000X
Speedup
Speed up
More than 1000x
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
MySQL customers presentations
extracts from
Oracle Open World and Oracle Code One
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Where do we use MySQL?
● browsing the web looking at hotels
● accessing the site from your mobile phone
● looking at hotel reviews
● making the reservation
● handling credit cards
● managing payments
● analytics
● internal systems
● and lots more...
They all use MySQL as a backend to retrieve or store data
[ We use a few other systems for storing data, including hadoop for complex analytics: everything else uses MySQL ]
The business:
● 1.5 million room nights booked every day
○ That is ~1,000 per minute
● We are still growing...
● Easy scale out of reads using replication to server customer growth
● Increasing better performance with each new MySQL version
● It has allowed us to scale while covering more demanding business needs
● Relational model makes it easier to do more complex queries
● ….
Why we use MySQL? Growth
Scale out
Our MySQL installation?
Where have we come from?
● 11 years ago we had ~40 MySQL servers, ~5 clusters and ran MySQL 5.0
Where are we now?
● thousands of MySQL servers spread over several data centres
● hundreds of MySQL replication clusters ranging in size from 5-10 to over 500 servers
● MySQL versions used are 5.7, 8.0 with a few 5.6 stragglers1
○ 96% of 5.7 servers, 97% of 8.0 servers run the latest GA version
● We are starting to use MySQL NDB Cluster
● individual servers' databases range from 100s of GB to tens of TB
● managed by a team of 7
1 Some external applications prevent these upgrades
MySQL @Twitter - Intro
• 2 versions; Twitter version: 5.6 and
Community: 5.7
• Runs on thousands of production servers
• We support it via automation + 5 Engineers
MySQL @Twitter - How we use it?
5.6 Twitter Version
• Data: ~ PB’s of data
• Servers: Thousands of commodity
servers across 2 DC’s
• QPS: ~ 50M mostly reads
MySQL @Twitter - How we use it?
5.7 MySQL Community Version
• Clusters: Hundred of clusters
(Master/Replica)
• Total QPS: ~ 1M r/w
• Highest # of replicas: ~ 150 on one cluster
• Highest QPS (replica): ~ 20K r/w at peak
• Highest QPS (master): ~ 10K r/w at peak
• Supports most of Twitter internal services
Workloads on MySQL
▪ User Database (UDB)
▪ Social graph workload
▪ Pure flash
▪ Heavily sharded
▪ Automated management
▪ Facebook Messenger
▪ 1B+ people use the application
▪ Petabytes of information
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Why migrate to 8.0?
• New features (includes 5.7)
– Atomic DDL
• LOCK TABLE t1 WRITE; RENAME TABLE t1 TO t1_old, t1_new TO t1;
– Parallel Replication
– Group Replication
– Instant Add Column
– Protocol X
• Reduce efforts to backport from 5.7 to 5.6
– 5.7 InnoDB resizable buffer pool
– 5.7 Server sessions
– 8.0 Atomic DDL
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Agenda
30

More Related Content

PDF
MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...
PDF
MySQL Day Paris 2018 - Upgrade from MySQL 5.7 to MySQL 8.0
PDF
MySQL Day Paris 2018 - MySQL & GDPR; Privacy and Security requirements
PDF
MySQL 8.0.17 - New Features Summary
PDF
MySQL Day Paris 2018 - What’s New in MySQL 8.0 ?
PDF
MySQL 8.0.16 New Features Summary
PDF
MySQL 8.0.18 - New Features Summary
PDF
Upgrade from MySQL 5.7 to MySQL 8.0
MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...
MySQL Day Paris 2018 - Upgrade from MySQL 5.7 to MySQL 8.0
MySQL Day Paris 2018 - MySQL & GDPR; Privacy and Security requirements
MySQL 8.0.17 - New Features Summary
MySQL Day Paris 2018 - What’s New in MySQL 8.0 ?
MySQL 8.0.16 New Features Summary
MySQL 8.0.18 - New Features Summary
Upgrade from MySQL 5.7 to MySQL 8.0

What's hot (20)

PDF
MySQL 8.0 - What's New ?
PDF
MySQL Database Service - 100% Developed, Managed and Supported by the MySQL Team
PDF
MySQL 8.0, what's new ? - Forum PHP 2018
PDF
MySQL Day Paris 2018 - MySQL JSON Document Store
PDF
MySQL 8.0.22 - New Features Summary
PDF
MySQL Document Store for Modern Applications
PDF
MySQL Day Paris 2016 - State Of The Dolphin
PDF
MySQL 8.0.19 - New Features Summary
PDF
MySQL Day Paris 2016 - Introducing Oracle MySQL Cloud Service
PDF
Case Study: MySQL migration from latin1 to UTF-8
PDF
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
PDF
MySQL Day Paris 2016 - MySQL Enterprise Edition
PDF
MySQL for Software-as-a-Service (SaaS)
PDF
MySQL 5.7: What's New, Nov. 2015
PDF
MySQL Community and Commercial Edition
PDF
MySQL Cloud Service Deep Dive
PDF
MySQL Performance Best Practices
PDF
MySQL Security
PPTX
Upgrading to MySQL 8.0 webinar slides November 27th, 2019
PDF
MySQL High Availability Solutions - Avoid loss of service by reducing the r...
MySQL 8.0 - What's New ?
MySQL Database Service - 100% Developed, Managed and Supported by the MySQL Team
MySQL 8.0, what's new ? - Forum PHP 2018
MySQL Day Paris 2018 - MySQL JSON Document Store
MySQL 8.0.22 - New Features Summary
MySQL Document Store for Modern Applications
MySQL Day Paris 2016 - State Of The Dolphin
MySQL 8.0.19 - New Features Summary
MySQL Day Paris 2016 - Introducing Oracle MySQL Cloud Service
Case Study: MySQL migration from latin1 to UTF-8
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
MySQL Day Paris 2016 - MySQL Enterprise Edition
MySQL for Software-as-a-Service (SaaS)
MySQL 5.7: What's New, Nov. 2015
MySQL Community and Commercial Edition
MySQL Cloud Service Deep Dive
MySQL Performance Best Practices
MySQL Security
Upgrading to MySQL 8.0 webinar slides November 27th, 2019
MySQL High Availability Solutions - Avoid loss of service by reducing the r...
Ad

Similar to MySQL Day Paris 2018 - Introduction & The State of the Dolphin (20)

PDF
MySQL 20 años: pasado, presente y futuro; conoce las nuevas características d...
PDF
MySQL 8: Ready for Prime Time
PDF
Mysql Enterprise Edition Feature and Tools
PDF
MySQL for Oracle DBAs
PDF
MySQL
PDF
MySQL Technology Overview
PPTX
MySQL 8.0 in a nutshell
PPTX
State ofdolphin short
PDF
What's New in MySQL 8.0 @ HKOSC 2017
PDF
MySQL : State of the Dolphin May 2019
PDF
Oracle Open World Middle East - MySQL 8 a Giant Leap for SQL
PDF
How Partners Can Tap into a New Revenue Stream w/MySQL EE
PDF
the State of the Dolphin - October 2020
ODP
MySQL Enterprise Portfolio
PDF
RMOUG MySQL 5.7 New Features
PDF
Posscon my sql56
PDF
MySQL Enterprise Edition - Complete Guide (2019)
PDF
State of the Dolphin 2020 - 25th Anniversary of MySQL with 8.0.20
PDF
MySQL London Tech Tour March 2015 - Whats New
PPTX
MySQL enterprise edition
MySQL 20 años: pasado, presente y futuro; conoce las nuevas características d...
MySQL 8: Ready for Prime Time
Mysql Enterprise Edition Feature and Tools
MySQL for Oracle DBAs
MySQL
MySQL Technology Overview
MySQL 8.0 in a nutshell
State ofdolphin short
What's New in MySQL 8.0 @ HKOSC 2017
MySQL : State of the Dolphin May 2019
Oracle Open World Middle East - MySQL 8 a Giant Leap for SQL
How Partners Can Tap into a New Revenue Stream w/MySQL EE
the State of the Dolphin - October 2020
MySQL Enterprise Portfolio
RMOUG MySQL 5.7 New Features
Posscon my sql56
MySQL Enterprise Edition - Complete Guide (2019)
State of the Dolphin 2020 - 25th Anniversary of MySQL with 8.0.20
MySQL London Tech Tour March 2015 - Whats New
MySQL enterprise edition
Ad

More from Olivier DASINI (9)

PDF
MySQL 8.0.21 - New Features Summary
PDF
MySQL JSON Document Store - A Document Store with all the benefits of a Trans...
PDF
MySQL Document Store - A Document Store with all the benefts of a Transactona...
PDF
MySQL 5.7 InnoDB Cluster (Jan 2018)
PDF
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
PDF
MySQL InnoDB Cluster - Meetup Oracle MySQL / AFUP Paris
PDF
MySQL Day Paris 2016 - MySQL as a Document Store
PDF
What's New in MySQL 5.7
PDF
Upgrade to MySQL 5.6 without downtime
MySQL 8.0.21 - New Features Summary
MySQL JSON Document Store - A Document Store with all the benefits of a Trans...
MySQL Document Store - A Document Store with all the benefts of a Transactona...
MySQL 5.7 InnoDB Cluster (Jan 2018)
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
MySQL InnoDB Cluster - Meetup Oracle MySQL / AFUP Paris
MySQL Day Paris 2016 - MySQL as a Document Store
What's New in MySQL 5.7
Upgrade to MySQL 5.6 without downtime

Recently uploaded (20)

PPTX
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
PPTX
Artificial Intelligence
PDF
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
PDF
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PDF
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPTX
Information Storage and Retrieval Techniques Unit III
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPTX
Management Information system : MIS-e-Business Systems.pptx
PDF
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PDF
Abrasive, erosive and cavitation wear.pdf
PPTX
Module 8- Technological and Communication Skills.pptx
PPTX
Feature types and data preprocessing steps
PDF
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
Artificial Intelligence
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
Categorization of Factors Affecting Classification Algorithms Selection
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
Information Storage and Retrieval Techniques Unit III
Safety Seminar civil to be ensured for safe working.
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Management Information system : MIS-e-Business Systems.pptx
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
Abrasive, erosive and cavitation wear.pdf
Module 8- Technological and Communication Skills.pptx
Feature types and data preprocessing steps
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
Automation-in-Manufacturing-Chapter-Introduction.pdf
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF

MySQL Day Paris 2018 - Introduction & The State of the Dolphin

  • 1. MySQL Day – Paris 22 Novembre 2018 Introduction & The State of the Dolphin Xavier GERARD MySQL Enterprise Manager Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
  • 2. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Equipe MySQL France Enterprise customers • Xavier Gerard Alexis Bensa Rassol Dia Embedded/ISV customers • Jean Francois Houplain Andra Barbu Presales • Olivier Dasini Andrea Ciobotaru Partenaires, Client Success Manager • Neville Tanzer Nicoleta Militaru
  • 3. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 3
  • 4. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Explosive Data Growth 4 4.33 Million Videos Views 473,400 Tweets 854,166 Logins 97,222 Hours of Video Streamed 1,389 Rides 120+ New Professionals Every 60 Seconds 0 20 40 60 80 100 120 140 160 180 2010 2012 2014 2016 2018 2020 2022 2024 Zettabytes Source: IDC, 2017 Source: Domo, 2018
  • 5. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | DB-Engines 2018 Database Ranking MySQL is the 2nd most popular database
  • 6. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Stack Overflow Developer Survey 2018 Survey Results over 100,000 developers Worldwide MySQL is the most popular database
  • 7. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | JetBrains Survey 2018 The State of Developer Ecosystem MySQL is the most popular database
  • 8. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 8
  • 9. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | What's New in MySQL NoSQL + SQL = MySQL Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
  • 10. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma. Among a few other standard SQL features, MySQL now supports window functions (over) and common table expressions (with). Without a doubt, these are the two most important post- SQL-92 features.” https://modern-sql.com/blog/2018-04/mysql-8.0 Objectif 1 : extraire de la valeur de vos données
  • 11. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | NoSQL JSON Documents Schemaless JSON Collections SQL Relational Tables Foreign Keys X Dev API SQL CRUD MySQL Document Store Objectif 2 : gérer la donnée dans tous les formats
  • 12. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | InnoDB Cluster 12 App Servers with MySQL Router MySQL Group Replication MySQL Shell Setup, Manage, Orchestrate • Synchronisation des données • Routage des données transparent • Provisionning et orchestration Objectif 3 : La donnée toujours accessible
  • 13. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Get started in minutes MySQL Shell 8.0: for the DevOps era • Rapid prototyping capabilities – Using JavaScript and Python • Full SQL and X DevAPI support – With built in auto-completion • InnoDB Cluster support – Setup your HA solution within minutes • DevOps Tool – Designed for DevOps operations Objectif 4 : Automatiser la gestion de vos serveurs MySQL
  • 14. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Authentication, Encryption, Masking Monitoring Firewall & Auditing High Availability & Backup • Assess – MySQL Enterprise Monitor – MySQL Workbench • Prevent – MySQL Enterprise Authentication – MySQL Enterprise Firewall – MySQL Enterprise Encryption – New! MySQL Enterprise Data Masking • Detect – MySQL Enterprise Audit • Recover – MySQL Enterprise HA – MySQL Enterprise Backup Objectif 5 : une architecture de sécurité MySQL
  • 15. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 0 50 000 100 000 150 000 200 000 250 000 300 000 1 2 4 8 16 32 64 128 256 512 1 024 QueriesperSecond Users MySQL 8.0 MySQL 5.7 MySQL 8.0 Performance improvements : so much see DimitriK’s blog eg : SysBench Read Write (update nokey) 2x Faster than MySQL 5.7 15 OS : Oracle Linux 7.4 CPU : 48cores-HT Intel Skylake 2.7Ghz (2CPU sockets, Intel(R) Xeon(R) Platinum 8168 CPU) RAM: 256GB Storage : x2 Intel Optane flash devices (Intel (R) Optane (TM) SSD P4800X Series)
  • 16. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Management ToolsAdvanced Features Support • Data Masking • High Availability • Authentification • Audit • Encryption + TDE • Firewall •Monitoring •Backup •Development •Administration •Migration • Technical Support • Consultative Support • Oracle Certifications MySQL Enterprise Edition subscription 16
  • 17. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | • Ground breaking technology from Oracle Labs • Extreme Performance with In-Memory Analytics • Integrated with MySQL – Can instantiate a new service or add to a running MySQL service • Support for Real-Time SQL Analytics – Analytics provided over the same transactional store • Architected for Oracle Cloud Infrastructure – Designed for Massive Elasticity • Supports data on premise or in the cloud Confidential – Oracle Internal/Restricted/Highly Restricted MySQL Analytics Service Analytics DEV
  • 18. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Analytics deployment in “Hybrid cloud” Enables analytics of data which has not been moved to cloud MySQL/RAPID (Slave) RAPID Server RAPID Server Block/SSD Storage Object Storage (backup) MySQL (Master) MySQL (Slave) MySQL MySQL Analytics (Finance) MySQL/RAPID (Slave) RAPID Server MySQL Analytics (HR) MySQL DB master instance outside of OCI RAPID Server RAPID Server
  • 19. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 19 Performance Improvement : Filter 0,04 0,1 0,5 1 SPEEDUP (AVG) 292,628571 252,52459 186,532258 174,065728 RAPID (AVG) 105 122 165,333333 177,5 MYSQL-IN-MEMORY (AVG) 30726 30808 30840 30896,6667 293X 253X 187X 174X 0 50 100 150 200 250 300 350 0 5000 10000 15000 20000 25000 30000 RAPIDtoMySQLAvg.Speedup ExecutionTime(msecs) Filter Selectivity % Filter predicate of TPCH Q1 @ SF=16; 16GB, 96 M rows on 1 BMC Node Speed up 95% 1% 0% 4% Filter Query Time Breakdown (1% Selectivity, TPCH 16, 1 Node) Rapid Execution Row Callback End Send Rapid Network 15% 34% 11% 40% Filter Query Time Breakdown (10% Selectivity, TPCH 16, 1 Node) Rapid Execution Row Callback End Send Rapid Network More than 100x
  • 20. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 20 Performance Improvement : Joins 40,013 (0.04%) 633,836 (0.66%) 2,431,528 (2.5%) SPEEDUP (AVG) 107,6 84,33 65,54 RAPID (AVG) 50 90 650 MySQL-IN-MEMORY (AVG) 5380 7590 42600 107X 84X 65X 0 20 40 60 80 100 120 0 5000 10000 15000 20000 25000 30000 35000 40000 45000 RAPIDtoMySQLAvg.Speedup ExecutionTime(msecs) PK-FK Join Query @ SF=16 on 1 OCI Node (with Index on bases tables) 0.16 sec 1070 sec 1 10 100 1000 10000 100000 1000000 10000000 RAPID (AVG) MySQL-IN-MEMORY (AVG) ExecutionTime(msecs) Join Query @SF=16 on 1 OCI Node (without Indexes on base tables) >6000X Speedup Speed up More than 1000x
  • 21. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | MySQL customers presentations extracts from Oracle Open World and Oracle Code One Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
  • 22. Where do we use MySQL? ● browsing the web looking at hotels ● accessing the site from your mobile phone ● looking at hotel reviews ● making the reservation ● handling credit cards ● managing payments ● analytics ● internal systems ● and lots more... They all use MySQL as a backend to retrieve or store data [ We use a few other systems for storing data, including hadoop for complex analytics: everything else uses MySQL ] The business: ● 1.5 million room nights booked every day ○ That is ~1,000 per minute ● We are still growing...
  • 23. ● Easy scale out of reads using replication to server customer growth ● Increasing better performance with each new MySQL version ● It has allowed us to scale while covering more demanding business needs ● Relational model makes it easier to do more complex queries ● …. Why we use MySQL? Growth Scale out
  • 24. Our MySQL installation? Where have we come from? ● 11 years ago we had ~40 MySQL servers, ~5 clusters and ran MySQL 5.0 Where are we now? ● thousands of MySQL servers spread over several data centres ● hundreds of MySQL replication clusters ranging in size from 5-10 to over 500 servers ● MySQL versions used are 5.7, 8.0 with a few 5.6 stragglers1 ○ 96% of 5.7 servers, 97% of 8.0 servers run the latest GA version ● We are starting to use MySQL NDB Cluster ● individual servers' databases range from 100s of GB to tens of TB ● managed by a team of 7 1 Some external applications prevent these upgrades
  • 25. MySQL @Twitter - Intro • 2 versions; Twitter version: 5.6 and Community: 5.7 • Runs on thousands of production servers • We support it via automation + 5 Engineers
  • 26. MySQL @Twitter - How we use it? 5.6 Twitter Version • Data: ~ PB’s of data • Servers: Thousands of commodity servers across 2 DC’s • QPS: ~ 50M mostly reads
  • 27. MySQL @Twitter - How we use it? 5.7 MySQL Community Version • Clusters: Hundred of clusters (Master/Replica) • Total QPS: ~ 1M r/w • Highest # of replicas: ~ 150 on one cluster • Highest QPS (replica): ~ 20K r/w at peak • Highest QPS (master): ~ 10K r/w at peak • Supports most of Twitter internal services
  • 28. Workloads on MySQL ▪ User Database (UDB) ▪ Social graph workload ▪ Pure flash ▪ Heavily sharded ▪ Automated management ▪ Facebook Messenger ▪ 1B+ people use the application ▪ Petabytes of information
  • 29. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Why migrate to 8.0? • New features (includes 5.7) – Atomic DDL • LOCK TABLE t1 WRITE; RENAME TABLE t1 TO t1_old, t1_new TO t1; – Parallel Replication – Group Replication – Instant Add Column – Protocol X • Reduce efforts to backport from 5.7 to 5.6 – 5.7 InnoDB resizable buffer pool – 5.7 Server sessions – 8.0 Atomic DDL
  • 30. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Agenda 30