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.