SlideShare une entreprise Scribd logo
1  sur  22
Télécharger pour lire hors ligne
Webinar
Scaling MySQL: Scale Up versus Scale Out
August 16, 2012
Agenda


       1. Who We Are

       2. The Scalability Problem

       3. Scale Up vs. Scale Out

       4. Customer ROI/Case Studies

       5. Q & A
          (please type questions directly into the GoToWebinar side panel)




2
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
            A technologist and long-time
          veteran of the database industry.
         Prior to founding ScaleBase, Doron
                  was CEO to Aluna.


3
Pain Points – The Scalability Problem

• Thousands of new online and mobile
  apps launching every day
• Demand climbs for these apps and
  databases can’t keep up
• App must provide uninterrupted
  access and availability
• Database performance and
  scalability is critical




4
Big Data = Big Scaling Needs

       Big Data = Transactions + Interactions + Observations
               Sensors/RFID/Devices      Mobile Web       User Generated Content        Spatial & GPS Coordinates




                                                                                                                            BIG DATA
Petabytes      User Click Stream         Sentiment        Social Interactions & Feeds


               Web Logs               Dynamic Pricing       Search Marketing




                                                                                                 WEB
               Offer History          A/B Testing           Affiliate Networks
Terabytes                                                                                                 External
                                                                                                          Demographics
               Segmentation           Customer Touches




                                                                                 CRM
                                                                                                          Business Data
               Offer Details          Support Contacts                                                    Feeds


Gigabytes
                                                                                                  HD Video, Audio, Images
                                                                                   Behavioral
                                                    ERP


                    Purchase Detail
                                                                                   Targeting      Speech to Text
                    Purchase Record
                                                                                                  Product/Service Logs
                    Payment Record                                                 Dynamic
                                                                                   Funnels
                                                                                                  SMS/MMS
Megabytes



                                      Increasing Data Variety and Complexity

   5
                                           The 451 Group & Teradata
Scalability Pain



Infrastructure
Cost $
                   Large                     You just lost
                   Capital                    customers
                 Expenditure


                                                         Predicted
                                                         Demand

                               Opportunity                   Traditional
                                 Cost                        Hardware

                                                             Actual
                                                             Demand

                                                         Dynamic
                                                         Scaling


                                                                      time


    6
Scale Up

                                             http://forge.mysql.com/wiki/Top10SQLPerformanceTips
                                             innodb_buffer_pool_size
                                Instance     query_cache_size
                                 Tuning



                                                                        EXPLAIN
               SSD                                  SQL Tuning          Indexes
                                                                        SELECT *
                                                                        DISTINCT vs. GROUP BY




                     Hardware
                                           Partitioning
                      Upscale

7
Partitioning Performance

    • See excellent presentation by Giuseppe Maxia from 2010
       – http://www.slideshare.net/datacharmer/partitions-performance-with-
         mysql-51-and-55

               Engine    No Partitions   Partitions
               InnoDB    4min 30s        13.19s
               MyISAM    25.03s          4.45s

    • Keeps data objects at their sweet spot
    • Helps fit indexes in RAM
    • Distributes sessions load over disks




8
Scaling Up Hardware

    • Usually DB gets the strongest servers
    • However – there is a limit to how much performance
      improvement can be derived from increasing hardware
    • Some data:




        http://www.mysqlperformanceblog.com/2011/01/26/modeling-innodb-
                         scalability-on-multi-core-servers/

9
Scale Up Pros & Cons

Pros                                  Cons
May result in major performance       Tedious, never ending…
improvements
Mostly transparent to the application SQL modifications are not always an option
HW upscale is easy                    Expensive
                                      Requires unique skill set
                                      Requires downtime
                                      Limited. At one (near) point – the database engine
                                      itself becomes the bottleneck




10
The Database Engine is the Bottleneck...

 • Every write operation is At Least 4 write operations inside the DB:
     – Data segment
     – Index segment
     – Undo segment
     – Transaction log
 • And Multiple Activities in the DB engine memory:
     – Buffer management
     – Locking
     – Thread locks/semaphores
     – Recovery tasks




11
The Database Engine is the Bottleneck

 • Every write operation is At Least 4 write operations inside the DB:
     – Data segment
     – Index segment
     – Undo segment
                                             Now multiply
    – Transaction log
                                              by 10TB and
 • And Multiple Activities in the DB engine memory:
                                                 10,000
    – Buffer management                        concurrent
    – Locking                                   sessions
     – Thread locks/semaphores
     – Recovery tasks




12
Scale Out (two methods)
                                             Read

                                             Write

         Read/Write
1
          Splitting

                               Replication




    Data Distribution
2
       (sharding)




    13
Read/Write Splitting

 • Write to master, read from (1 or more) slaves
 • Good for scaling reads
     – Although big data is still big data

 • Not good for scaling writes
 • Many issues:
     – A-synchronous replication’s lag – read might not be up to date
     – A “query my update” inside a transaction will always be out of date
     – Adhere transactions isolation with stickiness?
     – Requires code changes




14
Data Distribution (sharding)

 • If done right and all the way:
        – The ultimate scaling machine
        – Provides significant performance improvements
        – The only way to really improve read and also writes
 • However if done in-house, (and not done properly), it can cause:
        – Substantial development efforts
        – Silos of data with no merging




     http://www.scalebase.com/don’t-ever-ever-write-your-own-sharding-code
15
Scale Out Features and Benefits

     Feature                                  Benefit
     Automatic data distribution (sharding)   Scale data-, read-, write- intensive applications
                                              Great performance of cross-db queries & maintenance
       Parallel query execution
                                              commands
                                              Support of sophisticated cross-db queries, even with ORDER
       Query result aggregation
                                              BY, GROUP BY, LIMIT, Aggregate functions…
                                              Flexibility: no need to over-provision
       Online data redistribution
                                              No downtime
     Read/Write splitting                     Easily scale 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 untouched                Data is safe within MySQL InnoDB/MyISAM/any

     Data distribution review and analysis    Optimization of data distribution policy

     Data consistency verifier                Validate system-wide data consistency

     Real-time monitoring and alerts          Simplify management, reduce TCO
16
Scale Out Provides Immediate & Tangible Value



     Application Server            Database A    Standby A




     Application Server           Database B     Standby B




                                  Database C    Standby C
            BI




                                 Database D     Standby D
       Management

17
Typical Scale Out (ScaleBase) Deployment



     Application Server                           Database A    Standby A
                              ScaleBase
                          Central Management




     Application Server                           Database B    Standby B


                               ScaleBase
                          Data Traffic Manager



                                                 Database C    Standby C
            BI




                                                 Database D    Standby D
       Management

18
Scaling Out Achieves Unlimited Scalability

             160000

             140000

             120000

             100000
Throughput




                                                                                               84000
             80000                                                                                     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

     19
Summary

     • Database scalability is a significant problem
         – Growing trends such as Big Data and mobile only compound it
     • Scale Up helps somewhat, but has limitations

     • Scale Out provides a longer term and more cost effective solution

     • ScaleBase has an effective scale out solution with a proven ROI
         – ScaleBase improves performance and requires NO changes to your
           existing infrastructure




20
Questions (please enter directly into the GTW side panel)



617.630.2800

www.ScaleBase.com

doron.levari@scalebase.com

paul.campaniello@scalebase.com


21
Thank You
22

Contenu connexe

Tendances

Mike Stolz Dramatic Scalability
Mike Stolz Dramatic ScalabilityMike Stolz Dramatic Scalability
Mike Stolz Dramatic Scalabilitydeimos
 
Elastic caching for scalability, dynamic growth and performance
Elastic caching for scalability, dynamic growth and performanceElastic caching for scalability, dynamic growth and performance
Elastic caching for scalability, dynamic growth and performancecathylums
 
Semiconductor E-commerce Platform Solutions
Semiconductor E-commerce Platform SolutionsSemiconductor E-commerce Platform Solutions
Semiconductor E-commerce Platform SolutionsInfosys
 
Datawarehouse på System z (IBM Systems z)
Datawarehouse på System z (IBM Systems z)Datawarehouse på System z (IBM Systems z)
Datawarehouse på System z (IBM Systems z)IBM Danmark
 
Sql server 2012 smart dive presentation 20120126
Sql server 2012 smart dive presentation 20120126Sql server 2012 smart dive presentation 20120126
Sql server 2012 smart dive presentation 20120126Andrew Mauch
 
Certified Technology Program Overview
Certified Technology Program OverviewCertified Technology Program Overview
Certified Technology Program Overviewbillwoerner
 
Envision IT Seminar Presentation - Microsoft Office 365
Envision IT Seminar Presentation - Microsoft Office 365 Envision IT Seminar Presentation - Microsoft Office 365
Envision IT Seminar Presentation - Microsoft Office 365 Envision IT
 
Tackling big data with hadoop and open source integration
Tackling big data with hadoop and open source integrationTackling big data with hadoop and open source integration
Tackling big data with hadoop and open source integrationDataWorks Summit
 
Hadoop's Opportunity to Power Next-Generation Architectures
Hadoop's Opportunity to Power Next-Generation ArchitecturesHadoop's Opportunity to Power Next-Generation Architectures
Hadoop's Opportunity to Power Next-Generation ArchitecturesDataWorks Summit
 
Managing Unprecedented Change with Business Transformation
Managing Unprecedented Change with Business TransformationManaging Unprecedented Change with Business Transformation
Managing Unprecedented Change with Business TransformationCisco Canada
 
AWS Partner Presentation - Riverbed
AWS Partner Presentation - RiverbedAWS Partner Presentation - Riverbed
AWS Partner Presentation - RiverbedAmazon Web Services
 
Smart Micro Credit Business Suite
Smart Micro Credit Business SuiteSmart Micro Credit Business Suite
Smart Micro Credit Business SuiteFahad Iftikhar
 
Knowledge Stream Corporate Presentation New
Knowledge Stream Corporate Presentation NewKnowledge Stream Corporate Presentation New
Knowledge Stream Corporate Presentation NewKrishnanmenon
 
Gordon baisley - eircom - Introducing the EDM role with www.softtest.ie
Gordon baisley - eircom - Introducing the EDM role with www.softtest.ieGordon baisley - eircom - Introducing the EDM role with www.softtest.ie
Gordon baisley - eircom - Introducing the EDM role with www.softtest.ieDavid O'Dowd
 
Carpathia Hosting Inc Corporate Overview 03252009
Carpathia Hosting Inc Corporate Overview 03252009Carpathia Hosting Inc Corporate Overview 03252009
Carpathia Hosting Inc Corporate Overview 03252009Bill Alatis
 
Maximize your ax roi leveraging mobile apps
Maximize your ax roi leveraging mobile appsMaximize your ax roi leveraging mobile apps
Maximize your ax roi leveraging mobile appsINDUSA Technical Corp.
 
Emakina Academy 5 - Boost your intranet - Key factors of success when buildin...
Emakina Academy 5 - Boost your intranet - Key factors of success when buildin...Emakina Academy 5 - Boost your intranet - Key factors of success when buildin...
Emakina Academy 5 - Boost your intranet - Key factors of success when buildin...Emakina
 

Tendances (20)

Mike Stolz Dramatic Scalability
Mike Stolz Dramatic ScalabilityMike Stolz Dramatic Scalability
Mike Stolz Dramatic Scalability
 
Elastic caching for scalability, dynamic growth and performance
Elastic caching for scalability, dynamic growth and performanceElastic caching for scalability, dynamic growth and performance
Elastic caching for scalability, dynamic growth and performance
 
Semiconductor E-commerce Platform Solutions
Semiconductor E-commerce Platform SolutionsSemiconductor E-commerce Platform Solutions
Semiconductor E-commerce Platform Solutions
 
Datawarehouse på System z (IBM Systems z)
Datawarehouse på System z (IBM Systems z)Datawarehouse på System z (IBM Systems z)
Datawarehouse på System z (IBM Systems z)
 
Sql server 2012 smart dive presentation 20120126
Sql server 2012 smart dive presentation 20120126Sql server 2012 smart dive presentation 20120126
Sql server 2012 smart dive presentation 20120126
 
Certified Technology Program Overview
Certified Technology Program OverviewCertified Technology Program Overview
Certified Technology Program Overview
 
2012 06 hortonworks paris hug
2012 06 hortonworks paris hug2012 06 hortonworks paris hug
2012 06 hortonworks paris hug
 
Envision IT Seminar Presentation - Microsoft Office 365
Envision IT Seminar Presentation - Microsoft Office 365 Envision IT Seminar Presentation - Microsoft Office 365
Envision IT Seminar Presentation - Microsoft Office 365
 
Search2012 ibm vf
Search2012 ibm vfSearch2012 ibm vf
Search2012 ibm vf
 
Tackling big data with hadoop and open source integration
Tackling big data with hadoop and open source integrationTackling big data with hadoop and open source integration
Tackling big data with hadoop and open source integration
 
Hadoop's Opportunity to Power Next-Generation Architectures
Hadoop's Opportunity to Power Next-Generation ArchitecturesHadoop's Opportunity to Power Next-Generation Architectures
Hadoop's Opportunity to Power Next-Generation Architectures
 
Managing Unprecedented Change with Business Transformation
Managing Unprecedented Change with Business TransformationManaging Unprecedented Change with Business Transformation
Managing Unprecedented Change with Business Transformation
 
AWS Partner Presentation - Riverbed
AWS Partner Presentation - RiverbedAWS Partner Presentation - Riverbed
AWS Partner Presentation - Riverbed
 
Smart Micro Credit Business Suite
Smart Micro Credit Business SuiteSmart Micro Credit Business Suite
Smart Micro Credit Business Suite
 
Knowledge Stream Corporate Presentation New
Knowledge Stream Corporate Presentation NewKnowledge Stream Corporate Presentation New
Knowledge Stream Corporate Presentation New
 
Gordon baisley - eircom - Introducing the EDM role with www.softtest.ie
Gordon baisley - eircom - Introducing the EDM role with www.softtest.ieGordon baisley - eircom - Introducing the EDM role with www.softtest.ie
Gordon baisley - eircom - Introducing the EDM role with www.softtest.ie
 
Carpathia Hosting Inc Corporate Overview 03252009
Carpathia Hosting Inc Corporate Overview 03252009Carpathia Hosting Inc Corporate Overview 03252009
Carpathia Hosting Inc Corporate Overview 03252009
 
Maximize your ax roi leveraging mobile apps
Maximize your ax roi leveraging mobile appsMaximize your ax roi leveraging mobile apps
Maximize your ax roi leveraging mobile apps
 
Intel and Big Data
Intel and Big DataIntel and Big Data
Intel and Big Data
 
Emakina Academy 5 - Boost your intranet - Key factors of success when buildin...
Emakina Academy 5 - Boost your intranet - Key factors of success when buildin...Emakina Academy 5 - Boost your intranet - Key factors of success when buildin...
Emakina Academy 5 - Boost your intranet - Key factors of success when buildin...
 

Similaire à ScaleBase Webinar 8.16: ScaleUp vs. ScaleOut

Unified big data architecture
Unified big data architectureUnified big data architecture
Unified big data architectureDataWorks Summit
 
Talk IT_ Oracle_김태완_110831
Talk IT_ Oracle_김태완_110831Talk IT_ Oracle_김태완_110831
Talk IT_ Oracle_김태완_110831Cana Ko
 
The Comprehensive Approach: A Unified Information Architecture
The Comprehensive Approach: A Unified Information ArchitectureThe Comprehensive Approach: A Unified Information Architecture
The Comprehensive Approach: A Unified Information ArchitectureInside Analysis
 
Talend Open Studio and Hortonworks Data Platform
Talend Open Studio and Hortonworks Data PlatformTalend Open Studio and Hortonworks Data Platform
Talend Open Studio and Hortonworks Data PlatformHortonworks
 
Asug SAP HANA Presentation - Perceptive Technologies SAP
Asug SAP HANA Presentation - Perceptive Technologies SAPAsug SAP HANA Presentation - Perceptive Technologies SAP
Asug SAP HANA Presentation - Perceptive Technologies SAPBrendan Kane
 
Infomation models for agile bi
Infomation models for agile biInfomation models for agile bi
Infomation models for agile biEhtisham Rao
 
Powering Next Generation Data Architecture With Apache Hadoop
Powering Next Generation Data Architecture With Apache HadoopPowering Next Generation Data Architecture With Apache Hadoop
Powering Next Generation Data Architecture With Apache HadoopHortonworks
 
Big Data, Hadoop, Hortonworks and Microsoft HDInsight
Big Data, Hadoop, Hortonworks and Microsoft HDInsightBig Data, Hadoop, Hortonworks and Microsoft HDInsight
Big Data, Hadoop, Hortonworks and Microsoft HDInsightHortonworks
 
The Next Generation of Big Data Analytics
The Next Generation of Big Data AnalyticsThe Next Generation of Big Data Analytics
The Next Generation of Big Data AnalyticsHortonworks
 
Farklı Ortamlarda Büyük Veri Kavramı -Big Data by Sybase
Farklı Ortamlarda Büyük Veri Kavramı -Big Data by Sybase Farklı Ortamlarda Büyük Veri Kavramı -Big Data by Sybase
Farklı Ortamlarda Büyük Veri Kavramı -Big Data by Sybase Sybase Türkiye
 
Big Data Analytics in a Heterogeneous World - Joydeep Das of Sybase
Big Data Analytics in a Heterogeneous World - Joydeep Das of SybaseBig Data Analytics in a Heterogeneous World - Joydeep Das of Sybase
Big Data Analytics in a Heterogeneous World - Joydeep Das of SybaseBigDataCloud
 
Information Management: Answering Today’s Enterprise Challenge
Information Management: Answering Today’s Enterprise ChallengeInformation Management: Answering Today’s Enterprise Challenge
Information Management: Answering Today’s Enterprise ChallengeBob Rhubart
 
Q3 2009 Small Business Specialist Pal Meeting February 2009 Final
Q3 2009 Small Business Specialist Pal Meeting February 2009 FinalQ3 2009 Small Business Specialist Pal Meeting February 2009 Final
Q3 2009 Small Business Specialist Pal Meeting February 2009 Finalvriyait
 
Guy Nirpaz Next Gen App Servers
Guy Nirpaz Next Gen App ServersGuy Nirpaz Next Gen App Servers
Guy Nirpaz Next Gen App Serversdeimos
 
Measure Data Quality
Measure Data QualityMeasure Data Quality
Measure Data QualityZavalaJV
 
Albel pres mdm implementation
Albel pres   mdm implementationAlbel pres   mdm implementation
Albel pres mdm implementationAli BELCAID
 
The Evolution of Platforms - Drew Kurth and Matt Comstock
The Evolution of Platforms - Drew Kurth and Matt ComstockThe Evolution of Platforms - Drew Kurth and Matt Comstock
The Evolution of Platforms - Drew Kurth and Matt ComstockRazorfish
 
Informatica World 2006 - MDM Data Quality
Informatica World 2006 - MDM Data QualityInformatica World 2006 - MDM Data Quality
Informatica World 2006 - MDM Data QualityDatabase Architechs
 
Make Your Business More Flexible with Scalable Business Process Management So...
Make Your Business More Flexible with Scalable Business Process Management So...Make Your Business More Flexible with Scalable Business Process Management So...
Make Your Business More Flexible with Scalable Business Process Management So...Perficient, Inc.
 

Similaire à ScaleBase Webinar 8.16: ScaleUp vs. ScaleOut (20)

Unified big data architecture
Unified big data architectureUnified big data architecture
Unified big data architecture
 
Talk IT_ Oracle_김태완_110831
Talk IT_ Oracle_김태완_110831Talk IT_ Oracle_김태완_110831
Talk IT_ Oracle_김태완_110831
 
The Comprehensive Approach: A Unified Information Architecture
The Comprehensive Approach: A Unified Information ArchitectureThe Comprehensive Approach: A Unified Information Architecture
The Comprehensive Approach: A Unified Information Architecture
 
vBACD July 2012 - Apache Hadoop, Now and Beyond
vBACD July 2012 - Apache Hadoop, Now and BeyondvBACD July 2012 - Apache Hadoop, Now and Beyond
vBACD July 2012 - Apache Hadoop, Now and Beyond
 
Talend Open Studio and Hortonworks Data Platform
Talend Open Studio and Hortonworks Data PlatformTalend Open Studio and Hortonworks Data Platform
Talend Open Studio and Hortonworks Data Platform
 
Asug SAP HANA Presentation - Perceptive Technologies SAP
Asug SAP HANA Presentation - Perceptive Technologies SAPAsug SAP HANA Presentation - Perceptive Technologies SAP
Asug SAP HANA Presentation - Perceptive Technologies SAP
 
Infomation models for agile bi
Infomation models for agile biInfomation models for agile bi
Infomation models for agile bi
 
Powering Next Generation Data Architecture With Apache Hadoop
Powering Next Generation Data Architecture With Apache HadoopPowering Next Generation Data Architecture With Apache Hadoop
Powering Next Generation Data Architecture With Apache Hadoop
 
Big Data, Hadoop, Hortonworks and Microsoft HDInsight
Big Data, Hadoop, Hortonworks and Microsoft HDInsightBig Data, Hadoop, Hortonworks and Microsoft HDInsight
Big Data, Hadoop, Hortonworks and Microsoft HDInsight
 
The Next Generation of Big Data Analytics
The Next Generation of Big Data AnalyticsThe Next Generation of Big Data Analytics
The Next Generation of Big Data Analytics
 
Farklı Ortamlarda Büyük Veri Kavramı -Big Data by Sybase
Farklı Ortamlarda Büyük Veri Kavramı -Big Data by Sybase Farklı Ortamlarda Büyük Veri Kavramı -Big Data by Sybase
Farklı Ortamlarda Büyük Veri Kavramı -Big Data by Sybase
 
Big Data Analytics in a Heterogeneous World - Joydeep Das of Sybase
Big Data Analytics in a Heterogeneous World - Joydeep Das of SybaseBig Data Analytics in a Heterogeneous World - Joydeep Das of Sybase
Big Data Analytics in a Heterogeneous World - Joydeep Das of Sybase
 
Information Management: Answering Today’s Enterprise Challenge
Information Management: Answering Today’s Enterprise ChallengeInformation Management: Answering Today’s Enterprise Challenge
Information Management: Answering Today’s Enterprise Challenge
 
Q3 2009 Small Business Specialist Pal Meeting February 2009 Final
Q3 2009 Small Business Specialist Pal Meeting February 2009 FinalQ3 2009 Small Business Specialist Pal Meeting February 2009 Final
Q3 2009 Small Business Specialist Pal Meeting February 2009 Final
 
Guy Nirpaz Next Gen App Servers
Guy Nirpaz Next Gen App ServersGuy Nirpaz Next Gen App Servers
Guy Nirpaz Next Gen App Servers
 
Measure Data Quality
Measure Data QualityMeasure Data Quality
Measure Data Quality
 
Albel pres mdm implementation
Albel pres   mdm implementationAlbel pres   mdm implementation
Albel pres mdm implementation
 
The Evolution of Platforms - Drew Kurth and Matt Comstock
The Evolution of Platforms - Drew Kurth and Matt ComstockThe Evolution of Platforms - Drew Kurth and Matt Comstock
The Evolution of Platforms - Drew Kurth and Matt Comstock
 
Informatica World 2006 - MDM Data Quality
Informatica World 2006 - MDM Data QualityInformatica World 2006 - MDM Data Quality
Informatica World 2006 - MDM Data Quality
 
Make Your Business More Flexible with Scalable Business Process Management So...
Make Your Business More Flexible with Scalable Business Process Management So...Make Your Business More Flexible with Scalable Business Process Management So...
Make Your Business More Flexible with Scalable Business Process Management So...
 

Plus de ScaleBase

Distributed RDBMS: Data Distribution Policy: Part 3 - Changing Your Data Dist...
Distributed RDBMS: Data Distribution Policy: Part 3 - Changing Your Data Dist...Distributed RDBMS: Data Distribution Policy: Part 3 - Changing Your Data Dist...
Distributed RDBMS: Data Distribution Policy: Part 3 - Changing Your Data Dist...ScaleBase
 
Distributed RDBMS: Data Distribution Policy: Part 2 - Creating a Data Distrib...
Distributed RDBMS: Data Distribution Policy: Part 2 - Creating a Data Distrib...Distributed RDBMS: Data Distribution Policy: Part 2 - Creating a Data Distrib...
Distributed RDBMS: Data Distribution Policy: Part 2 - Creating a Data Distrib...ScaleBase
 
Distributed RDBMS: Data Distribution Policy: Part 1 - What is a Data Distribu...
Distributed RDBMS: Data Distribution Policy: Part 1 - What is a Data Distribu...Distributed RDBMS: Data Distribution Policy: Part 1 - What is a Data Distribu...
Distributed RDBMS: Data Distribution Policy: Part 1 - What is a Data Distribu...ScaleBase
 
Challenges in Querying a Distributed Relational Database
Challenges in Querying a Distributed Relational DatabaseChallenges in Querying a Distributed Relational Database
Challenges in Querying a Distributed Relational DatabaseScaleBase
 
Database Scalability - The Shard Conflict
Database Scalability - The Shard ConflictDatabase Scalability - The Shard Conflict
Database Scalability - The Shard ConflictScaleBase
 
ScaleBase Webinar: Scaling MySQL - Sharding Made Easy!
ScaleBase Webinar: Scaling MySQL - Sharding Made Easy!ScaleBase Webinar: Scaling MySQL - Sharding Made Easy!
ScaleBase Webinar: Scaling MySQL - Sharding Made Easy!ScaleBase
 
ScaleBase Webinar: Strategies for scaling MySQL
ScaleBase Webinar: Strategies for scaling MySQLScaleBase Webinar: Strategies for scaling MySQL
ScaleBase Webinar: Strategies for scaling MySQLScaleBase
 
Choosing a Next Gen Database: the New World Order of NoSQL, NewSQL, and MySQL
Choosing a Next Gen Database: the New World Order of NoSQL, NewSQL, and MySQLChoosing a Next Gen Database: the New World Order of NoSQL, NewSQL, and MySQL
Choosing a Next Gen Database: the New World Order of NoSQL, NewSQL, and MySQLScaleBase
 
ScaleBase Backs Mozilla's new app store
ScaleBase Backs Mozilla's new app storeScaleBase Backs Mozilla's new app store
ScaleBase Backs Mozilla's new app storeScaleBase
 

Plus de ScaleBase (9)

Distributed RDBMS: Data Distribution Policy: Part 3 - Changing Your Data Dist...
Distributed RDBMS: Data Distribution Policy: Part 3 - Changing Your Data Dist...Distributed RDBMS: Data Distribution Policy: Part 3 - Changing Your Data Dist...
Distributed RDBMS: Data Distribution Policy: Part 3 - Changing Your Data Dist...
 
Distributed RDBMS: Data Distribution Policy: Part 2 - Creating a Data Distrib...
Distributed RDBMS: Data Distribution Policy: Part 2 - Creating a Data Distrib...Distributed RDBMS: Data Distribution Policy: Part 2 - Creating a Data Distrib...
Distributed RDBMS: Data Distribution Policy: Part 2 - Creating a Data Distrib...
 
Distributed RDBMS: Data Distribution Policy: Part 1 - What is a Data Distribu...
Distributed RDBMS: Data Distribution Policy: Part 1 - What is a Data Distribu...Distributed RDBMS: Data Distribution Policy: Part 1 - What is a Data Distribu...
Distributed RDBMS: Data Distribution Policy: Part 1 - What is a Data Distribu...
 
Challenges in Querying a Distributed Relational Database
Challenges in Querying a Distributed Relational DatabaseChallenges in Querying a Distributed Relational Database
Challenges in Querying a Distributed Relational Database
 
Database Scalability - The Shard Conflict
Database Scalability - The Shard ConflictDatabase Scalability - The Shard Conflict
Database Scalability - The Shard Conflict
 
ScaleBase Webinar: Scaling MySQL - Sharding Made Easy!
ScaleBase Webinar: Scaling MySQL - Sharding Made Easy!ScaleBase Webinar: Scaling MySQL - Sharding Made Easy!
ScaleBase Webinar: Scaling MySQL - Sharding Made Easy!
 
ScaleBase Webinar: Strategies for scaling MySQL
ScaleBase Webinar: Strategies for scaling MySQLScaleBase Webinar: Strategies for scaling MySQL
ScaleBase Webinar: Strategies for scaling MySQL
 
Choosing a Next Gen Database: the New World Order of NoSQL, NewSQL, and MySQL
Choosing a Next Gen Database: the New World Order of NoSQL, NewSQL, and MySQLChoosing a Next Gen Database: the New World Order of NoSQL, NewSQL, and MySQL
Choosing a Next Gen Database: the New World Order of NoSQL, NewSQL, and MySQL
 
ScaleBase Backs Mozilla's new app store
ScaleBase Backs Mozilla's new app storeScaleBase Backs Mozilla's new app store
ScaleBase Backs Mozilla's new app store
 

Dernier

Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 

Dernier (20)

Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 

ScaleBase Webinar 8.16: ScaleUp vs. ScaleOut

  • 1. Webinar Scaling MySQL: Scale Up versus Scale Out August 16, 2012
  • 2. Agenda 1. Who We Are 2. The Scalability Problem 3. Scale Up vs. Scale Out 4. Customer ROI/Case Studies 5. Q & A (please type questions directly into the GoToWebinar side panel) 2
  • 3. 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 A technologist and long-time veteran of the database industry. Prior to founding ScaleBase, Doron was CEO to Aluna. 3
  • 4. Pain Points – The Scalability Problem • Thousands of new online and mobile apps launching every day • Demand climbs for these apps and databases can’t keep up • App must provide uninterrupted access and availability • Database performance and scalability is critical 4
  • 5. Big Data = Big Scaling Needs Big Data = Transactions + Interactions + Observations Sensors/RFID/Devices Mobile Web User Generated Content Spatial & GPS Coordinates BIG DATA Petabytes User Click Stream Sentiment Social Interactions & Feeds Web Logs Dynamic Pricing Search Marketing WEB Offer History A/B Testing Affiliate Networks Terabytes External Demographics Segmentation Customer Touches CRM Business Data Offer Details Support Contacts Feeds Gigabytes HD Video, Audio, Images Behavioral ERP Purchase Detail Targeting Speech to Text Purchase Record Product/Service Logs Payment Record Dynamic Funnels SMS/MMS Megabytes Increasing Data Variety and Complexity 5 The 451 Group & Teradata
  • 6. Scalability Pain Infrastructure Cost $ Large You just lost Capital customers Expenditure Predicted Demand Opportunity Traditional Cost Hardware Actual Demand Dynamic Scaling time 6
  • 7. Scale Up http://forge.mysql.com/wiki/Top10SQLPerformanceTips innodb_buffer_pool_size Instance query_cache_size Tuning EXPLAIN SSD SQL Tuning Indexes SELECT * DISTINCT vs. GROUP BY Hardware Partitioning Upscale 7
  • 8. Partitioning Performance • See excellent presentation by Giuseppe Maxia from 2010 – http://www.slideshare.net/datacharmer/partitions-performance-with- mysql-51-and-55 Engine No Partitions Partitions InnoDB 4min 30s 13.19s MyISAM 25.03s 4.45s • Keeps data objects at their sweet spot • Helps fit indexes in RAM • Distributes sessions load over disks 8
  • 9. Scaling Up Hardware • Usually DB gets the strongest servers • However – there is a limit to how much performance improvement can be derived from increasing hardware • Some data: http://www.mysqlperformanceblog.com/2011/01/26/modeling-innodb- scalability-on-multi-core-servers/ 9
  • 10. Scale Up Pros & Cons Pros Cons May result in major performance Tedious, never ending… improvements Mostly transparent to the application SQL modifications are not always an option HW upscale is easy Expensive Requires unique skill set Requires downtime Limited. At one (near) point – the database engine itself becomes the bottleneck 10
  • 11. The Database Engine is the Bottleneck... • Every write operation is At Least 4 write operations inside the DB: – Data segment – Index segment – Undo segment – Transaction log • And Multiple Activities in the DB engine memory: – Buffer management – Locking – Thread locks/semaphores – Recovery tasks 11
  • 12. The Database Engine is the Bottleneck • Every write operation is At Least 4 write operations inside the DB: – Data segment – Index segment – Undo segment Now multiply – Transaction log by 10TB and • And Multiple Activities in the DB engine memory: 10,000 – Buffer management concurrent – Locking sessions – Thread locks/semaphores – Recovery tasks 12
  • 13. Scale Out (two methods) Read Write Read/Write 1 Splitting Replication Data Distribution 2 (sharding) 13
  • 14. Read/Write Splitting • Write to master, read from (1 or more) slaves • Good for scaling reads – Although big data is still big data • Not good for scaling writes • Many issues: – A-synchronous replication’s lag – read might not be up to date – A “query my update” inside a transaction will always be out of date – Adhere transactions isolation with stickiness? – Requires code changes 14
  • 15. Data Distribution (sharding) • If done right and all the way: – The ultimate scaling machine – Provides significant performance improvements – The only way to really improve read and also writes • However if done in-house, (and not done properly), it can cause: – Substantial development efforts – Silos of data with no merging http://www.scalebase.com/don’t-ever-ever-write-your-own-sharding-code 15
  • 16. Scale Out Features and Benefits Feature Benefit Automatic data distribution (sharding) Scale data-, read-, write- intensive applications Great performance of cross-db queries & maintenance  Parallel query execution commands Support of sophisticated cross-db queries, even with ORDER  Query result aggregation BY, GROUP BY, LIMIT, Aggregate functions… Flexibility: no need to over-provision  Online data redistribution No downtime Read/Write splitting Easily scale 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 untouched Data is safe within MySQL InnoDB/MyISAM/any Data distribution review and analysis Optimization of data distribution policy Data consistency verifier Validate system-wide data consistency Real-time monitoring and alerts Simplify management, reduce TCO 16
  • 17. Scale Out Provides Immediate & Tangible Value Application Server Database A Standby A Application Server Database B Standby B Database C Standby C BI Database D Standby D Management 17
  • 18. Typical Scale Out (ScaleBase) Deployment Application Server Database A Standby A ScaleBase Central Management Application Server Database B Standby B ScaleBase Data Traffic Manager Database C Standby C BI Database D Standby D Management 18
  • 19. Scaling Out Achieves Unlimited Scalability 160000 140000 120000 100000 Throughput 84000 80000 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 19
  • 20. Summary • Database scalability is a significant problem – Growing trends such as Big Data and mobile only compound it • Scale Up helps somewhat, but has limitations • Scale Out provides a longer term and more cost effective solution • ScaleBase has an effective scale out solution with a proven ROI – ScaleBase improves performance and requires NO changes to your existing infrastructure 20
  • 21. Questions (please enter directly into the GTW side panel) 617.630.2800 www.ScaleBase.com doron.levari@scalebase.com paul.campaniello@scalebase.com 21