mysql - oracle.com · mysql apache glassfish oracle linux & vm mysql apache glassfish...
TRANSCRIPT
<Insert Picture Here>
MySQL: 移动互联网和云计算的最佳实践
Kevin Ding 丁雪峰Principal Consultant | Oracle MySQL
<Insert Picture Here>
Agenda
• MySQL Overview
• High Availability and Scalability
• MySQL & Cloud
• Case Studies
• Summary:Why MySQL
Overview
About MySQL
• Founded, first release in 1995
• Acquired by Sun in February 2008
• Acquired by Oracle in January 2010
• #1 Most Popular Open Source Database
• Market-leading customers
• MySQL 5.5 GA 12/15/2010
4© 2011 Oracle Corporation
MySQL’s Market Position
• Ubiquitous
• Over 100 million copies downloaded worldwide
• Over 12 million installations
• 70,000 downloads each day
• Popular
• MySQL is the number one most popular database
• 31% use MySQL as primary DB for deployed applications
(Eclipse Community Survey, 2010)
• MySQL is the 3rd most deployed database worldwide
• Behind MSFT SQL Server and Oracle (Gartner 2008)
• MySQL is the most popular open source database
• 40% of OSDB market with 25% growth (Evans Data, 2007)
• Majority of Oracle database users also use MySQL
5© 2011 Oracle Corporation
MySQL is 3rd Most Deployed DatabaseGartner
11%
14%
15%
18%
39%
50%
68%
70%
15%
14%
14%
13%
12%
13%
11%
8%
13%
13%
14%
14%
11%
10%
6%
9%
61%
59%
57%
55%
38%
28%
15%
14%
0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Teradata
Sybase IQ
Sybase ASE
Informix
DB2
MySQL
SQL Server
Oracle
Currently Deployed Plan to Deploy Next Year Plan to Deploy but Not in the Next Year No Plans to Deploy
63% Are Deploying MySQL or Are Planning To Deploy
6© 2011 Oracle Corporation
• Built together
• Tested together
• Managed together
• Serviced together
• Based on open standards
• Lower cost
• Lower risk
• More reliable
Hardware and Software Engineered to Work together
MySQL Completes The Stack
7© 2011 Oracle Corporation
Industry’s Most Complete LAMP Stack
MySQL
Apache
Glassfish
Oracle
Linux &
VM
MySQL
Apache
GlassFish
PHP/Perl/Python
Eclipse
NetBeans
• PHP, Perl, Python, Ruby, Java, C, C++
• Apache, Glassfish
• MySQL Database
• Oracle VM (Xen-based)
• Oracle Enterprise Linux
8© 2011 Oracle Corporation
Enterprise Databases Applications
Corporate Departmental
Imp
ort
an
ce
/Co
mp
lex
ity
Majority of New
DB Applications
Innovation &
Change
Ease of Use &
Low Costs
Paramount
9© 2011 Oracle Corporation
Enterprise Databases Applications
Corporate Departmental
Imp
ort
an
ce/C
om
ple
xit
y
Choose MySQL For: Web Applications
Datamarts & Analytics
Custom Departmental
Applications
10© 2011 Oracle Corporation
Oracle & MySQL: The Picture is Complete!
11© 2011 Oracle Corporation
More Products Releases Than Ever Before
Continuous Innovation
Q2 CY2010 Q3 CY2010 Q4 CY2010 Q1 CY2011
• MySQL Workbench 5.2
GA!
• MySQL Database 5.5
• MySQL Enterprise Backup 3.5
• MySQL Enterprise Monitor 2.3
• MySQL Cluster Manager 1.1
All GA!
A Better MySQL
Q2 CY2011
•MySQL Enterprise Monitor 2.2
•MySQL Cluster 7.1
• MySQL Cluster Manager 1.0
All GA!
• MySQL Database 5.6
• MySQL Cluster 7.2
DMR*
and MySQL Labs!
*Development Milestone Release
12© 2011 Oracle Corporation
Investment in MySQLRapid Innovation
• Make MySQL a Better MySQL• #1 Open Source Database for Web Applications
• Most Complete LAMP Stack
• Telecom & Embedded
• Develop, Promote and Support MySQL• Improve engineering, consulting and support
• Leverage 24x7, World-Class Oracle Support
• MySQL Community Edition • Source and binary releases
• GPL license
13© 2011 Oracle Corporation
MySQL and MyOracle Support
MySQL Enterprise Monitor
• Collect MySQL diagnostics and upload to MOS SR (now!)
• Track SRs from Enterprise Dashboard (CY 2010)
• Create/maintain SRs (CY 2011)
• Saves DBA time
• collecting data for Support team, tracking status
14© 2011 Oracle Corporation
Oracle + MySQL Customers
• Product Integration• Oracle GoldenGate (Complete!)
• Oracel Fusion MiddleWare (CY2011)
• Oracle Enterprise Linux + Oracle VM (CY 2011)
• Oracle Secure Backup (CY 2011)
• Oracle Audit Vault (CY 2011)
• Oracle Enterprise Manager (CY 2011)
• Support• Leverage 24x7, World-Class Oracle Support
• MyOracle Support
15© 2011 Oracle Corporation
Multiple Languages
C C++ C#
MySQL is Everywhere
MULTIPLE PLATFORMS MULTIPLE LANGUAGES
16© 2011 Oracle Corporation
MySQL on WindowsThe Right Choice
• Significant Developer Adoption• Windows is the #1 development platform for MySQL
• Making MySQL better on Windows
Performance & Scalability
• Improved on Windows
• MySQL 5.5 Benchmarks
Lower TCO
• More Affordable
• Easier to Administer
Ease of Use
• MySQL Workbench
• New Connector/NET 6.3
Cross-platform
• 20+ Platforms
• No Lock-in
17© 2011 Oracle Corporation
High Availability and Scalability
18© 2011 Oracle Corporation
MySQL High Availability Solutions
%9 9 9 9935 days 4 days 50 mins 5 mins8 hours
Unmanaged
Replication Technologies
Clustering Technologies
Clustering & GeographicalRedundancy
Well-Managed
SmallBusiness
ISPs &Mainstream
Business
DataCenters
BankingMedical
TelcoMilitary
Defense
.
MySQLCluster
MySQL +Shared-Disk
MySQLReplication
DRBD
19© 2011 Oracle Corporation
Right Product to the Right Architecture
ApplicationsData
ReplicationClustered / Virtualized
Shared-Nothing, Geo-Replicated
Cluster
E-Commerce / Trading
Session Management
User Authentication / Accounting
Feeds, Blogs, Wikis
Data Refinery
OLTP
Data Warehouse/BI
Content Management
CRM / SCM
Collaboration
Packaged Software
Telco Apps (HLR/HSS/SDP…)
20© 2011 Oracle Corporation
Clie
nts
Slaves Master
MySQL Replication
MySQL Replication
Read Scalability
21© 2011 Oracle Corporation
Replication use cases
•Scale out for reads
•High availability – locally
•Disaster Recovery – distance
•Backup on slave
•Analytics
22© 2011 Oracle Corporation
“In my opinion, MySQL is the only database we
would ever trust to power the Zappos.com
website.”
"On any given day we can sell close to
300,000 tickets on the Web site using
MySQL as the database to search for
events. It is amazing."
"craigslist infrastructure could
not have handled the
exponential growth in traffic
without MySQL.”
“We are one of the largest MySQL
web sites in production
MySQL In Action on the Web
“As a leader in our field, we are committed to
providing the best service to our users, and a
web experience that meets members
expectations and that starts with IT”
“They have a master server for all writes and slave
servers for most Reads. The secret truth they claim
behind configuring the master and slave machines is to
make sure the slave machines are faster than the
masters”
23© 2011 Oracle Corporation
MySQL Cluster Overview
ACID Compliant Relational Database• SQL & NoSQL interfaces
Write-Scalable & Real-Time• Distributed, auto-partitioning (sharding), multi-master
99.999% Availability• Shared-nothing, integrated clustering & sub-second recovery, local & geographic
replication, on-line operations
Low TCO• Open-source, management & monitoring tools, scale-out on commodity hardware
24© 2011 Oracle Corporation
MySQL Cluster Architecture
Data Nodes
Node Group 1
F1
F3
F3
F1
No
de
1N
od
e 2
Node Group 2
F2
F4
F4
F2
No
de
3N
od
e 4
Application Nodes
Cluster
Mgmt
Cluster
Mgmt
LDAPREST
25© 2011 Oracle Corporation
Node Failure Detection & Self-Healing Recovery
26© 2011 Oracle Corporation
On-Line Scaling & Maintenance
• Can also update schema on-line
• Upgrade hardware & software with no downtime
• Perform back-ups on-line
1. New node group added
2. Data is re-partitioned
3. Redundant data is deleted
4. Distribution is switched to share load with new node group
27© 2011 Oracle Corporation
Scale-Out Reads & Writes on
Commodity Hardware
• NDB API Performance 4.33 M
Queries per second!
• 8 Intel servers, dual-6-core CPUs
@2.93 GHz, 24GB RAM
• 2 Data Nodes per server
• flexAsync benchmark• 16 parallel threads, each issuing 256
simultaneous transactions
• Read / Write 100KB attribute
• Interim results from 2 days testing
– watch this space:
mikaelronstrom.blogspot.com
28© 2011 Oracle Corporation
Geographic Replication
Cluster 1
Synchronousreplication
Cluster 2
MyISAM MyISAM InnoDB
Asynchronousreplication
• Synchronous replication within
a Cluster node group for HA
• Bi-Direction asynchronous
replication to remote Cluster for
geographic redundancy
• Master-slave or multi-master
• Automated conflict detection
and resolution
• Asynchronous replication to
non-Cluster databases for
specialised activities such as
report generation
• Mix and match replication types
29© 2011 Oracle Corporation
MySQL Cluster – Users & ApplicationsHA, Transactional Services: Web & Telecoms
http://www.mysql.com/customers/cluster/
• Web• User profile management
• Session stores
• eCommerce
• On-Line Gaming
• Application Servers
• Telecoms
• Subscriber Databases (HLR/HSS)
• Service Delivery Platforms
• VoIP, IPTV & VoD
• Mobile Content Delivery
• On-Line app stores and portals
• IP Management
• Payment Gateways
30© 2011 Oracle Corporation
High Throughput Reads & Writes
Carrier-Grade Availability
Real-Time Responsiveness
On-Line, Linear Scalability
Low TCO, Open platform
Distributed, Parallel architecture
Transactional, ACID-compliant relational database
Shared-nothing design, synchronous data replication
Sub-second failover & self-healing recovery
Data structures optimized for RAM. Real-time extensions
Predictable low latency, bounded access times
Incrementally scale out, scale up and scale on-line
Linearly scale with distribution awareness
GPL & Commercial editions, scale on COTS
Flexible APIs: SQL, C++, Java, OpenJPA, LDAP & HTTP
MySQL Cluster - Key Advantages
31© 2011 Oracle Corporation
MySQL & Cloud
Application Architectures
33© 2011 Oracle Corporation
A Conventional “on-premise” Architecture
34© 2011 Oracle Corporation
A Modern SaaS “on-demand” Architecture
35© 2011 Oracle Corporation
MySQL: Powering DBaaS
36© 2011 Oracle Corporation
•On-Demand Scalability: Scale-up & Scale-out•MySQL Replication
•MySQL Partitioning & Sharding
•High availability•MySQL Replication
•Linux DRBD
•MySQL Cluster
•Monitoring and Management•MySQL Enterprise Monitor
•MySQL Advisor
•MySQL Query Analyzer
•MySQL Enterprise Backup
•Oracle Premier Support (24*7*365)
MySQL Partitioning and Sharding
37© 2011 Oracle Corporation
Case Studies
Deployed in Every Layer of the Network
Blending the Agility of the Web with the Trust
of the Network
39© 2011 Oracle Corporation
COMPANY OVERVIEW
• Leading provider of communications platforms, solutions & services
• €15.2bn Revenues (2009), 77k employees across 130 countries
CHALLENGES / OPPORTUNITIES
• Converged services driving migration to next generation HLR / HSS systems
• New IMS platforms for Unified Communications
• Reduce cost per subscriber and accelerate time to value
SOLUTIONS
• MySQL Cluster Carrier Grade Edition
• MySQL Support & Consulting Services
CUSTOMER PERSPECTIVE“MySQL Cluster won the performance test hands-down, and it fitted our needs perfectly. We evaluated shared-disk clustered databases, but the cost would have been at least 10x more.”
-- François Leygues, Systems Manager
RESULTS
• Scale out on standard ATCA hardware to support 60m+ subscribers on a single platform
• Low latency, high throughput with 99.999%+ availability
• Enabled customers to reduce cost per subscriber and improve margins
• Delivered data management solution at 10x less cost than alternatives
http://www.mysql.com/why-mysql/case-studies/mysql-alcatel-casestudy.php
40© 2011 Oracle Corporation
COMPANY OVERVIEW
• World’s leading mobile communications company
• £44.5bn Revenues (to March 31 2010), 347 subscribers (June 30 2010)
CHALLENGES / OPPORTUNITIES
• Re-architect IN Mediation, Pre-Pay & HLR / HSS platforms
• Reduce cost per subscriber
• Eliminate proprietary platforms
• Scale for future growth
SOLUTIONS
• MySQL Cluster Carrier Grade Edition
• MySQL Support & Training Services
CUSTOMER PERSPECTIVEMySQL Cluster CGE was selected due to its real-time design, allowing the low and predictable latency requirements of the application to be met. All single points of failure are eliminated, therefore meeting the uptime requirements of the application.
RESULTS
• 100x lower cost per subscriber
• Migration to open systems to eliminate proprietary technologies & vendor lock-in
• Agile infrastructure to scale with future growth
Note:
Permission to
use only in 1:1
meetings41© 2011 Oracle Corporation
COMPANY OVERVIEW
• Leading telecoms provider across Europe and Asia. Largest Nordic provider
• 184m subscribers (Q2, 2010)
CHALLENGES / OPPORTUNITIES
• Extend OSS & BSS platforms for new mobile services and evolution to LTE
• OSS: IP Management & AAA
• BSS: Subscriber Data Management & Customer Support
SOLUTIONS
• MySQL Cluster
• MySQL Support Services
CUSTOMER PERSPECTIVE
“Telenor has been using MySQL for fixed IP
management since 2003 and are extremely
satisfied with its speed, availability and
flexibility. Now we also support mobile
and LTE IP management with our solution.
Telenor has found MySQL Cluster to be
the best performing database in the world
for our applications.”
- Peter Eriksson, Manager, Network Provisioning
RESULTS
• Launch new services with no downtime, due to on-line operations of MySQL Cluster
• Consolidated database supports Subscriber Data Management initiatives
• MySQL Cluster selected due to 99.999% availability, real time performance and linear scalability on commodity hardware
42© 2011 Oracle Corporation
COMPANY OVERVIEW
• UK-based retail and wholesale ISP & Hosting Services
• 2010 awards for best home broadband and customer service
• Acquired by BT in 2007
CHALLENGES / OPPORTUNITIES
• Enter market for wholesale services, demanding more stringent SLAs
• Re-architect AAA systems for data integrity & continuous availability to support billing sytems
• Consolidate data to for ease of reporting and operating efficiency
• Fast time to market
SOLUTIONS
• MySQL Cluster
• MySQL Server with InnoDB
CUSTOMER PERSPECTIVE
“Since deploying our latest AAA platform, the MySQL
environment has delivered continuous
uptime, enabling us to exceed our most stringent
SLAs”
-- Geoff Mitchell Network Engineer
RESULTS
• Continuous system availability, exceeding wholesale SLAs
• 2x faster time to market for new services
• Agility and scale by separating database from applications
• Improved management & infrastructure efficiency through database consolidation
43© 2011 Oracle Corporation
COMPANY OVERVIEW
• Division of Docudesk
• Deliver Document Management SaaS
CHALLENGES / OPPORTUNITIES
• Provide a single repository for customers to
manage, archive, and distribute documents
• Implement scalable, fault tolerant, real time data management back-end
• PHP session state cached for in-service personalization
• Store document meta-data, text (as BLOBs), ACL, job queues and billing data
• Data volumes growing at 2% per day
SOLUTION
• MySQL Cluster deployed on EC2
USER PERSPECTIVE
“MySQL Cluster exceeds our requirements for low
latency, high throughput performance with
continuous availability, in a single solution that
minimizes complexity and overall cost.”
-- Casey Brown, Manager of Dev & DBA
Services, Docudesk
RESULTS
• Successfully deployed document management solution, eliminating paper trails from legal processes
• Integrate caching and database into one layer, reducing complexity & cost
• Support workload with 50:50 read/write ratio
• Low latency for real-time user experience and document time-stamping
• Continuous database availability
44© 2011 Oracle Corporation
Italtel: MySQL Cluster
• Application> Telecoms application server, integrating Web 2.0
services with mobile networks> Adding presence and location based services> MySQL Cluster stores subscriber and service data
• Key business benefit> Converges telecoms and web-based services> Incremental, low cost scalability
• Why MySQL? > Combined general purpose RDBMS with telecoms
requirements for carrier-grade availability and scalability
> Low cost scale out on commodity ATCA hardware
“We decided to use MySQL for our products because we found that it had wide-spread, proven deployments -- and met our stringent reliability and scalability requirements for the communications industry.” Franco Serio, CTO, Italtel
http://www.mysql.com/customers/view/?id=991
45© 2011 Oracle Corporation
“As one of the leading databases, MySQL Cluster provides high availability, reliable services, andproven ability to scale, satisfying our telco requirements. ”
— Tommy L, Senior Product Manager, UTStarcom
• Applications> IPTV with data base requirements for
eCommerce, OLTP, and data warehousing
• Key Business Benefits> Unlock new revenue streams for operators
with bundled IPTV offering
> Delivered high quality solution to millions of
subscribers
• Why MySQL? > Ensured 99.999% availability
> High performance and scalability
http://www.mysql.com/customers/view/?id=1001
46© 2011 Oracle Corporation
IPTV
“By building our infrastructure on MySQL Cluster, go2 has achieved a more stable environment, improved
our user experience and now have the ability to efficientlyscale our platform with the growth ofthe mobile
web”— Dan Smith, Co-Founder & CEO, go2 Media
• Application– Web-based city entertainment guide, accessed
via mobile devices, with social networking integration
– MySQL Cluster used to store user profiles, preferences and historic session state
• Key business benefits– On-Demand scalability, no up-front investments
– Personalized, low latency user experience
• Why MySQL? – Freedom to download, develop and deploy
without up-front costs
– 99.999% availability, self healing
– High throughput reads and writes, 1,100 QPS
go2 Media: Mobile Media Publishing Platform
47© 2011 Oracle Corporation
facebookApplication
• Social Networking
• 500m users, 50% active per day
• 150m mobile users
• 30bn pieces of content shared per month
• 550k active applications on facebookplatform
• 200 operators in 60 countries deploying Facebook services
Key Business Benefit
MySQL has enabled facebook to grow to 500 million users.
“We are one of the largest MySQL web sites in production. MySQL has been a revolution for young entrepreneurs.”
Owen Van NattaChief Operating Officer
48© 2011 Oracle Corporation
eBay
• Application
Real-time personalization platform to display advertising to more relevant buyers and conduct more effective merchandizing.
• Key Business Benefits
Highly scalable and cost-effective system that handles all of eBay’s personalization and session data needs. Manages 4 billion requests per day of 50/50 read/write operations.
• Why MySQL? Cost-effectivePerformance: 13,000 TPS on Sun Fire x4100Scalability: Designed for 10x future growthMonitoring: MySQL Enterprise Monitor
Chris Kasten, Kernel Framework Group
49© 2011 Oracle Corporation
Wikipedia
Application
Wikipedia is one of the top 10 most trafficked web sites in the world, hosting over 7 million articles in 200 languages.
Key Business Benefit
MySQL has enabled Wikipedia’s annual visitors to grow 50,000 to over 154 million.
Why MySQL?
“Wikipedia relies upon MySQL replication to scale-out their database infrastructure and accommodate more visitors, more articles and more contributors.”
50© 2011 Oracle Corporation
•Subscription:
• MySQL Enterprise
•License (OEM):
• Embedded Server
• Support
•MySQL Cluster
Carrier-Grade
•Training
•Consulting
•NRE
Database
MySQL PS
Support
• MySQL Enterprise Server
• Monthly Rapid Updates
• Quarterly Service Packs
• Hot Fix Program
• Packaged Solutions for EC2
• Database Design, Architecture
• Performance Tuning
• Replication
• Failover, Fault-Tolerance
• Online Self help Knowledge Base
• 24 x 7 x 365 Problem Resolution
• Consultative Help
• High Availability and Scale Out
• Memcached Support
MySQL Enterprise for Amazon EC2
Note: MySQL Enterprise Monitor is not available for Amazon EC2
51© 2011 Oracle Corporation
Deploy Your Own MySQL Database• Amazon Services
• EC2 - Elastic Compute Cloud
• Resizable compute capacity in the cloud
• Several Instance Types
• Standard, High-Memory, High-CPU, Cluster Compute
• EBS - Elastic Block Storage
• Block level storage volumes for use with Amazon EC2 instances
• Data persistence independently from the life of an EC instance
• 1GB to 1TB storage volumes
• S3 - Simple Storage Service
• Store and retrieve any amount of data
• Key/Value storage, 1 byte to 5GB of data per object
• Need to Add
• Maybe memcached servers
• Automatic backups and snapshots
• Replication, HA (Multiple Availability Zones), Instance Failover
• Monitoring and managing updates/patches
• On demand scaling (CPU? Storage? MySQL/EC2 Instances)?
52© 2011 Oracle Corporation
Summary:
Why MySQL
Reliability
Lower TCO Performance
Ease of Use
Why MySQL?
54© 2011 Oracle Corporation
MySQL TCO Savings Calculator
- Term: 3 Years
- Users: Unlimited (web)
- MySQL EE
- Microsoft SQL EE
- Sybase ASE EE
- Hardware: Intel x86
- Servers: 4
- Sockets/Server: 4
- Cores/Socket: 4
55© 2011 Oracle Corporation
MySQL - Performance & Scalability
• MySQL Powers 9 of the Top 10 Web Sites
• Focus on Performance, Not Features to Run
Packaged Applications
• Unique Pluggable Storage Engine Architecture Query
Cache, Optimizer…etc
• MySQL 5.5 Delivers Major Improvements Over
MySQL 5.1:• Up to 370% on Linux
• Up to 1500% on Windows
• MySQL Query Analyzer Helps Improve Performance
56© 2011 Oracle Corporation
MySQL - Reliability
• World’s Most Popular Open Source Database
• Battle-tested in a Wide Variety of Usage Scenarios
• “Given Enough Eyeballs, All Bugs Are Shallow” –
Users Care & Contribute
• #1 Development Priority
• Uptime: High Availability Features & Solutions
• MySQL Replication (incl semi-synchronous
• replication in MySQL 5.5)
• MySQL Cluster
• MySQL Enterprise Monitor & Replication
• Monitor
57© 2011 Oracle Corporation
MySQL - Ease of Use & Administration
• Ease of Use “Designed In”: 15 min Rule
• Over 2,000 OEM/ISVs Distribute MySQL as “Zero
Admin” Embedded Database
• Does Not Require Teams of DBAs
• MySQL Skills Widely Available in the Marketplace
• MySQL Enterprise Edition Tools:
• MySQL Enterprise Monitor
• MySQL Query Analyzer
• MySQL Workbench
• MySQL Enterprise Backup
58© 2011 Oracle Corporation
MySQL Database
• Performance
• Reliability
• Ease of Use
MySQL Enterprise Backup
• Online “Hot” Backup
• Full, Incremental, Partial Backups
• Point in Time Recovery (PITR)
MySQL Enterprise Monitor
• Global Monitoring of All Servers
• Advisors with Best Practice Advice
• MySQL Query Analyzer
MySQL Workbench
• Database Design & Modelling
• Database Administration
• SQL Development
Oracle Premier Support
• Online Knowledge Base
• 24x7 Problem Resolution
• Consultative Support
MySQL Enterprise Edition
59© 2011 Oracle Corporation
MySQL is Powering the Web
Enterprise 2.0SaaS, Cloud
Web OEM / ISV’s
Telecommunications
MySQL Customers
MySQL IS POWERING THE Mobile Internet and Cloud Computing
60© 2011 Oracle Corporation
Ask Kevin Dingkevin.x.ding@oracle +86-18952881429
Qualifying Use Cases
• InnoDB is the default MySQL storage engine, to be used for most
use-cases
• MySQL Cluster is more specialized, for select use-cases
62© 2011 Oracle Corporation
<Insert Picture Here>
SQL vs. NoSQL – Which is Best?
• Answer: Use either or both, whatever best fits your
application
• Different APIs into MySQL Cluster
• Alternative data stores
• Factors to consider:
• Performance & Scalability
• Developer skills & Familiarity with APIs
• Levels of support
• Access patterns (joins needed? Key/value sufficient?)
• Schema changes (online or schema-less)
• Mix & Match!
• MySQL Cluster allows the same data to be accessed
simultaneously through SQL & NoSQL interfaces
63© 2011 Oracle Corporation
• Build update-intensive, highly available services with MySQL Cluster back-
end, accessed via memcached API
• Consolidate caching and database tiers
• Use existing memcached clients & avoid application changes
• Support for update-intensive workloads, eliminate cache invalidation
• Scalable, persistent, HA data store
• Simpler re-use of data across services
NoSQL With NDB APIBest possible performance
64© 2011 Oracle Corporation
MySQL 5.6: NoSQL for InnoDB
65© 2011 Oracle Corporation
MySQL Cluster vs MySQL MEMORY: 30x Higher Throughput / 1/3rd the Latency on a single node
• Table level locking inhibits MEMORY scalability beyond a single client
connection
• Check-pointing & logging enabled, MySQL Cluster still delivers durability
• 4 socket server, 64GB RAM, running Linux
66© 2011 Oracle Corporation