Matt Aslett of 451 Research joins ScaleBase to discuss: scaling-out your MySQL DB, new high availability strategies, centrally managing a distributed MySQL environment.
25. Who We Are
Presenters: Paul Campaniello,
VP of Global Marketing
25 year technology veteran with
marketing experience at Mendix,
Lumigent, Savantis and Precise.
Doron Levari, Founder & CTO
A technologist and long-time
veteran of the database industry.
Prior to founding ScaleBase, Doron
was CEO to Aluna.
25
26. ScaleBase Mission
“MySQL can cost-effectively
scale to support an infinite
number of application users,
with NO disruption to the existing infrastructure”
26
27. ScaleBase: Scale-Out MySQL - Fix the SPRAIN
Don’t throw out the baby with the bath water!
• Keep your MySQL - keep your InnoDB
• Ecosystem compatibility, preserve skills
• 100% application compatibility
• Smoother migration, no down-time, no forklift
• Your data is safe!
• No “in-memory” magic
• No “in-memory” size limit
27
28. Single-Box Scalability Improvements in MySQL 5.6
Partitioning Improvements Replication Improvements
– Explicit Partition Selection: – Optimizations to Row-Based
SELECT * FROM employees Replication
PARTITION (p0, p2);
– Multi-Threaded Slaves
– Import / Export for Partitioned Tables:
Bring a new data set into a partitioned – Improvements to Data Integrity
table, or export a partition to manage it
as a regular table ALTER TABLE e – Crash-Safe Slaves
EXCHANGE PARTITION p0 WITH – Replication Checksums
TABLE e2;
SCALABILITY issues remain due to the limitations of a single box:
To ensure ACID, you still face limitations with:
- Memory management - Thread management
- Semaphores - Locking
- Recovery tasks
No new functionality for sharing workloads across multiple boxes
28
http://dev.mysql.co/tech-resources/articles/whats-new-in-mysql-5.6.html
30. Scale Out
Read
Write
R/W Splitting
Replication
Data
Distribution
30
31. Read/Write Splitting: Application Experience
Current: App sees master plus multiple slaves
Read Replicas
With ScaleBase: App sees ONE database
31
32. Read/Write Splitting: Application Experience
Current: App sees master plus multiple slaves
Problems:
• Writing code, maintaining code
• Maintaining DB ops and IPs in the app
• Master DB is too occupied
• Slaves are not balanced Read Replicas
• Replication could break
• Stale data may be read
With ScaleBase: App sees ONE database
ScaleBase Benefits:
• Reads/Writes throughput increases
• Better resource utilization/load balancing
• Improved data consistency/transaction isolation with:
• Replication state lag awareness
• Read stickiness after writes
• Handling of edge cases
32
33. Data Distribution: Application Experience
Current: App is customized to support multiple shards
With ScaleBase: App sees ONE database…
…and does not require any customization
33
34. Data Distribution: Application Experience
Current: App is customized to support multiple shards
Problems:
• Major app rewrite, maintaining code
• Maintaining DB ops and IPs in the app
• Administration/3rd party tools are blind
• Non-optimized data distribution policy
With ScaleBase: App sees ONE database…
ScaleBase Benefits:
• Unlimited scalability while improving performance
• Real time elasticity
• Verified data consistency
• Real time monitoring, analysis
• Carefully analyze distribution policy
…and does not require any customization
34
35. Typical ScaleBase Data Traffic Manager Deployment
Database A Replica A
Application
Servers
Database B Replica B
BI
Unlimited Scale
Database C Replica C
Fault Tolerant
Management Architecture
Centrally Manage
Complex DB Database D Replica D
Environment
35
36. ScaleBase Features and Benefits
Feature Benefit
Automatic data distribution Scale data-, read-, write- intensive applications
Expert System Analysis Optimization of data distribution policy
Parallel query execution Best option for cross-db queries & maintenance commands
Support of sophisticated cross-db queries, including ORDER
Query result aggregation
BY, GROUP BY, LIMIT, Aggregate functions…
Flexibility: no need to over-provision
Online data redistribution
No downtime
Read/Write splitting Optimal for scaling of read-intensive applications
Replication lag-based routing Improves data consistency and isolation
Read stickiness after writes Ensure consistent and isolated database operation
100% compatible MySQL proxy Applications unmodified
Standard MySQL tools and interfaces
MySQL databases unmodified Data is safe within MySQL InnoDB/MyISAM/etc.
Data consistency verifier Data consistency validation
Real-time monitoring and alerts Simplify management, reduce TCO
36
37. Scale…without SPRAIN
Scale Your Database With Your Business
160000
140000
120000
100000
Throughput
80000 84000 Throughput (TPM)
Total DB Size (MB)
60000 60000 # Connections
48000
40000
36000
24000 2500
20000 2000
12000 1500 1500
6000 1000
0 500 500
1 2 4 6 8 10 14
Number of Databases
37
38. ScaleBase Delivers Scalability
Real-time DB
Traffic Visibility
Scale
to Automated
Unlimited Failover
Users
…all with NO
App Rewrites
38
39. Detailed Scale-Out Case Studies
Mozilla AppDynamics Large Chip Co Solar Edge
• New Product/ • Next gen APM • Scalability • Next Gen
Next Gen App/ company • Multiple Apps Monitoring App
AppStore • Scalability for the • Multiple growing • Massive Scale
• Scalability Netflix users • Monitors real
• Geo-clustering implementation • Availability time data from
• MySQL DB thousands of
distributed
systems
39
40. Economic Impact
Customer Experience Internal Development
– Faster, more responsive apps, – Developers focus on app, not
even during peak loads writing complex sharding code
– Always on: 24/7 – Eliminate development and
– Improve customer acquisition ongoing maintenance costs
(reduce churn) and brand
Centralized Management
Scale – Troubleshoot problems and
– Use commodity hardware vs. scale- investigate incidents in seconds
up hardware with real-time monitoring
– Cloud ready – deploys easily High Availability
Non-MySQL Options – Eliminate database downtime
– Protect existing investment with no with automated fail-over
ecosystem forklift – Improve business continuity
– Leverage existing MySQL skill set
40
41. ScaleBase Deployment
Environments Path to Scale-Out:
– Public Cloud 1. Data Distribution
Policy Analysis
– AWS, Rackspace, any
2. Functional Test
– Private cloud
3. Load Test
– Hosted / on-premise
4. Production Migration
Databases Supported (safe, online)
– MySQL 5.1, 5.5, 5.6 (under
certification)
– AWS RDS MySQL 5.1, 5.5
– Maria DB 10.0 (under
certification)
41
42. Summary
• MySQL is vast and adoption is growing
• MySQL scalability is a significant problem (SPRAIN)
– App explosion (web & mobile), Big Data transactions…
• ScaleBase provides cost-effective Scale-Out solutions
– Seamlessly scale to an infinite number of users
– Improve DB visibility with real-time monitoring
– Enhance business continuity with
automated failover
– Expert analysis and simple deployment
– No application rewrites
– Leverage existing MySQL ecosystem/skills
42
43. Questions (please enter directly into the GTW side panel)
matt.aslett@451research.com paul.campaniello@scalebase.com
doron.levari@scalebase.com
@maslett
@scalebase
@451research
www.ScaleBase.com
www.451research.com 617.630.2800
43