mysql cluster web e wp 067589
TRANSCRIPT
-
8/2/2019 Mysql Cluster Web e Wp 067589
1/32
!
An Oracle White Paper
April 2010
MySQL Cluster for Web and E-CommerceApplications: Growing Revenues andEnhancing Customer Loyalty
-
8/2/2019 Mysql Cluster Web e Wp 067589
2/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
Introduction ......................................................................................... 13
4
7
9
9
911
12
13
14
15
17
19
19
21
21
21
22
22
24
25
26
The Increasing Demands of Web and E-Commerce Applications...... Using Databases to Achieve High Availability and Scalability.........
Introducing the MySQL Cluster Carrier Grade Edition Database........ Identifying Target Applications for MySQL Cluster .........................
Use Cases for MySQL Cluster in Web and E-Commerce Applications MySQL Cluster for E-Commerce Applications................................ MySQL Cluster for Social Networking Applications ...................... MySQL Cluster for Online Content Delivery.................................. MySQL Cluster for Service Access, Authorization,and Monetization...........................................................................
Advantages of MySQL Cluster for Web and E-CommerceApplications......................................................................................
Achieving High Availability with MySQL Cluster............................ Achieving High Performance and Linear Scalability withMySQL Cluster.............................................................................. Flexible Data Access..................................................................... Simplified Management and Monitoring........................................
Complementary MySQL Technologies for Web and E-CommerceApplications.......................................................................................
Using the MySQL Pluggable Storage Engine Architecture toMeet Diverse Application Needs ................................................... Using MySQL Clusters Flexible Replication for Online
Applications................................................................................... MySQL Cluster Case Studies in Web and E-Commerce
Applications....................................................................................... E-Commerce Case Study 1: Shopatron........................................ E-Commerce Case Study 2: Leading European Online MailOrder Company............................................................................. Social Networking Case Study: Zillow.com................................... Online Content Delivery Case Study: kurier.at..............................
-
8/2/2019 Mysql Cluster Web e Wp 067589
3/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
Service Access and Authorization Case Study: Bredbandsbolaget(B2)/Telenor .................................................................................. 26
27
27
Conclusion ........................................................................................ Appendix A: Additional Resources....................................................
-
8/2/2019 Mysql Cluster Web e Wp 067589
4/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
Introduction
As organizations bring more of their operations to the Web, from e-commerce storefronts to
content delivery services and user collaboration, the pressure to keep systems running
continuously has never been higher. Services must be delivered with the highest and most
predictable levels of availability and performance, sustained even under the heaviest peak
loads, to ensure a quality customer experience and to cement loyalty.
The most successful businesses built on the Web live on the principle of failing fast, scaling
fast. This principle dictates that the operational environment will be a key differentiator in the
success of service adoption and monetization over the Web. Services are required to fail over
and scale transparently without any disruption to the consumer. The ability to handle explosive
growth in user volume, transactions, and storage capacity is critical to delivering online
services over a Web-based platform.
For many online applications such as e-commerce, information and access to it forms not onlythe infrastructure of the application but also the entire revenue model of the business. With the
emergence of highly participative Web 2.0 technologies, new generations of online
applications are dependent on having fast and constantly available access to data. Such data
enables the online experience of users to reflect, in real time, their own preferences, history,
and requirements as well as ensuring a seamless and reliable experience as services are
consumed and transactions are committed over the Web.
MySQL offers a range of technologies to deliver high availability (HA) and scalability, and one
that has become increasingly relevant to specific use cases in Web and e-commerce
applications is the MySQL Cluster database.
MySQL Cluster Carrier Grade Edition has proven itself as the HA database of choice for
mission-critical telecommunications applications where 99.999 percent availability and
real-time performance are key requirements. MySQL Cluster is now seeing rapid adoption by
1
-
8/2/2019 Mysql Cluster Web e Wp 067589
5/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
providers of Web applications and services in areas such as e-commerce, social networking,
content delivery, and real-time data analytics. These services demand databases
characterized by their ability to support
! 99.999 percent availability to minimize both planned and unplanned downtime
!
Extreme levels of real-time read/write performance with predictable ultralow-latencyresponse times
! Dynamic scalability to handle the most-unpredictable volumes of users and transactions
The purpose of this white paper is to explore the increasing demands being placed on
databases to support Web and e-commerce applications. It presents an overview of the
MySQL Cluster database, demonstrating capabilities designed to meet the needs described
above. It also discusses sample workloads and real-world use cases, enabling you to
understand the types of Web applications that benefit from the use of MySQL Cluster.
2
-
8/2/2019 Mysql Cluster Web e Wp 067589
6/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
The Increasing Demands of Web and E-Commerce Applications
"#$!%&'$()!*+#!,&-',&./!*0&!1$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!(#.*!$&8&%6&:!
J3$&-*!$&8&%6&!(#..!'$3.3%7!4$#2!*0&!3%'53(3*)!*#!1$#-&..!#$,&$.!3.!#%()!#%&!'.1&-*!#4!*0&!*#*'(!$&8&%6&!
321'-*!-'6.&,!5)!.).*&2.!,#+%*32&:!B#!7'3%!'!-#21(&*&!13-*6$&/!3*!3.!'(.#!%&-&..'$)!*#!-#%.3,&$!*0&!
4#((#+3%7!4'-*#$.K!
! J'2'7&!*#!*0&!5$'%,!32'7&!!
! A21'-*!#%!-6.*#2&$!$&('*3#%.031./!.'*3.4'-*3#%/!'%,!(#)'(*)!!
! C#..!3%!&21(#)&&!1$#,6-*383*)!!
! L#*&%*3'(!$&76('*#$)!3..6&.!34!-6.*#2&$!#$!43%'%-3'(!,'*'!3.!-#$$61*&,!#$!(#.*!!
B#!,&(38&$!'!0370()!'8'3('5(&!9&5?5'.&,!.&$83-&/!'%!#$7'%3M'*3#%!26.*!-#%.3,&$!26(*31(&!4'-*#$.!,6$3%7!
*&-0%#(#7)!.&(&-*3#%K!!
!!
!E5(#7:,..,'*'-&%*&$:-#2NOHHPNHQNEQN'?1$'72'*3-?83&+?#4?,#+%*32&?-#.*!
3
-
8/2/2019 Mysql Cluster Web e Wp 067589
7/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
! >53(3*)!*#!23%323M&!5#*0!1('%%&,!'%,!6%1('%%&,!,#+%*32&!!
! A%.*'%*!,&*&-*3#%!#4!4'3(6$&!&8&%*.!!
! "'.*!.).*&2!$&-#8&$)!!
! ;370!*0$#67016*!'%,!.-'('53(3*)/!+3*0!-#%.3.*&%*()!.0#$*!$&.1#%.&!*32&.!!
=%()!+0&%!'((!*0&.&!4'-*#$.!'$&!-#%.3,&$&,!3.!3*!1#..35(&!*#!.&(&-*!*&-0%#(#73&.!*0'*!-'%!'-03&8&!*0&!
(&8&(.!#4!61*32&!'%,!1&$4#$2'%-&!,&2'%,&,!5)!9&5!'%,!&?-#22&$-&!'11(3-'*3#%.:!!
"376$&!E!1(#*.!'8'3('53(3*)!2&'.6$&.!&R1$&..&,!'.!1&$-&%*'7&.!'7'3%.*!$&'(?+#$(,!,#+%*32&!&R1&$3&%-&,!
5)!6.&$.K!!
!
Figure 1. This chart maps availability against downtime.
S8&%!0370&$!(&8&(.!#4!'8'3('53(3*)!'$&!1#..35(&!+3*0!1$#1$3&*'$)!.).*&2./!.6-0!'.!.&$8&$.!'%,!-6.*#2!
23,,(&+'$&/!*0'*!1$#83,&!46((!4'6(*!*#(&$'%-&/!56*!*0&!-#.*!'%,!-#21(&R3*)!#4!321(&2&%*3%7!.6-0!
.#(6*3#%.!#4*&%!1$#8&!*#!#6*+&370!'%)!1#..35(&!56.3%&..!5&%&43*.:!!
A%!.622'$)/!'%!3%4$'.*$6-*6$&!*0'*!,&(38&$.!&R*$&2&!(&8&(.!#4!'8'3('53(3*)!'%,!.-'('53(3*)!+3*0!
3%.*'%*'%.!$&.1#%.&!'%,!(#+!-#.*!1$#83,&.!'!-#21&((3%7!56.3%&..!,344&$&%*3'*3#%!4#$!'%!#%(3%&!
56.3%&..:!!
Using Databases to Achieve High Availability and Scalability
90&*0&$!)#6T$&!$'-3%7!*#!3%*$#,6-&!'!%&+!.&$83-&!#$!*$)3%7!*#!2'%'7&!'%!'8'('%-0&!#4!,'*'!3%!$&'(!*32&/!
)#6$!,'*'5'.&!0'.!*#!5&!.-'('5(&/!4'.*/!'%,!0370()!'8'3('5(&!*#!0'%,(&!&8&$?-0'%73%7!2'$D&*!-#%,3*3#%.!
'%,!,&2'%,3%7!-6.*#2&$!$&U63$&2&%*.:!!
4
-
8/2/2019 Mysql Cluster Web e Wp 067589
8/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
>!,'*'5'.&!,&.37%&,!4#$!9&5?5'.&,!'11(3-'*3#%.!.6-0!'.!&?-#22&$-&!26.*!.611#$*!'!$&'(?*32&!(38&!,'*'!
&R1&$3&%-&:!A*!26.*!5&!'5(&!*#!-#61(&!*0&!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ROM UNPLANNED DOWNTIME
PLANNED DOWNTIME UNPLANNED DOWNTIME
Hardware upgrades Hardware component failure
Software upgrades Software bugs and crashes
Bug fixes Operator error and malicious code
Backup routines Datacenter failure (physical disaster)
!
B#!-$&'*&!'%!;>!&%83$#%2&%*!4#$!9&5?5'.&,!'11(3-'*3#%./!3*!3.!321#$*'%*!*#!.&(&-*!#%()!*0#.&!
,'*'5'.&.!*0'*!'$&!,&.37%&,!*#!23%323M&!5#*0!1('%%&,!'%,!6%1('%%&,!,#+%*32&:!!
V#253%3%7!*&-0%#(#73&.!.6-0!'.!-(6.*&$3%7/!$&,6%,'%-)/!#%(3%&!#1&$'*3#%./!'%,!7$'103-!$&1(3-'*3#%!
-'%!&%'5(&!'11(3-'*3#%.!*#!2&&*!W'%,!#4*&%!&R-&&,X!PP:PPP!1&$-&%*!'8'3('53(3*)/!*#*'(3%7!Y6.*!438&!23%6*&.!
#4!,#+%*32&!1&$!)&'$/!5)!23%323M3%7!5#*0!1('%%&,!'%,!6%1('%%&,!,#+%*32&:!!
Fast Failover and Recovery
B0&!7#'(!#4!'%)!*&-0%#(#7)!6.&,!*#!2'R323M&!.).*&2!61*32&!26.*!5&!*#!3%.*'%*()!,&*&-*!4'3(6$&.!'%,!
*0&%!4'3(!#8&$!*#!-(6.*&$&,!.).*&2./!*)13-'(()!3%!(&..!*0'%!#%&!.&-#%,/!'%,!*0&%!-#%*3%6&!,&(38&$3%7!
.&$83-&.!'%,!1$#-&..3%7!*$'%.'-*3#%.!+3*0#6*!'%)!321'-*!#%!*0&!6.&$:!Z6(*323%6*&!4'3(#8&$!*32&.!-'%%#*!
5&!*#(&$'*&,!5)!'11(3-'*3#%.!.6-0!'.!&?-#22&$-&!.*#$&4$#%*.!'%,!1')2&%*!1$#-&..3%7!&%73%&.:!!
5
-
8/2/2019 Mysql Cluster Web e Wp 067589
9/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
J'*'5'.&!$&-#8&$)!3.!'%#*0&$!&(&2&%*!*0'*!3.!-$3*3-'(!3%!,&(38&$3%7!;>:!A*!3.!'((!8&$)!+&((!*#!&%.6$&!*0'*!
*0&!#%(3%&!'11(3-'*3#%!-#%*3%6&.!*#!1$#83,&!.&$83-&.!3%!*0&!&8&%*!#4!'!4'3(6$&!#$!'!2'3%*&%'%-&!
#1&$'*3#%/!56*!34!*0&!$&2'3%3%7!'-*38&!.).*&2!3.!6%'5(&!*#!.6.*'3%!23((3.&-#%,!$&.1#%.&!*32&.!'%,!
2'%'7&!0370!*0$#67016*/!*0&!#$373%'(!#5Y&-*38&.!#4!,&.37%3%7!4#$!;>!'$&!-#21$#23.&,:!!
"#$!*03.!$&'.#%/!3*!3.!321#$*'%*!*#!.&(&-*!,'*'5'.&.!*0'*!&%'5(&!&3*0&$!$&1('-&2&%*!.).*&2.!#$!$&-#8&$&,!
.).*&2.!*#!U63-D()!$&Y#3%!'%,!$&.)%-0$#%3M&!+3*0!*0&!'-*38&!,'*'5'.&!-(6.*&$!.#!*0'*!%#$2'(!.).*&2!
$&.#6$-&!(&8&(.!'$&!$&?&.*'5(3.0&,!*#!2&&*!*0&!1&$4#$2'%-&!$&U63$&2&%*.!#4!*0&!.&$83-&:!J'*'5'.&!
$&-#8&$)!'(.#!%&&,.!*#!5&!'6*#2'*3-/!+3*0#6*!$&U63$3%7!2'%6'(!3%*&$8&%*3#%!5)!',23%3.*$'*#$.!#$!
-#21(&R!1$#7$'223%7!(#73-!&25&,,&,!3%!*0&!'11(3-'*3#%.:!!
!
We have experienced two instances of hardware failure over the past couple of years. MySQL Cluster was able to instantly fail
over, avoiding any service interruption to our users. When we added replacement hardware, MySQL automatically
resynchronized it with the rest of the cluster, with no intervention from my team. It is an awesome technology.
Dave Dalrymple, VP Engineering, Shopatron Inc.
Performance
>.!+3*0!'8'3('53(3*)/!*0&$&!'$&!26(*31(&!,32&%.3#%.!*#!'-03&83%7!0370!1&$4#$2'%-&!#4!9&5!'%,!
&?-#22&$-&!'11(3-'*3#%.:!!
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&!
-6.*#2&$!.'*3.4'-*3#%/!$&.6(*3%7!3%!0370&$!(#)'(*)!'%,!$&8&%6&:!!
Scalability
A*!3.!321#..35(&!*#!1$&,3-*!0#+!.6--&..46(!'!%&+!#%(3%&!.&$83-&!-'%!5&-#2&:!>!.&$83-&!*0'*!.*'$*.!#6*!
'11&'(3%7!*#!.&8&$'(!06%,$&,!6.&$.!-'%!U63-D()!.13$'(!*#!'**$'-*!23((3#%.!#4!#%(3%&!,&8#*&&.!*0$#670!*0&!
3%-$&'.3%7()!83$'(!%'*6$&!#4!-#226%3-'*3#%.!&%'5(&,!5)!9&5!O:H!*&-0%#(#73&.:![323('$()/!&?-#22&$-&!
'11(3-'*3#%.!2')!.*'$*!5)!#44&$3%7!Y6.*!'!4&+!1$#,6-*.!4#$!.'(&!#%(3%&/!56*!$'13,!&R1'%.3#%.!#4!1$#,6-*!
6
-
8/2/2019 Mysql Cluster Web e Wp 067589
10/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
-'*'(#7.!'%,!$&-#22&%,'*3#%./!1$3-3%7!1$#2#*3#%./!'%,!6.&$!',#1*3#%!-'%!$&U63$&!*0&!&%83$#%2&%*!*#!
.-'(&!$'13,()!*#!.611#$*!3%-$&'.3%7!.'(&.!8#(62&.:!!
Scaling Out
A%!*$',3*3#%'(!&%*&$1$3.&!AB!&%83$#%2&%*./!.-'(3%7!+'.!'-03&8&,!5)!,&1(#)2&%*!#4!'11(3-'*3#%.!'%,!
,'*'5'.&.!*#!('$7&$!.)22&*$3-!26(*31$#-&..3%7!W[ZLX!.&$8&$./!56*!3*!0'.!(#%7!5&&%!6%,&$.*##,!*0'*!.6-0!
'!,&.37%!'11$#'-0!3.!-#21(&*&()!3%'11$#1$3'*&!4#$!.-'(3%7!9&5?5'.&,!'11(3-'*3#%.:!B0&!-#.*!#4!.6-0!
.#(6*3#%./!-#61(&,!+3*0!*0&3$!3%'53(3*)!*#!&8&$!.-'(&!.6443-3&%*()!*#!0'%,(&!&R1(#,3%7!9&5!8#(62&./!0'.!
,$38&%!*0&!$3.&!#4!\.-'(&?#6*]!'$-03*&-*6$&./!+0&$&!*0&!1$#-&..3%7!'%,!,'*'5'.&!(#',!3.!,&1(#)&,!'%,!
.-'(&,!#8&$!(#+?-#.*!-#22#,3*)!.&$8&$.:!!
B#!'-03&8&!&443-3&%*!(&8&(.!#4!.-'('53(3*)/!3*!3.!*0&$&4#$&!%&-&..'$)!*#!.&(&-*!,'*'5'.&.!*0'*!-'%!5&!
,3.*$356*&,!'-$#..!26(*31(&!.).*&2.!*#!0'%,(&!*0&!$'13,!3%-$&'.&.!3%!-'1'-3*)!'%,!1&$4#$2'%-&!
,&2'%,&,!5)!#%(3%&!.).*&2.:!S8&%!4#$!.-'(3%7!'-$#..!2'%)!.).*&2./!3*!3.!'(.#!-$3*3-'(!*0'*!*0&!
6%,&$()3%7!,'*'5'.&!-'%!-#%*3%6&!*#!.611#$*!*0&!8&$)!0370!(&8&(.!#4!+$3*&!.-'('53(3*)!,&2'%,&,!5)!*0&!
'11(3-'*3#%:!!
!
Weve always known that our capacity to handle rapid Web traffic growth would be critical to the success of Zillow. We selected
MySQL Cluster as a low-cost, high-throughput database with easy scalabilityand it has delivered. MySQL Cluster has
enabled us to manage our growth smoothly and cost-effectively and intelligently plan for future expansion.
Brian Milnes, Director of IT Operations, Zillow.com
Scaling Up
@&-&%*!',8'%-&.!3%!23-$#1$#-&..#$!,&.37%!0'8&!$&.6(*&,!3%!VL^.!*0'*!5#'.*!26(*31(&!-#$&.!'%,!*0$&',.:!
B#!*'D&!',8'%*'7&!#4!*0&.&!%&+!1$#-&..3%7!$&.#6$-&./!*0&!,'*'5'.&!26.*!5&!26(*3*0$&',&,/!&%'5(3%7!3*!
*#!5&!.-'(&,!61!&8&%!+3*03%!(#+?-#.*!-#22#,3*)!.).*&2.:!!
Scaling Online
V#61(3%7!.-'('53(3*)!+3*0!;>!3.!&.1&-3'(()!-$3*3-'(!4#$!#%(3%&!'11(3-'*3#%.!.6-0!'.!&?-#22&$-&!&%73%&.:!
A4!'!.&$83-&!0'.!*#!5&!$&.*'$*&,!*#!$&-#7%3M&!'%,!6.&!%&+!.&$8&$.!,&1(#)&,!3%*#!'%!3%4$'.*$6-*6$&/!*0&!
.&$83-&!+3((!&R1&$3&%-&!,#+%*32&:!B0&$&4#$&/!,'*'5'.&.!26.*!5&!.&(&-*&,!*0'*!&%'5(&!*0&!3%4$'.*$6-*6$&!
*#!5&!.-'(&,!#%(3%&!+3*0!%#!3%*&$$61*3#%!*#!&3*0&$!*0&!'11(3-'*3#%!#$!*0&!6.&$.:![6-0!#%(3%&!.-'(3%7!
&%.6$&.!*0'*!*0&!.&$83-&!-'%!'--#22#,'*&!*0&!2#.*?6%1$&,3-*'5(&!+#$D(#',.!*)13-'(!3%!#%(3%&!
'11(3-'*3#%.!+3*0#6*!,3.$61*3%7!'11(3-'*3#%!'8'3('53(3*):!!
Introducing the MySQL Cluster Carrier Grade Edition Database
Z)[_C!V(6.*&$!3.!'!$&'(?*32&!*$'%.'-*3#%'(!,'*'5'.&!-#253%3%7!*0&!4(&R353(3*)!#4!'!0370()!'8'3('5(&!
$&('*3#%'(!,'*'5'.&!+3*0!*0&!(#+!BV=!#4!#1&%!.#6$-&:!!
7
-
8/2/2019 Mysql Cluster Web e Wp 067589
11/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
"&'*6$3%7!'!.0'$&,?%#*03%7!,3.*$356*&,!'$-03*&-*6$&!+3*0!%#!.3%7(&!1#3%*!#4!4'3(6$&!W.&&!"376$&!OX/!
Z)[_C!V(6.*&$!3.!,&.37%&,!*#!,&(38&$!*0&!PP:PPP!1&$-&%*!'8'3('53(3*)!,&2'%,&,!5)!9&5!'%,!&?
-#22&$-&!'11(3-'*3#%.:!!
Z)[_C!V(6.*&$T.!$&'(?*32&!,&.37%!,&(38&$.!1$&,3-*'5(&!23((3.&-#%,!$&.1#%.&!*32&.!+3*0!*0&!'53(3*)!*#!.&$83-&!*&%.!#4!*0#6.'%,.!#4!*$'%.'-*3#%.!1&$!.&-#%,:![611#$*!4#$!3%?2&2#$)!'%,!,3.D?5'.&,!,'*'/!
'6*#2'*3-!,'*'!1'$*3*3#%3%7!+3*0!(#',!5'('%-3%7/!'%,!*0&!'53(3*)!*#!',,!%#,&.!*#!'!$6%%3%7!-(6.*&$!+3*0!
M&$#!,#+%*32&!&%'5(&!(3%&'$!,'*'5'.&!.-'('53(3*)!4#$!0'%,(3%7!*0&!2#.*?6%1$&,3-*'5(&!9&5?5'.&,!
+#$D(#',.:!!
Z)[_C!V(6.*&$!V'$$3&$!`$',&!S,3*3#%!3.!'($&',)!1$#8&%!3%!*0&!*#670&.*!*&(&-#226%3-'*3#%.!
&%83$#%2&%*./!,&(38&$3%7!0370&$!,'*'5'.&!*0$#67016*!'%,!.0#$*&$!$&.1#%.&!*32&.!'*!'!*&%*0!#4!*0&!-#.*!
#4!1$#1$3&*'$)/!-(6.*&$&,/!.0'$&,?,3.D!,'*'5'.&.O/!+3*0!*0&!',,&,!5&%&43*!#4!$6%%3%7!#%!-#22#,3*)!
0'$,+'$&!'%,!#1&$'*3%7!.).*&2.:!V6.*#2&$.!3%-(6,&!>(-'*&(?C6-&%*/!aB!L(6.%&*/!V3.-#/!J&6*.-0&!
B&(&D#2/!S$3-..#%/!B&(&%#$/!'%,!^B[*'$-#2:!!
!
!
Figure 2. The MySQL Cluster architecture eliminates any single point of failure.
!
B#!(&'$%!2#$&!'5#6*!*0&!Z)[_C!V(6.*&$!'$-03*&-*6$&/!.&&!*0&!\Z)[_C!V(6.*&$!QK!>$-03*&-*6$&!'%,!
b&+!"&'*6$&.!903*&1'1&$/]!'*!2).U(:-#2N+0)?2).U(N+03*&?
1'1&$.N2).U(c+1c-(6.*&$Qc'$-03*&-*6$&:101:!!
!!
!O2).U(:-#2N+0)?2).U(N-'.&?.*6,3&.N2).U(?-.?'(-'*&(:101!
8
-
8/2/2019 Mysql Cluster Web e Wp 067589
12/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
Identifying Target Applications for MySQL Cluster
A*!3.!321#$*'%*!*#!$&-#7%3M&!*0'*!5&-'6.&!Z)[_C!V(6.*&$!3.!'!,3.*$356*&,!.0'$&,?%#*03%7!,'*'5'.&/!
-&$*'3%!$'%7&.!#4!'11(3-'*3#%!-0'$'-*&$3.*3-.!$&1$&.&%*!3,&'(!-'%,3,'*&.!4#$!3*:!=*0&$!'11(3-'*3#%.!'$&!5&**&$!.&$8&,!5)!#*0&$!.*#$'7&!&%73%&.!'8'3('5(&!+3*0!Z)[_C![&$8&$/!,6&!*#!.1&-343-!$&U63$&2&%*.!#4!
*0&!'11(3-'*3#%.:!B'5(&!O!3,&%*343&.!*0&!D&)!-0'$'-*&$3.*3-.!*#!-#%.3,&$!+0&%!,&-3,3%7!+0&*0&$!Z)[_C!
V(6.*&$!$&1$&.&%*.!'!7##,!43*!4#$!'!1'$*3-6('$!'11(3-'*3#%:!!
TABLE 2. IDENTIFYING THE OPTIMAL APPLICATION FIT FOR MYSQL CLUSTER
GOOD FIT FOR MYSQL CLUSTER COMPLEMENT WITH OTHER MYSQL STORAGE ENGINES
Fast write throughput with low-latency response Database size of more than 2 TB
99.999 percent availability with subsecond failover and
automatic recovery
Rows demanding more than 8 KB of memory and 128 fields
Unpredictable scalability demands Requirement to store objects larger than 2 MB
Mainly primary key access, or subcomponents of multifield
primary key
Full table scans with complex joins
Simple table joins Foreign key support
!
a)!-#61(3%7!Z)[_C!V(6.*&$!+3*0!',,3*3#%'(!Z)[_C!*&-0%#(#73&./!3*!3.!1#..35(&!*#!6.&!Z)[_C!V(6.*&$!
+3*03%!'11(3-'*3#%.!*0'*!2')!%#*/!'*!43$.*!7('%-&/!$&1$&.&%*!'!7##,!43*:!B0&.&!'$&!,3.-6..&,!3%!*0&!
\Z)[_C!V(6.*&$!V'.&![*6,3&.!3%!9&5!'%,!S?V#22&$-&!>11(3-'*3#%.]!.&-*3#%!('*&$!3%!*03.!+03*&!1'1&$:!!
Use Cases for MySQL Cluster in Web and E-CommerceApplications
B0&!4#((#+3%7!.&-*3#%!1$&.&%*.!1#*&%*3'(!6.&!-'.&.!4#$!Z)[_C!V(6.*&$/!+03-0!2')!4$&U6&%*()!5&!1'$*!#4!
'!5$#',&$!$'%7&!#4!Z)[_C!.*#$'7&!&%73%&.!*)13-'(()!,&1(#)&,!+3*03%!9&5!'%,!&?-#22&$-&!
'11(3-'*3#%.:!B0&.&!&R'21(&.!'$&!5)!%#!2&'%.!&R0'6.*38&!56*!'$&!,&.37%&,!*#!1$&.&%*!1#*&%*3'(!'$&'.!3%!
+03-0!Z)[_C!V(6.*&$!5$3%7.!6%3U6&!8'(6&!*#!9&5?5'.&,!'11(3-'*3#%.:!!
MySQL Cluster for E-Commerce Applications
S?-#22&$-&!'11(3-'*3#%.!0'8&!*0&!2#.*?.*$3%7&%*!$&U63$&2&%*.!4#$!;>!'%,!$&'(?*32&!$&.1#%.38&%&../!.#!.1&-343-!2#,6(&.!#4!*0&.&!'11(3-'*3#%.!-'%!5&%&43*!2#.*!,3$&-*()!4$#2!*0&!-'1'53(3*3&.!#4!Z)[_C!
V(6.*&$:!!
9
-
8/2/2019 Mysql Cluster Web e Wp 067589
13/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
!
Figure 3. This figure illustrates the anatomy of an e-commerce application.
A%!"376$&!G/!*0&!,'*'5'.&!'$-03*&-*6$&!0'.!5&&%!.*'%,'$,3M&,!#%!Z)[_C/!+3*0!'!8'$3&*)!#4!Z)[_C!
.*#$'7&!&%73%&.!1$#83,3%7!.1&-343-!46%-*3#%'(3*)!4#$!&'-0!2#,6(&!#4!*0&!&?-#22&$-&!'11(3-'*3#%K!!
E: B0&!2'.*&$!Z)[_C![&$8&$!-##$,3%'*&.!*0&!8'$3#6.!,'*'!2'%'7&2&%*!46%-*3#%.!#4!*0&!'11(3-'*3#%:!!
O: Z)[_C![&$8&$!+3*0!*0&!Z)A[>Z!'%,!>$-038&!.*#$'7&!&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*#!
*0&!6.&$!4#$!-$#..?.&((!'%,!61?.&((!16$1#.&.:!!
a'.&,!#%!*0&!&R'21(&!'5#8&/!*0&!4#((#+3%7!2#,6(&.!$&1$&.&%*!*0&!5&.*!-'%,3,'*&.!*#!5&!2'%'7&,!5)!
Z)[_C!V(6.*&$K!!
10
-
8/2/2019 Mysql Cluster Web e Wp 067589
14/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
TABLE 3. FOR THE PREVIOUS EXAMPLE, THE BEST CANDIDATES FOR MYSQL CLUSTER MANAGEMENT
APPLICATION TYPE DATA ACCESS METHOD DATA CHARACTERISTICS DATA REQUIREMENTS
User data Primary keyuser ID Read- and write-intensive(activity accounting, purchase
history, order status)
HA, real-time access
Product codes and
availability
Primary keyproduct
code
Read- and write-intensive HA, real-time access, scalability for
simultaneous users and updates
Session management Primary key (session
ID, user ID)
Write-intensive Subsecond failover, write scalability,
real-time data access
Orders and payments Primary key (user ID) Read- and write-intensive HA, subsecond failover, write scalability,
real-time data access
!
A%!',,3*3#%!*#!*0&!6.&!-'.&.!'5#8&/!Z)[_C!V(6.*&$!-'%!5&!6.&,!+3*03%!'!5$#',&$!.&*!#4!,'*'!
2'%'7&2&%*!$&U63$&2&%*.!4#$!'11(3-'*3#%.!.6-0!'.!1')2&%*!1$#-&..3%7:!B03.!3.!*0&!2#.*!-#21(&R!
&(&2&%*!#4!'%)!&?-#22&$-&!'11(3-'*3#%/!$&U63$3%7!*0&!-##$,3%'*&,!4(#+!#4!*$'%.'-*3#%.!'-$#..!'!
-#21(&R!%&*+#$D!#4!1$#-&..&.!'%,!.).*&2.:!!
B)13-'(()/!'!.3%7(&!*$'%.'-*3#%!*#6-0&.!.).*&2.!0#(,3%7!6.&$!,'*'!'%,!1$#,6-*!-'*'(#7.!'%,!3%8#(8&.!
&R*&$%'(!1$#83,&$.!.6-0!'.!-$&,3*!-'$,!-#21'%3&./!3..63%7!5'%D./!2&$-0'%*!5'%D./!'%,!1')2&%*!
'6*0#$3M'*3#%!&%73%&.:!B0&!*$'%.'-*3#%
-
8/2/2019 Mysql Cluster Web e Wp 067589
15/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
2#%*0G:!"'-&5##D!3.!'!('$7&!Z)[_C!-6.*#2&$/!$&()3%7!#%!Z)[_C!*#!&%'5(&!3*.!3%4$'.*$6-*6$&!*#!D&&1!
1'-&!+3*0!*0&.&!067&!,&2'%,.:!!
90&$&'.!"'-&5##D!3.!'!,&,3-'*&,!.#-3'(!%&*+#$D3%7!.3*&/!2'%)!#*0&$!#$7'%3M'*3#%.!0'8&!3%*&7$'*&,!
.#-3'(!%&*+#$D3%7!3%*#!*0&3$!-#$&!#%(3%&!'11(3-'*3#%.!'.!'!2&'%.!*#!4#.*&$!-#226%3*)!563(,3%7!'%,!-#(('5#$'*3#%!'2#%7!2&25&$.:!!
B0&!2#,6(&.!3%!B'5(&!d!$&1$&.&%*!*0&!5&.*!-'%,3,'*&.!*#!5&!2'%'7&,!5)!Z)[_C!V(6.*&$K!!
!
TABLE 4. FOR THE PREVIOUS EXAMPLE, THE BEST CANDIDATES FOR MYSQL CLUSTER MANAGEMENT
APPLICATION TYPE DATA ACCESS METHOD DATA CHARACTERISTICS DATA REQUIREMENTS
User profile Primary keyuser name Read-intensive HA, real-time access
Status updates Primary keyuser name Write-intensive HA, real-time access
MySQL Cluster for Online Content Delivery
In comparison to other solutions, MySQL Cluster is superior to other databases in terms of maintenance, safety, stability,
scalability, and reliability.
Jo Rogner, Technical Manager, KURIER.at
V#%*&%*!2'%'7&2&%*!.).*&2.!WVZ[.X!'$&!-$3*3-'(!4#$!9&5!1$#1&$*3&.!*#!2'%'7&!*0&!+#$D4(#+!%&&,&,!
*#!-#(('5#$'*38&()!-$&'*&/!&,3*/!$&83&+/!3%,&R/!.&'$-0/!165(3.0/!'%,!'$-038&!8'$3#6.!D3%,.!#4!,373*'(!2&,3':!
;#+&8&$/!Z)[_C![&$8&$!3.!*0&!$&-#22&%,&,!,'*'5'.&!4#$!-#$&!VZ[!46%-*3#%./!&%.6$3%7!*0'*!6.&$!
'--&..!'%,!2#%&*3M'*3#%!W.65.-$31*3#%.X!'$&!2#,6(&.!*0'*!-'%!5&!&44&-*38&()!2'%'7&,!5)!Z)[_C!
V(6.*&$:!!
B'5(&!e!-0'$'-*&$3M&.!*0&!-#21#%&%*.!#4!'!VZ[K!!
!
TABLE 5. THE COMPONENTS OF A CMS
APPLICATION TYPE DATA ACCESS METHOD DATA CHARACTERISTICS DATA REQUIREMENTS
User data and user
authorization
Primary keyuser ID Read-intensive HA, real-time access
Content catalog Primary keysubject, Read-intensive HA, real-time access, scalability for
!!
!G4'-&5##D:-#2N1$&..N3%4#:101f.*'*3.*3-.!
12
-
8/2/2019 Mysql Cluster Web e Wp 067589
16/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
author simultaneous users
Session management Primary key (session
ID, user ID)
Write-intensive Subsecond failover, write scalability,
real-time data access
Online transaction
processing (OLTP)
Primary key (user ID) Read- and write-intensive HA, subsecond failover, write scalability,
real-time data access
!
MySQL Cluster for Service Access, Authorization, and Monetization
=%(3%&!'11(3-'*3#%!1$#83,&$.!'$&!,&1&%,&%*!#%!$&'-03%7!%&+!-6.*#2&$.!'%,!563(,3%7!%&+!$&8&%6&!
.*$&'2.!5)!,&1(#)3%7!('$7&?.-'(&!.&$83-&.!#8&$!43R&,!'%,!+3$&(&..!%&*+#$D.:!!
>((!*0&.&!.&$83-&.!'$&!0370()!,&1&%,&%*!#%!*&-0%#(#73&.!.6-0!'.!AL!2'%'7&2&%*g!C370*+&370*!J3$&-*#$)!
>--&..!L$#*#-#(!WCJ>LXg!'%,!-&%*$'(3M&,!'6*0&%*3-'*3#%/!'6*0#$3M'*3#%/!'%,!'--#6%*3%7!W>>>X!
1$#*#-#(./!&%'5(3%7!6.&$.!*#!-#%%&-*!'%,!-#%.62&!%&*+#$D!.&$83-&.!'%,!%&*+#$D!',23%3.*$'*#$.!*#!-'1*6$&!6.'7&!3%4#$2'*3#%:!a&4#$&!-(3&%*.!-'%!.*'$*!*#!'--&..!'%,!-#%.62&!.&$83-&.!#%!'!%&*+#$D/!*0&)!
26.*!5&!'6*0&%*3-'*&,!*#!*0&!%&*+#$D!'%,!*0&%!'6*0#$3M&,!*#!6.&!*0&!.&$83-&.!*#!+03-0!*0&)!'$&!
&%*3*(&,:!B0&3$!-#%.621*3#%!#4!%&*+#$D!$&.#6$-&.!*0&%!%&&,.!*#!5&!-'1*6$&,!83'!*0&!'--#6%*3%7!
1$#-&..&.:!V#((&-*38&()/!>>>!3.!'!-#$%&$.*#%&!#4!*#,')T.!%&*+#$D!.&-6$3*)g!2'%'7&2&%*g!'%,!3%!2'%)!
-'.&./!2#%&*3M'*3#%:!!
MySQL Cluster delivers the high availability that enables us to guarantee continuous broadband internet access and VoIP
services to our subscribers. This has had an immediate impact on significantly improving customer satisfaction and has reduced
the cost of operating our network.
Lars-Ake Norling, B2, Telenor
B#!&%.6$&!*0'*!>>>!.&$83-&.!46%-*3#%/!6.&$!,'*'!'--&..&,!5)!*0&!'6*0&%*3-'*3#%!'%,!'6*0#$3M'*3#%!1$#-&..&.!'%,!6.&$!'-*383*)!$&-#$,&,!3%!*0&!'--#6%*3%7!,&*'3(.!%&&,!*#!5&!1&$.3.*&,!*#!5'-D?&%,!>>>!
,'*'!.*#$&.:!!
93*0!*0&!#%(3%&!6.&$!1#16('*3#%!-#%*3%63%7!*#!&R1(#,&!'.!5'%,+3,*0!3%-$&'.&./!-#226%3-'*3#%!-#.*.!
,&-$&'.&/!'%,!.&$83-&.!'8'3('5(&!#8&$!43R&,!'%,!+3$&(&..!%&*+#$D.!1$#(34&$'*&/!*0&!5'-D?&%,!,'*'!.*#$&.!
#4!>>>!'%,!CJ>L!.&$83-&.!'$&!%#+!2#$&!23..3#%?-$3*3-'(!*0'%!&8&$:!!
>.!*0&.&!%&*+#$D.!7$#+/!(323*'*3#%.!-'%!#--6$!*0'*!',,!',23%3.*$'*38&!#8&$0&',/!3%0353*!4(&R35(&!.-'(3%7/!
'%,!'44&-*!*0&!*32&()!.)%-0$#%3M'*3#%!#4!,'*'!'-$#..!*0&!>>>!'%,!CJ>L!&%83$#%2&%*.:!!
13
-
8/2/2019 Mysql Cluster Web e Wp 067589
17/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
B#!',,$&..!*0&.&!-0'((&%7&./!Z)[_C!0'.!-#(('5#$'*&,!+3*0!*0&!(&',3%7!>>>d!'%,!CJ>L!.&$8&$e!
8&%,#$.!*#!3%*&7$'*&!Z)[_C!V(6.*&$!3%*#!*0&3$!.#(6*3#%.!*#!1$#83,&!'!$#56.*!5'-D?&%,!,'*'!.*#$&!
,&.37%&,!*#!2&&*!*0&!1&$4#$2'%-&!'%,!'8'3('53(3*)!$&U63$&2&%*.!#4!#%(3%&!'11(3-'*3#%.:!!
V#21#%&%*.!#4!'%!>>>!'%,!CJ>L!3%4$'.*$6-*6$&!*0'*!-'%!5&!2'%'7&,!5)!Z)[_C!V(6.*&$!'$&!-0'$'-*&$3M&,!3%!B'5(&!hK!!
TABLE 6. THE COMPONENTS OF AN AAA AND LDAP INFRASTRUCTURE THAT MYSQL CLUSTER CAN MANAGE
APPLICATION TYPE DATA ACCESS METHOD DATA CHARACTERISTICS DATA REQUIREMENTS
User authentication Primary keyinternal
LDAP user identifier
Read-intensive HA, real-time access, high scalability for
simultaneous user access
User authorization Primary keyinternal
LDAP user identifier
Read-intensive HA, real-time access
User accounting Primary keyinternalLDAP user identifier
Write-intensive Subsecond failover, write scalability,real-time data access
LDAP access and
updates
Primary keyinternal
LDAP user identifier
Read-intensive (write volumes
growing)
HA, scalability, real-time data access
Advantages of MySQL Cluster for Web and E-CommerceApplications
B'5(&!Q!,&*'3(.!*0&!9&5?!'%,!&?-#22&$-&?$&('*&,!-'1'53(3*3&.!#4!Z)[_C!V(6.*&$K!!
!
TABLE 7. MYSQL CLUSTER MEETS THE TOUGHEST CHALLENGES OF WEB-BASED APPLICATIONS
REQUIREMENT OF ONLINE APPLICATION MYSQL CLUSTER CAPABILITY
High reliability and HA ! Support for atomic, consistent, isolated, durable (ACID) transactions
! Distributed shared-nothing architecture
! Synchronous data replication
! Automated subsecond failover
!!
!d"#$!2#$&!3%4#$2'*3#%/!.&&!\J&(38&$3%7![-'('5(&!i!;370()!>8'3('5(&!>6*0&%*3-'*3#%!i!>--#6%*3%7![&$83-&.]K!2).U(:-#2N+0)?2).U(N+03*&?1'1&$.N2).U(c+1c0'c'6*0c'--#6%*:101:!!e"#$!2#$&!3%4#$2'*3#%/!.&&!\`63,&!*#![-'(3%7!=1&%CJ>L!+3*0!Z)[_C!V(6.*&$]K!2).U(:-#2N+0)?2).U(N+03*&?1'1&$.N2).U(c+1c#1&%(,'1?.-'(3%7?763,&:101:!
14
-
8/2/2019 Mysql Cluster Web e Wp 067589
18/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
! Automatic recovery and data synchronization
! Local and global checkpoints to disk for durability
! Geographic replication between clusters
! Online upgrades
! Online add nodes
! Online backup
! HA consulting
! 24/7 technical support
! Professional training and certification
Performance and scalability ! Hybrid in-memory and disk-based storage
! Parallel server architecture for high read/write performance
! Automatic data partitioning enabling load balancing
! Distributed database for scaling out
! Multithreaded data nodes for scaling up
! Online add nodes for on-demand scaling
Interoperability ! Worlds most popular open source database
! Support for multiple hardware platforms and operating systems
! SQL and native APIs: Java/JPA, C++, LDAP, HTTP for data access
! Support for full range of MySQL Connectors
Low TCO ! Open source freedom, standards, and economics
! Low-cost service offerings
! Ability to run on commodity hardware, including rackmounts and blades
! Elimination of costly shared storage
! Simplified monitoring and management
Achieving High Availability with MySQL Cluster
B0&!'$-03*&-*6$&!#4!Z)[_C!V(6.*&$!3.!,&.37%&,!*#!,&(38&$!PP:PPP!1&$-&%*!'8'3('53(3*)/!+03-0!3%-(6,&.!
$&76('$()!.-0&,6(&,!2'3%*&%'%-&!#1&$'*3#%.!'.!+&((!'.!.).*&2!4'3(6$&.!W1('%%&,!'%,!6%1('%%&,!
,#+%*32&X:!!
B03.!(&8&(!#4!'8'3('53(3*)!3.!'-03&8&,!83'!'!,3.*$356*&,!.0'$&,?%#*03%7!'$-03*&-*6$&!'%,!5)!.)%-0$#%#6.!
$&1(3-'*3#%!#4!,'*'/!+03-0!'6*#2'*3-'(()!1$#1'7'*&.!*$'%.'-*3#%!3%4#$2'*3#%!*#!'((!'11$#1$3'*&!,'*'!
%#,&./!5&4#$&!-#21(&*3#%!#4!*0&!*$'%.'-*3#%:!A4!#%&!#$!2#$&!,'*'5'.&!%#,&.!4'3(!,6$3%7!'!*$'%.'-*3#%/!*0&!'11(3-'*3#%!+3((!.321()!$&*$)!*0&!*$'%.'-*3#%!'%,!*0&!$&2'3%3%7!,'*'!%#,&.!+3((!.6--&..46(()!.'*3.4)!
*0&!$&U6&.*:!!
B0&!',8'%*'7&!#4!.)%-0$#%#6.!$&1(3-'*3#%!3.!*0'*!3*!&(323%'*&.!*0&!*32&!.0'$&,!,3.D!'$-03*&-*6$&.!
-#%.62&!3%!0'83%7!*#!$&?-$&'*&!'%,!$&1(')!(#7!43(&.!4#$!*0&!'11(3-'*3#%!*#!4'3(!#8&$:!!
15
-
8/2/2019 Mysql Cluster Web e Wp 067589
19/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
Z)[_C!V(6.*&$!,&*&-*.!'%)!4'3(6$&.!3%.*'%*()/!'%,!-#%*$#(!3.!'6*#2'*3-'(()!4'3(&,!#8&$!*#!#*0&$!'-*38&!
%#,&.!3%!*0&!-(6.*&$!+3*0#6*!3%*&$$61*3#%!#4!.&$83-&!*#!*0&!-(3&%*.!W.&&!"376$&!dX:!A%!*0&!&8&%*!#4!'!
4'3(6$&/!*0&!Z)[_C!V(6.*&$!,'*'5'.&!%#,&.!-'%!'6*#2'*3-'(()!$&.*'$*/!$&-#8&$/!'%,!,)%'23-'(()!
$&-#%4376$&!*0&2.&(8&.
-
8/2/2019 Mysql Cluster Web e Wp 067589
20/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
!
Figure 5. Geographic replication provides multisite protection for critical online applications.
B0$#670!*0&!-'1'53(3*3&.!,&.-$35&,!'5#8&/!Z)[_C!V(6.*&$!3.!'5(&!*#!&(323%'*&!5#*0!1('%%&,!
2'3%*&%'%-&!'%,!6%1('%%&,!,#+%*32&!3%!#$,&$!*#!,&(38&$!*0&!PP:PPP!1&$-&%*!'8'3('53(3*)!,&2'%,&,!5)!
9&5?5'.&,!'11(3-'*3#%.:!!
Achieving High Performance and Linear Scalability with MySQL Cluster
A%!',,3*3#%!*#!PP:PPP!1&$-&%*!'8'3('53(3*)/!0370!1&$4#$2'%-&!3.!'!-$3*3-'(!$&U63$&2&%*!4#$!
'--#22#,'*3%7!*0&!2'..38&!8#(62&.!#4!,'*'5'.&!$&U6&.*.!'%,!*$'%.'-*3#%.!*)13-'(()!'..#-3'*&,!+3*0!
9&5?5'.&,!.&$83-&./!&.1&-3'(()!&?-#22&$-&!'11(3-'*3#%.:!J'*'5'.&!1&$4#$2'%-&!$&U63$&2&%*.!'$&!
*)13-'(()!*&%.!#4!*0#6.'%,.!#4!#1&$'*3#%.!1&$!.&-#%,/!+3*0!'!-#%.3.*&%*!$&.1#%.&!*32&!('*&%-)!#4!Y6.*!'!
4&+!23((3.&-#%,.:!!
>.!'!,3.*$356*&,!,'*'5'.&/!Z)[_C!V(6.*&$!&21(#).!'!1'$'((&(!.&$8&$!'$-03*&-*6$&!+3*0!26(*31(&!'-*38&!
2'.*&$!%#,&.:!B03.!&%.6$&.!*0'*!*$'%.'-*3#%.!W5#*0!$&',.!'%,!+$3*&.X!-'%!5&!(#',?5'('%-&,!'%,!'6*#2'*3-'(()!.-'(&,!'-$#..!26(*31(&![_C!.&$8&$.!.326(*'%.()/!+3*0!&'-0![_C!%#,&!'5(&!*#!'--&..!
'%,!61,'*&!,'*'!'-$#..!'%)!%#,&!3%!*0&!-(6.*&$:!!
Z)[_C!V(6.*&$!'(.#!#44&$.!'!4(&R35(&!'$-03*&-*6$&!+3*0!*0&!'53(3*)!*#!.*#$&!3%,&R&.!'.!+&((!'.!,'*'!3%!
2&2#$)!#$!#%!,3.D:!>.!'!$&.6(*!#4!*03.!3%?2&2#$)!-0'$'-*&$3.*3-/!Z)[_C!V(6.*&$!-'%!(323*!,3.D?5'.&,!
AN=!5#**(&%&-D.!5)!'.)%-0$#%#6.()!+$3*3%7!*$'%.'-*3#%!(#7.!*#!,3.D/!*0&$&4#$&!2'3%*'3%3%7!$&'(?*32&!
1&$4#$2'%-&:!!
Z)[_C!V(6.*&$!Q:H!+'.!$&-&%*()!5&%-02'$D&,!+3*0!*0&!JaBO!*&.*!.63*&!W.&&!"376$&!hX!'%,!'-03&8&,!
OeE/HHH!*$'%.'-*3#%.!1&$!23%6*&!WBLZX!+3*0!Y6.*!4#6$!,'*'!%#,&.h:!S'-0!*$'%.'-*3#%!3%8#(8&,!
'11$#R32'*&()!GH!,'*'5'.&!#1&$'*3#%./!'%,!Z)[_C!V(6.*&$!+'.!'5(&!*#!.6.*'3%!'11$#R32'*&()!EOe/HHH!
!!
!h5(#7.:.6%:-#2N0'.0'2N&%*$)N2).U(c-(6.*&$cQc1&$4#$2'%-&c5&%-02'$D!
17
-
8/2/2019 Mysql Cluster Web e Wp 067589
21/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
#1&$'*3#%.!1&$!.&-#%,/!+3*0!'%!'8&$'7&!$&.1#%.&!*32&!#4!#%()!G!23((3.&-#%,.:!B03.!1&$4#$2'%-&!
3%-$&'.&!$&1$&.&%*&,!'!dR!321$#8&2&%*!3%!.-'('53(3*)!#8&$!1$&83#6.!8&$.3#%.!#4!Z)[_C!V(6.*&$:!!
!Figure 6. MySQL Cluster achieves more than 250,000 TPM, or 125,000 operations per second, with an average latency of only 1.5 milliseconds.
!"#$%!!"#$%&'()%")$%!*+,-%+$#.$#%)"/$%0(1%2)1&(33$/%")%$(4'%5'*124(3%1$#.$#6%02&'%1$.$#(3%"7%&'$%1$#.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'%,!-#.*()!-#%4376$'*3#%.:!!
B0$#670!*0&!-#253%'*3#%!#4!'!,3.*$356*&,/!1'$'((&(!.&$8&$!'$-03*&-*6$&!-#61(&,!+3*0!3%?2&2#$)!3%,&R!
'%,!,'*'!.611#$*!'%,!'!-0#3-&!#4!.-'(3%7!#1*3#%./!Z)[_C!V(6.*&$!3.!0370()!.63*&,!*#!,&2'%,3%7/!
*$'%.'-*3#%?3%*&%.38&!&?-#22&$-&!'%,!9&5?5'.&,!'11(3-'*3#%.:!!
!
MySQL Cluster has enabled us to meet our demands for scalability, performance, and continuous uptime, at a much lower cost
than proprietary technologies. We would be dead in the water without it.
Richard McCluskey, Senior Engineer, go2 Media
18
-
8/2/2019 Mysql Cluster Web e Wp 067589
22/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
Flexible Data Access
>11(3-'*3#%!,&8&(#1&$.!-'%!&'.3()!3%*&7$'*&!%&+!'%,!(&7'-)!'11(3-'*3#%./!6.3%7!*0&3$!1$&4&$$&,!,'*'5'.&?
3%,&1&%,&%*!2&*0#,:!Z)[_C!V(6.*&$!V'$$3&$!`$',&!S,3*3#%!1$#83,&.!26(*31(&!,'*'!'--&..!2&*0#,.!
*0'*!+#$D!*#7&*0&$:!B0&.&!3%-(6,&![_C!'%,!%'*38&!>LA.!.6-0!'.!Vjj/!k'8'/!CJ>L/!'%,!9&5!.&$83-&.:!!
J&.37%&,!4#$!k'8'!,&8&(#1&$./!*0&!%&+!Z)[_C!V(6.*&$!V#%%&-*#$!4#$!k'8'!321(&2&%*.!'!0370?
1&$4#$2'%-&/!&'.)?*#?6.&!%'*38&!k'8'!3%*&$4'-&!'%,!=1&%kL>!1(67?3%!*0'*!,3$&-*()!2'1.!k'8'!#5Y&-*.!*#!
$&('*3#%'(!*'5(&.!.*#$&,!3%!*0&!Z)[_C!V(6.*&$!,'*'5'.&:!!
93*0!*0&!&(323%'*3#%!#4!,'*'!*$'%.4#$2'*3#%.!3%*#![_C/!6.&$.!7&*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!
BV=!'%,!-$&'*&!'!2#$&!'73(&/!0370()!'8'3('5(&!AB!&%83$#%2&%*!5)!.('.03%7!2'%'7&2&%*!-#21(&R3*)/!
3%-$&'.3%7!',23%3.*$'*#$!&443-3&%-)/!'%,!$&,6-3%7!*0&!$3.D!#4!,#+%*32&:!!
MySQL Cluster Manager
Z)[_C!V(6.*&$!Z'%'7&$!.321(343&.!*0&!-$&'*3#%!'%,!2'%'7&2&%*!#4!Z)[_C!V(6.*&$!V'$$3&$!`$',&!
S,3*3#%!5)!'6*#2'*3%7!-#22#%!2'%'7&2&%*!*'.D.:!>.!'!$&.6(*/!Ja>.!'%,!.).*&2.!',23%3.*$'*#$!'$&!
2#$&!1$#,6-*38&/!.#!*0&)!-'%!4#-6.!#%!.*$'*&73-!AB!3%3*3'*38&.!*0'*!.611#$*!*0&!56.3%&..!'%,!$&.1#%,!
2#$&!U63-D()!*#!-0'%73%7!6.&$!$&U63$&2&%*.:!>*!*0&!.'2&!*32&/!$3.D.!#4!,'*'5'.&!,#+%*32&!1$&83#6.()!
'**$356*'5(&!*#!2'%6'(!-#%4376$'*3#%!&$$#$.!'$&!.37%343-'%*()!$&,6-&,:!!
!!
!Q\Z'R323M3%7!*0&!a6.3%&..!l'(6&!#4!S%*&$1$3.&!J'*'5'.&!>11(3-'*3#%.]!WAJVX!
19
-
8/2/2019 Mysql Cluster Web e Wp 067589
23/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
"#$!&R'21(&/!2'%'7&2&%*!#1&$'*3#%.!$&U63$3%7!$#((3%7!$&.*'$*.!#4!'!Z)[_C!V(6.*&$!,'*'5'.&!*0'*!
1$&83#6.()!,&2'%,&,!dh!2'%6'(!-#22'%,.I!'%,!-#%.62&,!O:e!0#6$.!#4!Ja>!*32&P!-'%!%#+!5&!
1&$4#$2&,!+3*0!'!.3%7(&!-#22'%,!'%,!'$&!46(()!'6*#2'*&,/!.&$83%7!*#!$&,6-&!!
! V(6.*&$!2'%'7&2&%*!-#21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*'$*3%7!4#6$!Z)[_C!V(6.*&$!,'*'!%#,&./!&'-0!+3*0!h!`a!#4!,'*'/!'%,!1&$4#$23%7!EH/HHH!#1&$'*3#%.!1&$!.&-#%,!W0**1KNN+++:-(6.*&$,5:-#2N2).U(?-(6.*&$N2).U(!-(6.*&$?,'*'?%#,&?$&.*'$*?*32&.NX!!
20
http://www.clusterdb.com/mysql-cluster/mysql%C2%ADcluster-data-node-restart-times/http://www.clusterdb.com/mysql-cluster/mysql%C2%ADcluster-data-node-restart-times/http://www.clusterdb.com/mysql-cluster/mysql%C2%ADcluster-data-node-restart-times/http://www.clusterdb.com/mysql-cluster/mysql%C2%ADcluster-data-node-restart-times/http://www.clusterdb.com/mysql-cluster/mysql%C2%ADcluster-data-node-restart-times/http://www.clusterdb.com/mysql-cluster/mysql%C2%ADcluster-data-node-restart-times/ -
8/2/2019 Mysql Cluster Web e Wp 067589
24/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
Complementary MySQL Technologies for Web and E-CommerceApplications
a)!-#61(3%7!Z)[_C!V(6.*&$!+3*0!',,3*3#%'(!Z)[_C!*&-0%#(#73&./!3*!3.!1#..35(&!*#!5$3%7!*0&!5&%&43*.!#4!Z)[_C!V(6.*&$!*#!'11(3-'*3#%.!*0'*!2')!%#*/!'*!43$.*!7('%-&/!$&1$&.&%*!'!7##,!43*:!!
Using the MySQL Pluggable Storage Engine Architecture to Meet Diverse ApplicationNeeds
Z'%)!#%(3%&!'11(3-'*3#%.!'$&!0370()!2#,6('$/!+3*0!&'-0!2#,6(&!1$#83,3%7!.1&-343-!46%-*3#%'(3*):!"#$!
&R'21(&/!'%!&?-#22&$-&!'11(3-'*3#%!2')!3%-(6,&!'!$'%7&!#4!2#,6(&.!*#!0'%,(&!.1&-343-!*'.D./!.6-0!'.!!
! Z'%'7&2&%*!#4!6.&$!,'*'!!
! [6$43%7!'%,!.&'$-03%7!#4!*0&!1$#,6-*!-'*'(#7!!
! ;'%,(3%7!.&..3#%!.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Z)A[>Z:!!
B0&!6.&!#4!*0&!.*#$'7&!&%73%&!3.!*$'%.1'$&%*!*#!5#*0!*0&!'11(3-'*3#%!'%,!*0&!6.&$:!!
Using MySQL Clusters Flexible Replication for Online Applications
=%&!#4!*0&!2'Y#$!',8'%*'7&.!#4!6.3%7!Z)[_C!V(6.*&$!4#$!#%(3%&!'11(3-'*3#%.!3.!*0&!'53(3*)!*#!0'%,(&!
,&2'%,3%7!+$3*&?3%*&%.38&!+#$D(#',.:!`$'103-!$&1(3-'*3#%!-'1'53(3*3&.!-'%!*0&%!5&!6.&,!*#!$&1(3-'*&!
*0&!,'*'/!*)13-'(()!+3*03%!'!.&-#%,!#4!-#223*/!*#!'%#*0&$!Z)[_C!.&$8&$!.*#$'7&!&%73%&!.6-0!'.!
A%%#Ja!#$!Z)A[>Z!W1#..35()!$6%%3%7!#%!'!,344&$&%*!0#.*!#$!.3*&X:!B03.!,'*'!-'%!*0&%!5&!6.&,!3%!
26(*31(&!+').:!"#$!&R'21(&/!3*!-'%!5&!1$&.&%*&,!5'-D!*#!6.&$.!'.!*0&)!'$&!.0#113%7!#%(3%&/!*#!.611#$*!
-$#..?.&((!#$!61?.&((!#11#$*6%3*3&.:!B0&!,'*'!-'%!5&!6.&,!*#!'6*#2'*3-'(()!*$377&$!',,3*3#%'(!56.3%&..!
1$#-&..&./!.6-0!'.!.*#-D!$&1(&%3.02&%*/!#$!-'%!5&!1$&.&%*&,!*#!56.3%&..!'%'().*.!*#!&%'5(&!*0&2!*#!
2'D&!5&**&$!'%,!2#$&!Y6,3-3#6.!,&-3.3#%.!5'.&,!#%!$&'(?*32&!,'*'!4&&,.:!!
21
-
8/2/2019 Mysql Cluster Web e Wp 067589
25/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
A%!*03.!&R'21(&/!7$'103-!$&1(3-'*3#%!3.!321(&2&%*&,!*#!$&1(3-'*&!,'*'!4$#2!Z)[_C!V(6.*&$!*#!'!
$&2#*&!-(6.*&$!*#!1$#83,&!26(*3.3*&!$&.3(3&%-&!W.&&!"376$&!QX:!!
!
!Figure 7. Flexible replication enables near-real-time data analytics.
B0&!,'*'!3.!'(.#!$&1(3-'*&,!5)!Z)[_C![&$8&$!4$#2!*0&!Z)[_C!V(6.*&$!.*#$'7&!&%73%&!*#!'%!A%%#Ja!#$!
Z)A[>Z!.*#$'7&!&%73%&/!'7'3%.*!+03-0!-#21(&R!U6&$3&.!3%8#(83%7!46((!*'5(&!.-'%.!'%,!26(*3(&8&(!Y#3%.!
-'%!5&!$6%:EH!!
93*0!*03.!*)1&!#4!46%-*3#%'(3*)/!Z)[_C!V(6.*&$!-'%!.*3((!5&!6.&,!*#!0'%,(&!+$3*&?3%*&%.38&!+#$D(#',.!
,&2'%,3%7!*0&!0370&.*!(&8&(.!#4!.-'('53(3*)!'%,!$&'(?*32&!1&$4#$2'%-&/!&8&%!*0#670!*0&!'11(3-'*3#%!
3*.&(4!,&2'%,.!*0&!'53(3*)!*#!$6%!-#21(&R!U6&$3&.!3%8#(83%7!#1&$'*3#%.!*0'*!2')!%#*!5&!.63*'5(&!4#$!
Z)[_C!V(6.*&$:!!
MySQL Cluster Case Studies in Web and E-CommerceApplications
B0&!4#((#+3%7!.&-*3#%!1$&.&%*.!-'.&!.*6,3&.!,&.-$353%7!Z)[_C!V(6.*&$!,&1(#)2&%*.!3%!9&5!'%,!
&?-#22&$-&!'11(3-'*3#%.:!!
E-Commerce Case Study 1: Shopatron
[0#1'*$#%!3.!#%&!#4!*0&!+#$(,T.!(&',3%7!-#%.62&$!7##,./!&?-#22&$-&/!'%,!#$,&$!2'%'7&2&%*!.&$83-&!
1$#83,&$.:!93*0![0#1'*$#%T.!&?-#22&$-&!.&$83-&./!#$,&$.!1('-&,!#%!2'%64'-*6$&$.T!9&5.3*&.!'$&!
!!
!EHC&'$%!0#+!*#!,&1(#)!*03.!*)1&!#4!$&1(3-'*3#%!.-&%'$3#K!Y#0'%'%,&$..#%:5(#7.1#*:-#2NOHHPNHeN0'?2).U(?+$3*&?.-'(3%7?6.3%7?-(6.*&$?*#:0*2(:!
22
-
8/2/2019 Mysql Cluster Web e Wp 067589
26/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
#44&$&,!*#!'!2'%'7&,!%&*+#$D!#4!7(#5'(!1'$*%&$.!4#$!46(43((2&%*/!*)13-'(()!4#$!'..37%2&%*!*#!(#-'(!
$&*'3(&$.:!!
[3%-&!3*.!4#6%,3%7/!3%!OHHH/![0#1'*$#%!0'.!7$#+%!*#!1$#83,&!*0&!&?-#22&$-&!'%,!#$,&$!2'%'7&2&%*!
#1&$'*3#%.!4#$!2#$&!*0'%!QHH!7(#5'(!'%,!(#-'(!2'%64'-*6$&$./!+3*0!2#$&!*0'%!EH/HHH!$&*'3(!1'$*%&$.!#1&$'*3%7!3%!&370*!-6$$&%-3&.!'%,!*0$&&!('%76'7&.!'-$#..!b#$*0!>2&$3-'!'%,!S6$#1&:!!
>.![0#1'*$#%T.!56.3%&..!5&7'%!*#!7$#+/!.#!,3,!*0&!,&2'%,.!1('-&,!#%!3*.!9&5!'%,!&?-#22&$-&!
3%4$'.*$6-*6$&:!S'-0!%&+!2'%64'-*6$&$!6.3%7![0#1'*$#%T.!.&$83-&.!',,&,!EHH!*#!E/HHH!%&+!$&*'3(&$.:!>((!
%&+!#$,&$.!+&$&!(#',&,!3%*#!*0&!&?-#22&$-&!.).*&2!'%,!1&$.3.*&,!*#!'!5'-D?&%,!,'*'5'.&/!*)13-'(()!3%!
,'3()!5'*-0!$6%.!83'!nZC?5'.&,!*$'%.'-*3#%.:!>((!%&+!#$,&$.!+&$&!*0&%!'--&..&,!#8&$!'!.&-6$&!9&5!
-#%%&-*3#%!#%-&!'!,')!5)!*0&!2'%64'-*6$&$.T!$&*'3(!1'$*%&$./!+03-0!+#6(,!*0&%!53,!*#!46(43((!*0&!#$,&$/!
,&1&%,3%7!#%!*0&3$!(#-'(!.*#-D!'8'3('53(3*):!!
B0&!,'3()!-)-(&.!#4!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!1&$4#$2'%-&/!'8'3('53(3*)/!'%,!.-'('53(3*)!%&-&..'$)!*#!
&%'5(&!-6.*#2&$.!*#!&%Y#)!'!1#.3*38&!#%(3%&!.0#113%7!&R1&$3&%-&:!L(6./!6.3%7!Z)[_C!V(6.*&$/!*0&!
-#21'%)!3.!'5(&!*#!321(&2&%*!$&*'3(!2&$-0'%,3.3%7!*#!61?.&((!'%,!-$#..?.&((!',,3*3#%'(!1$#,6-*.!'%,!
.&$83-&.!5'.&,!#%!-6.*#2&$!.0#113%7!5&0'83#$:!!
24
-
8/2/2019 Mysql Cluster Web e Wp 067589
28/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
Z)[_C!V(6.*&$!3.!*0&!0370()!'8'3('5(&!$&1#.3*#$)!4#$!,)%'23-!.&..3#%!,'*':!a)!*$'-D3%7!6.&$!'-*383*)/!*0&!
$&*'3(&$!3.!'5(&!*#!1$#83,&!4'.*!'%,!&'.)!%'837'*3#%!'%,!&%.6$&!*0'*!6.&$.!-'%!.2##*0()!-#21(&*&!'%!!
&?-#22&$-&!*$'%.'-*3#%:!B0&!$&*'3(&$!6%,&$.*'%,.!*0'*!(&%7*0)!+'3*!*32&.!0'8&!'!%&7'*38&!321'-*!#%!*0&!
6.&$!&R1&$3&%-&!'%,!'!,3$&-*!&44&-*!#%!$&8&%6&.:!>(*0#670!*0&!.&..3#%!,'*'!3.!.*#$&,!#%!*0&!-(6.*&$!4#$!
#%()!.0#$*!'2#6%*.!#4!*32&/!*0&!-#21'%)!$&(3&.!#%!*0&!1&$4#$2'%-&!#4!Z)[_C!V(6.*&$!4#$!
3%.*'%*'%.!$&',!'%,!+$3*&!,'*'!#1&$'*3#%.:!!
=%&!#4!*0&!$&*'3(&$T.!$&U63$&2&%*.!+'.!*0&!4(&R353(3*)!*#!-#.*?&44&-*38&()!7$#+!3*.!3%4$'.*$6-*6$&:!B0&!
Z)[_C!V(6.*&$!1'$'((&(!.&$8&$!'$-03*&-*6$&!&%'5(&.!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3.!*#!0&(1!1(&!5&-#2&!2#$&!
3%4#$2&,!'5#6*!$&'(!&.*'*&
-
8/2/2019 Mysql Cluster Web e Wp 067589
29/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
>.!'!$&.6(*!#4!3*.!.6--&..!+3*0!Z)[_C!V(6.*&$/!p3((#+!3.!-#%*3%63%7!*#!&8'(6'*&!*0&!,'*'5'.&!4#$!%&+!
'11(3-'*3#%.!*0'*!-#6(,!5&%&43*!4$#2!'%!'44#$,'5(&!.-'(&?#6*!'$-03*&-*6$&:!!
C&'$%!2#$&!'5#6*!p3((#+T.!&R1&$3&%-&.!3%!*03.!-'.&!.*6,)K!2).U(:-#2N-6.*#2&$.N83&+Nf3,oPHI:!!
Online Content Delivery Case Study: kurier.at
Z#$&!*0'%!#%&!23((3#%!>6.*$3'%.!$&',!?8#2$#!#%!*0&!3%*&$%&*/!2'D3%7!D6$3&$:'*!#%&!#4!*0&!2#.*!
.6--&..46(!%&+.!9&5.3*&.!3%!*0&!`&$2'%?.1&'D3%7!+#$(,:!B0&!3%*&$%&*!1$&.&%-&!#4!>6.*$3'T.!('$7&.*!
U6'(3*)!%&+.1'1&$!1$#83,&.!&,3*#$3'(!%&+.!'%,!-#21$&0&%.38&!3%4#$2'*3#%!'$#6%,!*0&!-(#-D:!>.!*0&!
9&5!.611(&2&%*!*#!*0&!,'3()!%&+.1'1&$/!q6$3&$:'*!1$#83,&.!',,3*3#%'(!Od?0#6$!%&+.!61,'*&.!'%,!
3%*&$'-*38&!#%(3%&!#1*3#%.:!!
90&%!*0&!D6$3&$:'*!9&5.3*&!+'.!5&3%7!563(*/!'!$&(3'5(&!'%,!0370?1&$4#$2'%-&!,'*'5'.&!.#(6*3#%!+'.!
$&U63$&,!4#$!*0&!2'%'7&2&%*!#4!6.&$!,'*'!'%,!.&..3#%.:!L'$*3-6('$()!'7'3%.*!*0&!5'-D7$#6%,!#4!*0&!*370*!
43.-'(!1$&..6$&!#4!#%(3%&!2&,3'/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sbolaget (B2)/Telenor
aO/!1'$*!#4!*0&!B&(&%#$!7$#61/!3.!#%&!#4![+&,&%T.!('$7&.*!5$#',5'%,!3%*&$%&*!1$#83,&$./!&%Y#)3%7!*0&!
2#.*!.'*3.43&,!6.&$!5'.&!3%!*0&!-#6%*$)/!'--#$,3%7!*#!3%,&1&%,&%*!.6$8&).:!"#((#+3%7!2'Y#$!3%8&.*2&%*.!
3%!3*.!%&*+#$D!3%4$'.*$6-*6$&/!aO!3.!'5(&!*#!1$#83,&!26(*31(&!.&$83-&.!'-$#..!3*.!-#%8&$7&,!%&*+#$D/!
3%-(6,3%7!5$#',5'%,!'--&../!l#3-&!#8&$!AL!Wl#ALX/!'%,!5$#',-'.*!*&(&83.3#%:!!
B#!U63-D()!',,!%&+!.&$83-&.!'%,!1$#83.3#%!%&+!6.&$./!aO!%&&,&,!'%!>>>!3%4$'.*$6-*6$&!*0'*!1$#83,&,!
-#%*3%6#6.!'8'3('53(3*)/!0370!1&$4#$2'%-&/!'%,!4'.*!4'3(#8&$!3%!*0&!&8&%*!#4!0'$,+'$&!#$!.#4*+'$&!&$$#$.:!
B0&!1$&83#6.!,'*'5'.&!.#(6*3#%!+'.!%#*!'5(&!*#!D&&1!1'-&!+3*0!*0&!3%-$&'.&,!,&2'%,./!-'6.3%7!
-6.*#2&$!.'*3.4'-*3#%!3..6&.!'%,!2'Y#$!%&*+#$D!',23%3.*$'*3#%!#8&$0&',/!.#!aO!*6$%&,!*#!Z)[_C!V(6.*&$/!+03-0!0'.!1$#83,&,!3*!+3*0!*0&!4#((#+3%7!5&%&43*.K!!
! b#!.3%7(&!1#3%*!#4!4'3(6$&/!'.!'!$&.6(*!#4!*0&!,3.*$356*&,!'$-03*&-*6$&!!
! [65.&-#%,!4'3(#8&$!*#!76'$'%*&&!-#%*3%6#6.!'8'3('53(3*)!!
26
-
8/2/2019 Mysql Cluster Web e Wp 067589
30/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
! >53(3*)!#4!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.&$83-&!'--&..N'6*0#$3M'*3#%/!Z)[_C!V(6.*&$!2'D&.!3*!&'.)!4#$!'%)!#%(3%&!'11(3-'*3#%.!
1$#83,&$!*#!7&*!.*'$*&,!*#,')!5)!,#+%(#',3%7!*0&!1$#,6-*!4$#2!*0&!Z)[_C!9&5.3*&EE!'%,!6.3%7!*0&!
$&.#6$-&.!(3.*&,!3%!>11&%,3R!>!*#!.*'$*!'%!&8'(6'*3#%:!!
Appendix A: Additional Resources
&'()*+,-./#$0+"1+#2$+3$4K!
2).U(:-#2N-(6.*&$!!
&'()*+,-./#$0+,./#"5$0+,6/$+(#.78$/%!!
2).U(:-#2N-6.*#2&$.N-(6.*&$N!!
9$##81:+(#60#$7+;8#2+&'()*+,-./#$0%!!
2).U(:-#2N1$#,6-*.N,'*'5'.&N-(6.*&$N7&*?.*'$*&,:0*2(!!
!
!
!!
!EE2).U(:-#2N,#+%(#',.N-(6.*&$N!
27
-
8/2/2019 Mysql Cluster Web e Wp 067589
31/32
Oracle White PaperMySQL Cluster for Web and E-Commerce Applications
!
28
&'()*+,-./#$0+28#$>#.0$+617+!$;+?$6#.0$/+328#$@6@$0%++
2).U(:-#2N+0)?2).U(N+03*&?1'1&$.N2).U(c+1c-(6.*&$Qc'$-03*&-*6$&:101!!
&'()*+,-./#$0+AB6-.6#8"1+9.87$%++
2).U(:-#2N+0)?2).U(N+03*&?1'1&$.N2).U(c-(6.*&$c&8'(c763,&:101!!
!
-
8/2/2019 Mysql Cluster Web e Wp 067589
32/32
!
! MySQL Cluster for Web and E-Commerce
Applications
April 2010
Oracle Corporation
World Headquarters
500 Oracle Parkway
Redwood Shores, CA 94065U.S.A.
Worldwide Inquiries:
Phone: +1.650.506.7000
Fax: +1.65 506.72000.
oracle.com!
Copyright 2009, 2010, Oracle and/or its affiliates. All rights reserved.
This document is provided for information purposes only and the contents hereof are subject to change without notice.
This document is not warranted to be error-free, nor subject to any other warranties or conditions, whether expressed
orally or implied in law, including implied warranties and conditions of merchantability or fitness for a particular purpose.
We specifically disclaim any liability with respect to this document and no contractual obligations are formed either
directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any
means, electronic or mechanical, for any purpose, without our prior written permission.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their
respective owners.
AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro
Devices. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are
used under license and are trademarks or registered trademarks of SPARC International, Inc. UNIX is a registered
trademark licensed through X/Open Company, Ltd. 0110