SlideShare ist ein Scribd-Unternehmen logo
1 von 34
Downloaden Sie, um offline zu lesen
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
Introduction to MySQL
Ted Wennmark, consultant and cluster specialist
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved.
Copyright Š 2014, 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.
2
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
Major milestones in history
• 2001 MySQL 3.23 GA
• 2004 MySQL 4.0 InnoDB new SE
• 2005 MySQL 5.0 GA and Oracle acquired Innobase OY
• 2008 SUN acquired MySQL AB for $1 Billion
• 2010 Oracle acquires SUN
• 2010 MySQL 5.5 GA “InnoDB default”
• 2013 MySQL 5.6 GA “Best release ever”
3
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
Open Source LAMP Stack
Operating
System
Application
Server
Database
Scripting
L
A
M
P
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
World’s Most Popular Open Source Database
• Over 15 million estimated installations
• Used by 9 of top 10 web sites in the world
• Embedded by 8 of the top 10 ISVs
• #1 database in the Cloud
• Integrated w/Hadoop in 80% of Big Data platforms
• Facebook: 175K fans, +35% YoY Growth
• Twitter: 28K followers, +67% YoY Growth
• Numerous Awards: Linux Journal, CRN, PHP Architect...
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
Cloud
Web & Enterprise OEM & ISVs
Industry Leaders Rely on MySQL
6
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
MySQL Powers The Web
Over 500 million Tweets/day. 143,200 Tweets/sec in Aug 2013
”Many petabytes” of data. 11.2 Million Row changes & 2.5 billion
rows read /sec handled in MySQL
6 billion hours of video watched each month
Globally-distributed database with 100 terabytes of user-related
data based on MySQL Cluster
7
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
MySQL Arcitecture
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
MyISAM
• Default Storage Engine before MySQL 5.5
• Table level locking
• Small footprint on disk
• Read Only during backups
• GIS and FTS indexing
9
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
InnoDB
• Default Storage Engine since MySQL 5.5
• ACID compliant transactions, MVCC
• Row level locking
• Clustered primary key index
• Foreign keys and and native partitioning
• Online backup and DDL operations
• SQL and NoSQL access to data
10
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
MySQL Cluster aka NDB
• Clustered database
• ACID compliant
• Row level locking
• Shards data automatically, transparent for application
• Foreign keys and and native partitioning
• Online backup and DDL operations
• SQL and NoSQL access to data
• Max 2TB
11
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
MySQL 5.5
• InnoDB default SE
• InnoDB multiple BP, splitting and removing mutexes
• InnoDB 10X improvemet in InnoDB recovery speed
• Replication semi-synchronous replication
• Replication heartbeat
• Partitioning on more data types and more partition functions
• Performance Schema released
12
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
MySQL 5.6 GA “Best release ever”
• InnoDB scales up to 48 (60) cores
• InnoDB NoSQL access using memcached API
• Optimizer improvements for sub-queries
• Optimizer Explain on all type of statements
• Replication safer and more robust
• Replication multi threaded slaves
• Partition pruning in DML
13
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7 DM
• InnoDB for better transactional throughput, availability, IO
• Security with new encryption functions
• Replication for better scalability and availability
• Fabric for high availability and sharding
• Performance Schema for new and improved performance metrics
• Optimizer for better EXPLAINing, parsing, query performance
• GIS with native InnoDB spatial indexes and Boost.Geometry integration
Available Now! dev.mysql.com/downloads/mysql/
14
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
0
100 000
200 000
300 000
400 000
500 000
600 000
700 000
8 16 32 64 128 256 512 1 024
QueriesperSecond
Connections
MySQL 5.7: Sysbench Read Only (Point Select)
MySQL 5.7
MySQL 5.6
MySQL 5.5
MySQL 5.7: Sysbench Benchmark
Intel(R) Xeon(R) CPU E7-4860 x86_64
4 sockets x 10 cores-HT (80 CPU threads)
2.3 GHz, 512 GB RAM
Oracle Linux 6.5
2x Faster than MySQL 5.6
3x Faster than MySQL 5.5
645,000 QPS
15
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
MySQL Future
Focus on Web, Cloud, Embedded
• Architecture Improvements
– Improved Modularity
– Refactoring Optimizer, Parser, Runtime
• Web Scale Performance & Scalability
– Optimizer Cost Model
– InnoDB & Replication Improvements
• Management & Security
– Data Dictionary
– MySQL Enterprise Encryption
– Oracle Enterprise Manager for MySQL
16
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
MySQL
Replication
MySQL
Fabric
DRBD
Windows/S
olaris/Clust
erware
Clustering
or Oracle
VM
MySQL
Cluster
MySQL HA Solutions
19th February 2015
9 9 . 9 9 9 %
Copyright 2015, Oracle and/or its affiliates. All rights reserved 17
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
Mapping Uptime to Availability
Replicated
Systems
• SPs & Line of
Business
Clustered &
Virtualized
Systems
• Web & Cloud
Services
Shared
Nothing,
Geo-
Replicated
Clusters
• eCommerce,
Telecoms &
Military
19th February 2015
9 9 . 9 9 9 %
Cost&Complexity
Copyright 2015, Oracle and/or its affiliates. All rights reserved 18
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
MySQL Fabric 1.5
• High Availability
– Server monitoring with auto-promotion and
transparent application failover
• Optionally scale-out through sharding
– Application provides shard key
– Range or Hash
– Tools for resharding
– Global updates & tables
• Fabric-aware connectors rather than
proxy: Python, Java, PHP, .NET, C (labs)
– Lower latency, bottleneck-free
• Server provisioning using OpenStack etc.
High Availability + Sharding-Based Scale-out
MySQL Fabric
Connector
Application
Read-slaves
SQL
HA group
Read-slaves
HA group
Connector
Application
19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 19
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 20
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
• Oracle Clusterware unifies servers
in a server farm to form a cluster
– At the core of Oracle RAC
• Oracle Cluster 12c includes MySQL
Server 5.6 agent
• Planned migration and failover of
MySQL database
– Hidden from the application
19th February 2015
MySQL on Oracle Clusterware
21Copyright 2015, Oracle and/or its affiliates. All rights reserved
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
• Native Windows HA clustering with
MySQL
• Quorum (3rd vote), data (InnoDB +
schema) & binaries (optional)
stored in shared storage (iSCSI &
FCAL)
• Loss of service = couple of seconds
+ InnoDB recovery time
• Cluster managed through MS
Failover Cluster Management snap-
in GUI
Windows Server Failover Clustering
App
Virtual IP
Data Bin
Slave App App
Vote
19th February 2015 22Copyright 2015, Oracle and/or its affiliates. All rights reserved
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
• Kernel based heartbeating and
monitoring
• SPARC and x86. Solaris
Virtualization-aware
• MySQL agent included with Oracle
Solaris Cluster
• Learn more:
http://www.oracle.com/technetwo
rk/server-storage/solaris-
cluster/overview/index.html
Oracle Solaris Clustering
19th February 2015 23Copyright 2015, Oracle and/or its affiliates. All rights reserved
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
• Based on distributed storage
– NOT physical shared storage
• Synchronous replication at block
device level eliminates risk of data
loss
• Open source, mature & proven
• Certified and supported by Oracle
Oracle Linux and DRBD Stack
Hosts
Oracle Linux Oracle Linux
Active Standby
Corosync
Pacemaker
Cluster s/w
DRBD DRBD
MySQL MySQL
Application
VIP
sync
Services
19th February 2015 24Copyright 2015, Oracle and/or its affiliates. All rights reserved
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
• Pre-Installed & Pre-Configured
• Full Integration & QA Testing
• Single Point of Support
Oracle VM Template for MySQL
Oracle VM Servers
Oracle VM Server Pool
ocfs2
Oracle VM
Manager
iSCSI / FC-AL
Oracle VM
Secure Live
Migration (SSL)
Oracle VM
Automatic Fault
Detection &
Recovery
19th February 2015 25Copyright 2015, Oracle and/or its affiliates. All rights reserved
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
MySQL Cluster Overview
• Auto-Sharding, Multi-Master
• ACID Compliant, OLTP + Real-Time Analytics
HIGH SCALE, READS +
WRITES
• Shared nothing, no Single Point of Failure
• Self Healing + On-Line Operations
99.999% AVAILABILITY
• In-Memory Optimization + Disk-Data
• Predictable Low-Latency, Bounded Access Time
REAL-TIME
• Key/Value + Complex, Relational Queries
• SQL + Memcached + JavaScript + Java + HTTP/REST & C++
SQL + NoSQL
• Open Source + Commercial Editions
• Commodity hardware + Management, Monitoring Tools
LOW TCO
19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 26
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
MySQL Cluster Architecture
MySQL Cluster Data Nodes
Clients
Application Layer
Data Layer
19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 27
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
MySQL Cluster Scaling
MySQL Cluster Data Nodes
Clients
Application Layer
Data Layer
19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 28
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
MySQL Cluster HA
MySQL Cluster Data Nodes
Clients
Application Layer
Data Layer
19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 29
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
Who’s Using MySQL Cluster?
19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 30
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
Oracle MySQL HA & Scaling Solutions
MySQL
Replication
MySQL
Fabric
Oracle VM
Template
Oracle
Clusterware
Solaris
Cluster
Windows
Cluster
DRBD
MySQL
Cluster
App Auto-Failover ✖ ✔ ✔ ✔ ✔ ✔ ✔ ✔
Data Layer Auto-Failover ✖ ✔ ✔ ✔ ✔ ✔ ✔ ✔
Zero Data Loss MySQL 5.7 MySQL 5.7 ✔ ✔ ✔ ✔ ✔ ✔
Platform Support All All Linux Linux Solaris Windows Linux All
Clustering Mode
Master +
Slaves
Master +
Slaves
Active/Pas
sive
Active/Passi
ve
Active/P
assive
Active/Pas
sive
Active/P
assive
Multi-
Master
Failover Time N/A Secs Secs + Secs + Secs + Secs + Secs + < 1 Sec
Scale-out Reads ✔ ✖ ✖ ✖ ✖ ✖ ✔
Cross-shard operations N/A ✖ N/A N/A N/A N/A N/A ✔
Transparent routing ✖ For HA ✔ ✔ ✔ ✔ ✔ ✔
Shared Nothing ✔ ✔ ✖ ✖ ✖ ✖ ✔ ✔
Storage Engine InnoDB+ InnoDB+ InnoDB+ InnoDB+ InnoDB+ InnoDB+ InnoDB+ NDB
Single Vendor Support ✔ ✔ ✔ ✔ ✔ ✖ ✔ ✔
19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 31
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
Best Choice for Next Generation Web & Cloud Applications
World’s Most Popular Open
Source Database
Leading Open Source
Database for Web
Applications
#1 Open Source Database
in the Cloud
Integrated with Hadoop in
Big Data Platforms
Strong MySQL Momentum
32
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
Getting Started
19th February 2015
MySQL Enterprise Edition
• http://www.mysql.com/news-and-events/web-seminars/why-relying-on-mysql-enterprise-edition/
• http://www.mysql.com/news-and-events/web-seminars/the-mysql-sys-schema/
MySQL Security and Upgrading to 5.6
• http://www.mysql.com/news-and-events/web-seminars/mysql-security-whats-new-in-mysql-5-7-best-practices/
• http://www.mysql.com/news-and-events/web-seminars/upgrading-to-mysql-5-6-best-practices/
MySQL Availability
• http://www.mysql.com/why-mysql/white-papers/#en-22-16
• http://www.mysql.com/news-and-events/on-demand-webinars/#en-20-16
Copyright 2015, Oracle and/or its affiliates. All rights reserved 33
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |
Thank You!
Copyright Š 2014, Oracle and/or its affiliates. All rights reserved.

Weitere ähnliche Inhalte

Was ist angesagt?

What's new in my sql smug
What's new in my sql smugWhat's new in my sql smug
What's new in my sql smug
Ted Wennmark
 

Was ist angesagt? (20)

What's new in my sql smug
What's new in my sql smugWhat's new in my sql smug
What's new in my sql smug
 
MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise Monitor
 
MySQL Performance - Best practices
MySQL Performance - Best practices MySQL Performance - Best practices
MySQL Performance - Best practices
 
MySQL Document Store
MySQL Document StoreMySQL Document Store
MySQL Document Store
 
MySQL Features & Implementation
MySQL Features & ImplementationMySQL Features & Implementation
MySQL Features & Implementation
 
MySQL Community and Commercial Edition
MySQL Community and Commercial EditionMySQL Community and Commercial Edition
MySQL Community and Commercial Edition
 
MySQL Enterprise Backup
MySQL Enterprise BackupMySQL Enterprise Backup
MySQL Enterprise Backup
 
MySQL Security
MySQL SecurityMySQL Security
MySQL Security
 
MySQL Tech Tour 2015 - 5.7 Whats new
MySQL Tech Tour 2015 - 5.7 Whats newMySQL Tech Tour 2015 - 5.7 Whats new
MySQL Tech Tour 2015 - 5.7 Whats new
 
01 upgrade to my sql8
01 upgrade to my sql8 01 upgrade to my sql8
01 upgrade to my sql8
 
My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015
 
MySQL for Software-as-a-Service (SaaS)
MySQL for Software-as-a-Service (SaaS)MySQL for Software-as-a-Service (SaaS)
MySQL for Software-as-a-Service (SaaS)
 
MySQL Day Paris 2016 - Introducing Oracle MySQL Cloud Service
MySQL Day Paris 2016 - Introducing Oracle MySQL Cloud ServiceMySQL Day Paris 2016 - Introducing Oracle MySQL Cloud Service
MySQL Day Paris 2016 - Introducing Oracle MySQL Cloud Service
 
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
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
 
MySQL Tech Tour 2015 - 5.7 Security
MySQL Tech Tour 2015 - 5.7 SecurityMySQL Tech Tour 2015 - 5.7 Security
MySQL Tech Tour 2015 - 5.7 Security
 
MySQL Day Paris 2016 - MySQL Enterprise Edition
MySQL Day Paris 2016 - MySQL Enterprise EditionMySQL Day Paris 2016 - MySQL Enterprise Edition
MySQL Day Paris 2016 - MySQL Enterprise Edition
 
MySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB ClusterMySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB Cluster
 
MySQL NDB Cluster 8.0
MySQL NDB Cluster 8.0MySQL NDB Cluster 8.0
MySQL NDB Cluster 8.0
 
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB ClusterMySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
 

Andere mochten auch

MySql slides (ppt)
MySql slides (ppt)MySql slides (ppt)
MySql slides (ppt)
webhostingguy
 
PosterIT410-2
PosterIT410-2PosterIT410-2
PosterIT410-2
Chanon Luke
 
Mysql1
Mysql1Mysql1
Mysql1
rajikaa
 
Mysql database
Mysql databaseMysql database
Mysql database
mayank78634
 

Andere mochten auch (20)

Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQL
 
Introduction to Mysql
Introduction to MysqlIntroduction to Mysql
Introduction to Mysql
 
MySql slides (ppt)
MySql slides (ppt)MySql slides (ppt)
MySql slides (ppt)
 
PosterIT410-2
PosterIT410-2PosterIT410-2
PosterIT410-2
 
PPT
PPTPPT
PPT
 
Plsql
PlsqlPlsql
Plsql
 
Download It
Download ItDownload It
Download It
 
Mysql
MysqlMysql
Mysql
 
Mysql1
Mysql1Mysql1
Mysql1
 
Mysql Introduction
Mysql IntroductionMysql Introduction
Mysql Introduction
 
MySQL clients
MySQL clientsMySQL clients
MySQL clients
 
MySQL lecture
MySQL lectureMySQL lecture
MySQL lecture
 
Mysql database
Mysql databaseMysql database
Mysql database
 
MySQL Sandbox 3
MySQL Sandbox 3MySQL Sandbox 3
MySQL Sandbox 3
 
An introduction to MySQL
An introduction to MySQLAn introduction to MySQL
An introduction to MySQL
 
BITS: Introduction to relational databases and MySQL - SQL
BITS: Introduction to relational databases and MySQL - SQLBITS: Introduction to relational databases and MySQL - SQL
BITS: Introduction to relational databases and MySQL - SQL
 
Mysql an introduction
Mysql an introductionMysql an introduction
Mysql an introduction
 
MySQL Introduction
MySQL IntroductionMySQL Introduction
MySQL Introduction
 
MYSQL.ppt
MYSQL.pptMYSQL.ppt
MYSQL.ppt
 
MySQL
MySQLMySQL
MySQL
 

Ähnlich wie Introduction to MySQL

Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Manuel Contreras
 
Oracle Cloud DBaaS
Oracle Cloud DBaaSOracle Cloud DBaaS
Oracle Cloud DBaaS
Arush Jain
 

Ähnlich wie Introduction to MySQL (20)

MySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL London Tech Tour March 2015 - Embedded Database of ChoiceMySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL London Tech Tour March 2015 - Embedded Database of Choice
 
MySQL Fabric - High Availability & Automated Sharding for MySQL
MySQL Fabric - High Availability & Automated Sharding for MySQLMySQL Fabric - High Availability & Automated Sharding for MySQL
MySQL Fabric - High Availability & Automated Sharding for MySQL
 
MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL & Oracle Linux Keynote at Open Source India 2014MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL & Oracle Linux Keynote at Open Source India 2014
 
MySQL Cluster as Transactional NoSQL (KVS)
MySQL Cluster as Transactional NoSQL (KVS)MySQL Cluster as Transactional NoSQL (KVS)
MySQL Cluster as Transactional NoSQL (KVS)
 
MySQL Fabric
MySQL FabricMySQL Fabric
MySQL Fabric
 
1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan
 
20140722 Taiwan MySQL User Group Meeting Tech Updates
20140722 Taiwan MySQL User Group Meeting Tech Updates20140722 Taiwan MySQL User Group Meeting Tech Updates
20140722 Taiwan MySQL User Group Meeting Tech Updates
 
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
 
Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster
 
MySQL Enterprise Portfolio
MySQL Enterprise PortfolioMySQL Enterprise Portfolio
MySQL Enterprise Portfolio
 
My sql en la nube conoce las mejores prĂĄcticas en administraciĂłn y operaciĂłn_...
My sql en la nube conoce las mejores prĂĄcticas en administraciĂłn y operaciĂłn_...My sql en la nube conoce las mejores prĂĄcticas en administraciĂłn y operaciĂłn_...
My sql en la nube conoce las mejores prĂĄcticas en administraciĂłn y operaciĂłn_...
 
MySQL Intro JSON NoSQL
MySQL Intro JSON NoSQLMySQL Intro JSON NoSQL
MySQL Intro JSON NoSQL
 
Using MySQL in the Cloud
Using MySQL in the CloudUsing MySQL in the Cloud
Using MySQL in the Cloud
 
MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)
MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)
MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)
 
Oracle database in cloud, dr in cloud and overview of oracle database 18c
Oracle database in cloud, dr in cloud and overview of oracle database 18cOracle database in cloud, dr in cloud and overview of oracle database 18c
Oracle database in cloud, dr in cloud and overview of oracle database 18c
 
Oracle Database Cloud Service
Oracle Database Cloud ServiceOracle Database Cloud Service
Oracle Database Cloud Service
 
Oracle Cloud DBaaS
Oracle Cloud DBaaSOracle Cloud DBaaS
Oracle Cloud DBaaS
 
20141011 my sql clusterv01pptx
20141011 my sql clusterv01pptx20141011 my sql clusterv01pptx
20141011 my sql clusterv01pptx
 
Netherlands Tech Tour 02 - MySQL Fabric
Netherlands Tech Tour 02 -   MySQL FabricNetherlands Tech Tour 02 -   MySQL Fabric
Netherlands Tech Tour 02 - MySQL Fabric
 
Oracle Enterprise Manager for MySQL
Oracle Enterprise Manager for MySQLOracle Enterprise Manager for MySQL
Oracle Enterprise Manager for MySQL
 

Mehr von Ted Wennmark

Mehr von Ted Wennmark (6)

Upgrade to MySQL 8.0!
Upgrade to MySQL 8.0!Upgrade to MySQL 8.0!
Upgrade to MySQL 8.0!
 
MySQL as a Document Store
MySQL as a Document StoreMySQL as a Document Store
MySQL as a Document Store
 
Upgrade to MySQL 5.7 and latest news planned for MySQL 8
Upgrade to MySQL 5.7 and latest news planned for MySQL 8Upgrade to MySQL 5.7 and latest news planned for MySQL 8
Upgrade to MySQL 5.7 and latest news planned for MySQL 8
 
The MySQL Performance Schema & New SYS Schema
The MySQL Performance Schema & New SYS SchemaThe MySQL Performance Schema & New SYS Schema
The MySQL Performance Schema & New SYS Schema
 
MySQL@king
MySQL@kingMySQL@king
MySQL@king
 
NoSQL and MySQL
NoSQL and MySQLNoSQL and MySQL
NoSQL and MySQL
 

KĂźrzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

KĂźrzlich hochgeladen (20)

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
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...
 
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
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 

Introduction to MySQL

  • 1. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | Introduction to MySQL Ted Wennmark, consultant and cluster specialist Copyright Š 2014, Oracle and/or its affiliates. All rights reserved.
  • 2. Copyright Š 2014, 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. 2
  • 3. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | Major milestones in history • 2001 MySQL 3.23 GA • 2004 MySQL 4.0 InnoDB new SE • 2005 MySQL 5.0 GA and Oracle acquired Innobase OY • 2008 SUN acquired MySQL AB for $1 Billion • 2010 Oracle acquires SUN • 2010 MySQL 5.5 GA “InnoDB default” • 2013 MySQL 5.6 GA “Best release ever” 3
  • 4. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | Open Source LAMP Stack Operating System Application Server Database Scripting L A M P
  • 5. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | World’s Most Popular Open Source Database • Over 15 million estimated installations • Used by 9 of top 10 web sites in the world • Embedded by 8 of the top 10 ISVs • #1 database in the Cloud • Integrated w/Hadoop in 80% of Big Data platforms • Facebook: 175K fans, +35% YoY Growth • Twitter: 28K followers, +67% YoY Growth • Numerous Awards: Linux Journal, CRN, PHP Architect...
  • 6. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | Cloud Web & Enterprise OEM & ISVs Industry Leaders Rely on MySQL 6
  • 7. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | MySQL Powers The Web Over 500 million Tweets/day. 143,200 Tweets/sec in Aug 2013 ”Many petabytes” of data. 11.2 Million Row changes & 2.5 billion rows read /sec handled in MySQL 6 billion hours of video watched each month Globally-distributed database with 100 terabytes of user-related data based on MySQL Cluster 7
  • 8. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | MySQL Arcitecture
  • 9. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | MyISAM • Default Storage Engine before MySQL 5.5 • Table level locking • Small footprint on disk • Read Only during backups • GIS and FTS indexing 9
  • 10. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | InnoDB • Default Storage Engine since MySQL 5.5 • ACID compliant transactions, MVCC • Row level locking • Clustered primary key index • Foreign keys and and native partitioning • Online backup and DDL operations • SQL and NoSQL access to data 10
  • 11. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | MySQL Cluster aka NDB • Clustered database • ACID compliant • Row level locking • Shards data automatically, transparent for application • Foreign keys and and native partitioning • Online backup and DDL operations • SQL and NoSQL access to data • Max 2TB 11
  • 12. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | MySQL 5.5 • InnoDB default SE • InnoDB multiple BP, splitting and removing mutexes • InnoDB 10X improvemet in InnoDB recovery speed • Replication semi-synchronous replication • Replication heartbeat • Partitioning on more data types and more partition functions • Performance Schema released 12
  • 13. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | MySQL 5.6 GA “Best release ever” • InnoDB scales up to 48 (60) cores • InnoDB NoSQL access using memcached API • Optimizer improvements for sub-queries • Optimizer Explain on all type of statements • Replication safer and more robust • Replication multi threaded slaves • Partition pruning in DML 13
  • 14. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | MySQL 5.7 DM • InnoDB for better transactional throughput, availability, IO • Security with new encryption functions • Replication for better scalability and availability • Fabric for high availability and sharding • Performance Schema for new and improved performance metrics • Optimizer for better EXPLAINing, parsing, query performance • GIS with native InnoDB spatial indexes and Boost.Geometry integration Available Now! dev.mysql.com/downloads/mysql/ 14
  • 15. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | 0 100 000 200 000 300 000 400 000 500 000 600 000 700 000 8 16 32 64 128 256 512 1 024 QueriesperSecond Connections MySQL 5.7: Sysbench Read Only (Point Select) MySQL 5.7 MySQL 5.6 MySQL 5.5 MySQL 5.7: Sysbench Benchmark Intel(R) Xeon(R) CPU E7-4860 x86_64 4 sockets x 10 cores-HT (80 CPU threads) 2.3 GHz, 512 GB RAM Oracle Linux 6.5 2x Faster than MySQL 5.6 3x Faster than MySQL 5.5 645,000 QPS 15
  • 16. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | MySQL Future Focus on Web, Cloud, Embedded • Architecture Improvements – Improved Modularity – Refactoring Optimizer, Parser, Runtime • Web Scale Performance & Scalability – Optimizer Cost Model – InnoDB & Replication Improvements • Management & Security – Data Dictionary – MySQL Enterprise Encryption – Oracle Enterprise Manager for MySQL 16
  • 17. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | MySQL Replication MySQL Fabric DRBD Windows/S olaris/Clust erware Clustering or Oracle VM MySQL Cluster MySQL HA Solutions 19th February 2015 9 9 . 9 9 9 % Copyright 2015, Oracle and/or its affiliates. All rights reserved 17
  • 18. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | Mapping Uptime to Availability Replicated Systems • SPs & Line of Business Clustered & Virtualized Systems • Web & Cloud Services Shared Nothing, Geo- Replicated Clusters • eCommerce, Telecoms & Military 19th February 2015 9 9 . 9 9 9 % Cost&Complexity Copyright 2015, Oracle and/or its affiliates. All rights reserved 18
  • 19. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | MySQL Fabric 1.5 • High Availability – Server monitoring with auto-promotion and transparent application failover • Optionally scale-out through sharding – Application provides shard key – Range or Hash – Tools for resharding – Global updates & tables • Fabric-aware connectors rather than proxy: Python, Java, PHP, .NET, C (labs) – Lower latency, bottleneck-free • Server provisioning using OpenStack etc. High Availability + Sharding-Based Scale-out MySQL Fabric Connector Application Read-slaves SQL HA group Read-slaves HA group Connector Application 19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 19
  • 20. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. |19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 20
  • 21. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | • Oracle Clusterware unifies servers in a server farm to form a cluster – At the core of Oracle RAC • Oracle Cluster 12c includes MySQL Server 5.6 agent • Planned migration and failover of MySQL database – Hidden from the application 19th February 2015 MySQL on Oracle Clusterware 21Copyright 2015, Oracle and/or its affiliates. All rights reserved
  • 22. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | • Native Windows HA clustering with MySQL • Quorum (3rd vote), data (InnoDB + schema) & binaries (optional) stored in shared storage (iSCSI & FCAL) • Loss of service = couple of seconds + InnoDB recovery time • Cluster managed through MS Failover Cluster Management snap- in GUI Windows Server Failover Clustering App Virtual IP Data Bin Slave App App Vote 19th February 2015 22Copyright 2015, Oracle and/or its affiliates. All rights reserved
  • 23. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | • Kernel based heartbeating and monitoring • SPARC and x86. Solaris Virtualization-aware • MySQL agent included with Oracle Solaris Cluster • Learn more: http://www.oracle.com/technetwo rk/server-storage/solaris- cluster/overview/index.html Oracle Solaris Clustering 19th February 2015 23Copyright 2015, Oracle and/or its affiliates. All rights reserved
  • 24. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | • Based on distributed storage – NOT physical shared storage • Synchronous replication at block device level eliminates risk of data loss • Open source, mature & proven • Certified and supported by Oracle Oracle Linux and DRBD Stack Hosts Oracle Linux Oracle Linux Active Standby Corosync Pacemaker Cluster s/w DRBD DRBD MySQL MySQL Application VIP sync Services 19th February 2015 24Copyright 2015, Oracle and/or its affiliates. All rights reserved
  • 25. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | • Pre-Installed & Pre-Configured • Full Integration & QA Testing • Single Point of Support Oracle VM Template for MySQL Oracle VM Servers Oracle VM Server Pool ocfs2 Oracle VM Manager iSCSI / FC-AL Oracle VM Secure Live Migration (SSL) Oracle VM Automatic Fault Detection & Recovery 19th February 2015 25Copyright 2015, Oracle and/or its affiliates. All rights reserved
  • 26. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | MySQL Cluster Overview • Auto-Sharding, Multi-Master • ACID Compliant, OLTP + Real-Time Analytics HIGH SCALE, READS + WRITES • Shared nothing, no Single Point of Failure • Self Healing + On-Line Operations 99.999% AVAILABILITY • In-Memory Optimization + Disk-Data • Predictable Low-Latency, Bounded Access Time REAL-TIME • Key/Value + Complex, Relational Queries • SQL + Memcached + JavaScript + Java + HTTP/REST & C++ SQL + NoSQL • Open Source + Commercial Editions • Commodity hardware + Management, Monitoring Tools LOW TCO 19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 26
  • 27. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | MySQL Cluster Architecture MySQL Cluster Data Nodes Clients Application Layer Data Layer 19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 27
  • 28. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | MySQL Cluster Scaling MySQL Cluster Data Nodes Clients Application Layer Data Layer 19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 28
  • 29. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | MySQL Cluster HA MySQL Cluster Data Nodes Clients Application Layer Data Layer 19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 29
  • 30. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | Who’s Using MySQL Cluster? 19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 30
  • 31. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | Oracle MySQL HA & Scaling Solutions MySQL Replication MySQL Fabric Oracle VM Template Oracle Clusterware Solaris Cluster Windows Cluster DRBD MySQL Cluster App Auto-Failover ✖ ✔ ✔ ✔ ✔ ✔ ✔ ✔ Data Layer Auto-Failover ✖ ✔ ✔ ✔ ✔ ✔ ✔ ✔ Zero Data Loss MySQL 5.7 MySQL 5.7 ✔ ✔ ✔ ✔ ✔ ✔ Platform Support All All Linux Linux Solaris Windows Linux All Clustering Mode Master + Slaves Master + Slaves Active/Pas sive Active/Passi ve Active/P assive Active/Pas sive Active/P assive Multi- Master Failover Time N/A Secs Secs + Secs + Secs + Secs + Secs + < 1 Sec Scale-out Reads ✔ ✖ ✖ ✖ ✖ ✖ ✔ Cross-shard operations N/A ✖ N/A N/A N/A N/A N/A ✔ Transparent routing ✖ For HA ✔ ✔ ✔ ✔ ✔ ✔ Shared Nothing ✔ ✔ ✖ ✖ ✖ ✖ ✔ ✔ Storage Engine InnoDB+ InnoDB+ InnoDB+ InnoDB+ InnoDB+ InnoDB+ InnoDB+ NDB Single Vendor Support ✔ ✔ ✔ ✔ ✔ ✖ ✔ ✔ 19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 31
  • 32. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | Best Choice for Next Generation Web & Cloud Applications World’s Most Popular Open Source Database Leading Open Source Database for Web Applications #1 Open Source Database in the Cloud Integrated with Hadoop in Big Data Platforms Strong MySQL Momentum 32
  • 33. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | Getting Started 19th February 2015 MySQL Enterprise Edition • http://www.mysql.com/news-and-events/web-seminars/why-relying-on-mysql-enterprise-edition/ • http://www.mysql.com/news-and-events/web-seminars/the-mysql-sys-schema/ MySQL Security and Upgrading to 5.6 • http://www.mysql.com/news-and-events/web-seminars/mysql-security-whats-new-in-mysql-5-7-best-practices/ • http://www.mysql.com/news-and-events/web-seminars/upgrading-to-mysql-5-6-best-practices/ MySQL Availability • http://www.mysql.com/why-mysql/white-papers/#en-22-16 • http://www.mysql.com/news-and-events/on-demand-webinars/#en-20-16 Copyright 2015, Oracle and/or its affiliates. All rights reserved 33
  • 34. Copyright Š 2014, Oracle and/or its affiliates. All rights reserved. | Thank You! Copyright Š 2014, Oracle and/or its affiliates. All rights reserved.