MySQL Cluster

<Insert Picture Here>
MySQL
&
MySQL
, MySQL Sales Consulting Manager, Asia Pacific & Japan
Copyright© 2012, Oracle. All rights reserved.
4
The world's most popular open source database
5
Oracle Database and MySQL
Complementary
•  Together Servicing Broader User Needs
•  MySQL Well Suited for Web-based Apps,
Custom Departmental apps and
Embedded apps
•  Users can Benefit by Running MySQL and
Oracle Together
6
MySQL
•  Oracle Linux
•  Oracle VM
•  Oracle GoldenGate
•  Oracle Fusion Middleware
•  Oracle Secure Backup
•  Oracle Database Firewall
•  My Oracle Online Support
8
Certifications in Progress
•  Oracle Fusion Middleware
•  WebCenter Suite
•  Oracle Business Intelligence Suite
•  Oracle Clusterware
•  Oracle Audit Vault
•  Oracle Enterprise Manager
•  And More…
9
Who is Using MySQL – The Top 20 Websites
1.  Google
2.  Facebook
3.  Youtube
4.  Yahoo
5.  Windows Live
6.  Wikipedia
7.  Baidu
8.  Blogger
9.  MSN
10. QQ
11.  Twitter
12. Yahoo JP
13. Google IN
14. Taobao
15. Google DE
16. Google HK
17. Wordpress
18. Amazon.com
19. Google UK
20. Sina
...and many more: Flickr, Second Life, Craigslist, Slashdot,
LiveJournal, Del.icio.us, Pricegrabber.com, Weather.com etc.
10
Alexa - Top Site in Japan (Nov.2011)
1.  Yahoo!Japan
2.  Google JP
3.  FC2
4.  YouTube
5.  Google
6.  Facebook
7. 
8. 
9. 
10. Wikipedia
11.  Amazon JP
12.  goo
13.  Twitter
14. 
15.  mixi
16.  Ameba
17.  MSN
18. 
19.  Blogger.com
20.  Seesaa.net
...
GREE
DMM.com JWord dwango pixiv
SONY Life-X @Nifty
11
MySQL Server
•  Facebook –
8
SNS
MySQL
– 
memcached
• 
• 
• 
(2008 1
→2010 4
)
*
* MySQL
• 
–  1,300
– 
3,700
– 
350
–  440 IOPS
12
Industry Leaders Rely on MySQL
Web & Enterprise
OEM & ISVs
Cloud
13
F5 Networks - Deep Embedded
Big-IP
• 
– 
– 
22,000
–  MySQL 5.1
10
•  PostgreSQL
– 
– 
– 
http://www.mysql.com/why-mysql/case-studies/mysql-cs-f5.php
14
Aadhaar • 
• 
• 
•  2011
• 
OSS
ID
MySQL
1
Hadoop
6,000 ID
3,000
ID
25PB
: http://bit.ly/jxkc80
: http://bit.ly/w4vl9W
15
MySQL Cluster 7.2 GA!!
16
MySQL Cluster
Active-Active
• 
• 
JPA
REST
Application Nodes
Node Group 2
Node 3
F1
F3
F3
F1
Data Nodes
Node 4
Node 2
Cluster
Mgmt
Node 1
Node Group 1
F2
F4
Cluster
Mgmt
F4
F2
17
&
–  SQL & NoSQL
&
&
– 
99.999%
– 
– 
API
18
:
HLR / HSS
,
,
&
• 
•  3ms
• 
,
, VLR
&
=
MySQL Cluster in Action: http://bit.ly/oRI5tF
19
:e
• 
•  e
• 
• 
•  1,000
18,000
• 
• 
• 
,
&
• 
• 
http://mysql.com/customers/view/?id=1080
20
:
• 
• 
• 
• 
• 
• 
• 
• 
• 
• 
&
•  4
MySQL Cluster
Linux
Windows
MySQL User Conference Session: http://bit.ly/ogeid3
21
Geographical Replication
• 
Cluster 1
Cluster 2
• 
•  (MySQL Cluster
MySQL
MyISAM
MEMORY
)
InnoDB
22
MySQL Cluster 7.2
Web
•  70
:
(AQL)
• 
Memcached API
•  MySQL 5.5
• 
• 
VM
• 
• 
/
•  MySQL Cluster Manager 1.1.4
• 
23
1
10
SELECT
/
1,200
1,000
Millions
800
400
200
0
2
4
UPDATE
8
/
–  6
–  x5670
–  48GB RAM
–  Linux
2.93GHz x 2
24
• 
•  flexAsynch
120
100
Millions
8
• 
600
80
–  C++ NoSQL API (NDB API)
60
40
20
0
4
8
24
(AQL)
JOIN
70
• 
mysqld
A
Q
L
mysqld
•  JOIN
• 
•  1
MySQL
• 
• 
• 
• 
!!
25
70
100
90
87.23
80
70
60
50
40
30
20
1.26
10
0
MySQL Cluster 7.1
MySQL Cluster 7.2
•  Web
–  11
–  2,000
33,500
1
19
(JOIN )
26
AQL –
MySQL
http://clusterdb.com/u/70x
2
27
Memcached API
NoSQL API
•  Memcached
•  MySQL + Memcached
• 
New
NoSQL
• 
28
• 
– 
– 
– 
– 
– 
29
Cluster & Memcached –
key
Application view
SQL view
value
<town:maidenhead,SL6>
key
value
<town:maidenhead,SL6>
Key
Value
town:maidenhead
SL6
generic table
30
Cluster & Memcached –
key
Application view
value
<town:maidenhead,SL6>
prefix
SQL view
key
value
<town:maidenhead,SL6>
Prefix
Table
Key-col
Val-col
policy
town
...
code
...
town:
map.zip
town
code
cluster
maidenhead
...
SL6
...
Config tables
map.zip
http://clusterdb.com/u/memcached
31
API
SQL
:
NoSQL
Clients
Native
memcached
JDBC / ODBC
PHP / PERL
Python / Ruby
HTTP/REST
NDB API
Mix
&
Match
• 
• 
• 
• 
SQL:
HTTP / memcached:
Java:
NDB API:
Web
32
•  Oracle VM
• 
– 
– 
– 
– 
33
34
• 
•  DR &
• 
• 
/
• 
35
• 
– 
1
1
2
– 
2
3
• 
4
• 
/
36
MySQL Cluster Manager
&
&
37
MySQL Cluster Manager
: MySQL Cluster 7.0
?
7.2
MySQL Cluster Manager
• 
• 
• 
• 
• 
• 
• 
• 
• 
upgrade cluster --package=7.2 mycluster;
1x
8 x ssh
/
8x
/
4x
- scp
(2 x mgmd & 2 x mysqld)
8x
8x
8x
1x
: 46
2.5
MySQL Cluster Manager
:1
-
• 
– 
-
– 
– 
38
MySQLデータベース
39
MySQL 5.5
• 
–  MySQL DB
–  InnoDB
•  Linux
5.1
360%
•  Windows
5.1
1500%
InnoDB
• 
– 
– 
• 
–  SIGNAL/RESIGNAL
– 
– 
PERFORMANCE_SCHEMA
40
MySQL 5.6:
• 
MySQL
:
&
:
• 
•  InnoDB:
• 
•  NotOnlySQL
:
:
41
MySQL 5.6.4 :
•  LIMIT
•  3
– 40
10
• 
• 
– 15
90
• 
• 
– 2000
10
•  FROM
•  EXPLAIN
240
•  INSERT UPDATE
DELETE
• 
- InnoDB
• 
–8
2
EXPLAIN
42
MySQL 5.6.4 –
BKA
Read
JOIN
MRR + BKA
DBT3 Q3: "Customer Distribution
Query"
MRR + BKA
Buffer Size
43
MySQL 5.6.4:
•  TIME/TIMESTAMP/DATETIME– 1
•  Ipv6
•  Windows
Unicode
• 
• 
•  GIS/MyISAM:
http://dev.mysql.com/downloads/mysql/
44
MySQL
Early Access
-
• 
• 
•  Binlog API
•  Binlog Group Commit
•  NotOnlySQL InnoDB
ID
labs.mysql.com/
45
MySQL
– InnoDB
NotOnlySQL: Memcached API
SQL
NoSQL
MySQL
Memcached
mysqld
MySQL Server
Memcached
InnoDB
•  InnoDB
•  Memcached API
• 
Memcached
•  SQL
•  NotOnlySQL
• 
• 
JOIN FK
SQL
• 
•  mysqld Memcached
• 
labs.mysql.com/
InnoDB API
Memcached
• 
46
MySQL
• 
/
–
SSD
/SaaS/DaaS
• 
– 
–  "Elastic(
sharding /
–
)"
ACL
–
Auto-
/ VM
–  Web
• 
– 
– 
– 
• 
47
<Insert Picture Here>
MySQL
48
MySQL Enterprise Edition
MySQL Database
• 
• 
MySQL Enterprise Backup
• 
• 
MySQL Enterprise Monitor
•  MySQL
•  MySQL Query Analyzer
MySQL Workbench
• 
• 
MySQL Enterprise Security
•  External Authentication
•  LDAP, Kerberos, Windows AD
MySQL Enterprise Scalability
•  Thread Pooling
• 
Oracle Premier Support
•  24x7,
• 
&
MySQL Administration
50
MySQL Enterprise Monitor
• 
• 
MySQL
MySQL
• 
• 
• 
SQL
Query Analyzer
“
MySQL DBA”
51
- MySQL Query Analyzer
• 
MySQL
SQL
•  vmstat
MySQL
OS
SHOW
• 
• 
52
Key Facts on MySQL Support
• 
• SQL&
• 
• 
• 
53
5.5
MySQL Server - GA
7.2
MySQL Cluster - GA
5.6
InnoDB Plugin
(Semi-synchronous)
JOIN
MySQL Server – DMR
NoSQL
54