Professional Documents
Culture Documents
© Continuent
4/14/08
What We Will Cover
/ Defining the Scale-Out Problem
/ A Hard Look at MySQL Replication for Scale-Out
/ Can We Do Better?
/ Replication Reloaded: Tungsten Scale-Out Stack
/ How to Get Software and Get Started Today
2 © Continuent
A Word from Our Sponsor: Continuent
/ Company
• Leading provider of database availability solutions for open source
databases
/ Products
• uni/cluster – multi-master database clustering that replicates data across
multiple databases and load balances reads
• Works with off-the-shelf database servers
• Uses “database virtualization” to provide a seamless client interface
/ Value
• Low-cost open source business critical solutions
• Highly available data
• Raise performance and hardware utilization through load balancing
• Remove chance of data loss
3 © Continuent
Defining the Scale-Out Problem
4 4 © Continuent
© Continuent Confidential
Requirement: Availability and Performance
/ Data Availability
• Bring up alternate database after local failure
• Bring up alternate database after site loss
• Keep both sites on-line for immediate failover
• Maintain/upgrade/migrate without disruption
• Restart/restore following data loss or outage due to human error
• Ensure commits to multiple databases and/or sites
• Always accept transactions no matter what
• Stay available in grid environments
/ Performance
• Scale reads transparently
• Scale writes transparently
• Spread transaction load across multiple active sites
• Rapid capacity scaling up/down in grid environments
5 © Continuent
The Dream - Flexible Scale-Out
App
Scalability
App
Db
App
Db
Db
Availability
6 © Continuent
A Hard Look at MySQL Replication
7 7 © Continuent
© Continuent Confidential
MySQL Replication for Scale-Out
8 © Continuent
…But Is It Really That Easy?
9 © Continuent
A Hard Problem -- Master Election after a Crash
Master Slave
New
Slave Slave
Master
Where was I??
10 © Continuent
Customer Feedback from Our Clustering Work
11 © Continuent
MySQL vs. Customer Requirements
12 © Continuent
Can We Do Better?
New Technologies for Scale-Out
13 13 © Continuent
© Continuent Confidential
Continuent Database Clustering History
14 © Continuent
What Have We Learned?
15 © Continuent
What Are the Up-And-Coming Technologies?
16 © Continuent
Replication Reloaded:
The Tungsten Scale-Out Stack
17 17 © Continuent
© Continuent Confidential
Our Goal
18 © Continuent
Tungsten Overview
/ Data Services integrate multiple copies of data within
and across sites into a single highly available,
performant database
/ Database virtualization with controlled data latency
and consistency
/ Database-neutral replication designed for high
availability
/ Cluster-aware management framework backed by
excellent graphical tools
/ “Stack” organization of technology to allow
substitution and extensions
19 © Continuent
An Open, Database-Neutral Scale-Out Stack
Application Stacks
PHP, Perl,
Perl, Java, Ruby, etc.
Tungsten Connector
Native Wire Protocol Proxying;
Proxying; Connection semantics
Tungsten Manager
Cluster-aware service management for LAN/WAN
Bristlecone Hedera
Scale-Out Perf Testing Group Comm Adapters
20 © Continuent
Why Are Stacks So Important?
Tungsten
Sequoia
Replicator
Partioning
Tungsten Manager
Certification-
Based Bristlecone Hedera
Replication
21 © Continuent
Virtualized SQL Connection Semantics
Application Stacks
PHP, Perl,
Perl, Java, Ruby, etc.
Updates
All Updates Own Updates Eventually
Visible Visible Visible
22 © Continuent
High-Availability Replication
Master-master replication Master-slave replication
/ No master failover headaches / Wider range of supported SQL
/ Automatic load balancing / Faster performance
/ Works over WAN
Node Node
23 © Continuent
Managing within and across Sites
Site 2
Administrative
Client
Host Host Host
JMX
Event Bridge
Group Communication
Site 1
24 © Continuent
GUI Tools Demo
25 © Continuent
Now -- Multi-Master Data Services
/ Ensure constant availability and avoid master failure
scenarios
/ Focus: Scalable and easily manageable multi-master
replication
• High quality management tools
• Automatic load balancing of read requests
• 3+ master nodes
• Seamless connections from native clients and Java
• Support for latest MySQL versions and table types
• Solaris and Linux platforms
26 © Continuent
Now -- uni/cluster 2008
LAMP Stack Clients Clients
Client
(PHP, Perl,Applications
C, Ruby, etc.)
Java Clients
uni/cluster Driver
uni/cluster connector
uni/cluster JDBC Driver
DB DB DB DB
Server Server Server Server
27 © Continuent
Phase 1 - Master/Slave Data Services
/ Constant availability with high transparency and
update performance
/ Focus: Seamless upgrade from existing standalone
database
• One-step software installation
• Rapid data service configuration
• Lightweight, multi-platform management tools
• No application code changes
/ High availability replication
• Automatic and manual promotion of slave to master
• Bounded latency between slave and master
• Transparent proxying with read distribution to idle slaves
28 © Continuent
Phase 1 - Master/Slave Data Service
Client Client
Connectors
Tungsten Mamagement Tools
Service Management
29 © Continuent
Phase 2 - Cross-Site Data Services
/ Ensure availability and scaling across sites
/ Focus: Cross-site clustering with efficient failover
• Replication of data to secondary site databases
• Minimal, understandable application changes
• Accept transactions across active systems on multiple sites
/ WAN clustering features
• Tools and admin model for cross-site management
• Handle WAN quality of service (latency, transient failures)
• SQL partitioning
/ Emphasis on WAN solutions that work without corner
cases or data inconsistencies
30 © Continuent
Phase 2 - Cross-Site Data Services
DNS Load Balancing
Read-Only Read-Only
Read/Write Read/Write
Applications, Applications,
Applications Applications
Reports Reports
Connectors
Data Service Connectors
Site 1 Site 2
31 © Continuent
How to Get Software and Get
Started Today
32 32 © Continuent
© Continuent Confidential
Technology Roadmap
/ Uni/cluster 2007.1 is available today!
/ Uni/cluster 2008 available in late Q2
• GUI administrative tools
• Tungsten management framework
• Multiple controllers
/ Tungsten scale-out stack projects will be published
soon
/ Tungsten master/slave services will be available early
Q4
33 © Continuent
Getting Software
/ For access to commercial and open source products,
visit us at the following web addresses
www.continuent.com
www.continuent.org
34 © Continuent
For More on Scale-Out Performance…
Portable Scale-Out
Benchmarks for MySQL
Wednesday 10:50-11:50am
Ballroom D
35 © Continuent
Questions?
Thank you!
36 36 © Continuent
© Continuent Confidential