SlideShare une entreprise Scribd logo
1  sur  34
Télécharger pour lire hors ligne
MySQL in the Cloud
    Tricks and Tradeoffs

      Thorsten von Eicken
        CTO RightScale



          © 2009 RightScale Inc — All rights reserved
1
MySQL & Amazon EC2 @RightScale
    • Operating in Amazon EC2 since fall 2006
    • Cloud Computing Management System
    • Replicated MySQL product offering mid ‘07
      – 100’s of customer deployments
      – Automation to launch slaves, failover, backup, …
    • Animoto.com scaled to 4000 servers in 3.5 days




                        © 2009 RightScale Inc — All rights reserved
2
Cloud Computing & Databases
                                                                       As many DB
                                                                       machines as
    1.   Infinite computing resources                                  you want!
    2.   Available on-demand
                                                                       No cost for
    3.   Pay per use
                                                                       short periods
    4.   Delivered across the Internet
                                                                       Save work,
                                                                       More reliable
    v Fully Automatable
      Infrastructure


                         © 2009 RightScale Inc — All rights reserved
3
Cloud Computing Vision
• No up-front costs                                                          • Easy Dev & Test
    load
                                                                                   clone

                                                        time
     mon tue   wed thu   fri   sat      sun
                                                                             • Scale batch apps
• Pay for average, not peak
    load                                  peak load
                                          average load

                                                        time
     mon tue   wed thu   fri   sat      sun



                                     © 2009 RightScale Inc — All rights reserved
4
Scale-up/down Automation
                                                                     • Scale-up
    www.mysite.com
                                                                                     App server load > 50%
                                                                               –
                                                                                     Majority voting
                                                                               –
    Apache        Apache
                                                                                     Add app servers
                                                                               –
    HAproxy    HAproxy
                                                                                     Tie into load bal & db
                                                                               –
                                                                     • Scale-down
                                                                               – App server load < 20%
                                 App Srvr           App Srvr
               App Srvr
    App Srvr
                                                    N/array
                                  1/array
                                                                               – Majority voting

         MySQL                   MySQL
                   replication
         master                   slave




                                            © 2009 RightScale Inc — All rights reserved
5
© 2009 RightScale Inc — All rights reserved
6
Load exceeds threshold
    Additional servers operational
                                                                             Additional servers terminated
                    Load drops below threshold




                               © 2009 RightScale Inc — All rights reserved
7
Starcut (Olympics)
    § Low cost to entry, scale up as demand grows
    § Repeatable, ”clean-room” design promotes
      stability and process
    § Great sandbox for testing and benchmarking




                              © 2009 RightScale Inc — All rights reserved
8
Starcut (Stocks)
        Daily scale up/down to save costs
    §
        Global reach for services is needed (Europe, USA, Asia)
    §
        Big name clients demand carrier-grade reliability
    §
        Full 24/7, 365 support expectations to us and us to
    §
        our vendors




                                 © 2009 RightScale Inc — All rights reserved
9
Std MySQL/EBS configuration
                  &
       Storage Array in the Sky




              © 2009 RightScale Inc — All rights reserved
10
Amazon EC2 Storage Architecture
                       ½ core … 8 cores                                      $0.10-$0.80/hr
            CPU


                       1.7GB … 16GB
          Memory



                       1 x 160GB … 4 x 420GB
            Local
            disks


                       1GB … 1TB volumes                                     $0.10/GB/mo
                       1 … volumes / server
     Scalable
                                                                             $0.10/M-io-ops
 EBS disk array
                       network attached, redundant

                       redundant back-end store                              $0.15/GB/mo
          Persistent
     S3     Store
                       S3 put/get semantics                                  $0.10/K-ops


                               © 2009 RightScale Inc — All rights reserved
11
Elastic Block Store (EBS)
     • Create volume: 1GB – 1TB size
     • Attach to any one instance
       in same availability zone
     • Pay $0.10/GB per month
       + $0.10/million I/O ops
     • Snapshot backup a volume to S3
     • Create new volume from snapshot



                      © 2009 RightScale Inc — All rights reserved
12
Snapshots                                                      Server 2        Server 3   Server 4
                                 Server 1


     • Point-in-time                                                      Vol 2      Vol 3      Vol 4
                                    Vol 1
       snapshot
     • Written to S3
       – (Not to bucket!)
                                                                                     snap 2
                                                               snap 1
                                                                             Amazon S3

     • Incremental snapshots
     • Restore to new volume
       – Instantaneous (lazy restore)


                            © 2009 RightScale Inc — All rights reserved
13
Incremental Snapshots

                          delete snap 2




     • Table of Contents vs. Data Blocks
     • “Space used” difficult to gauge
     • Frequent snapshots: minimal cost

                          © 2009 RightScale Inc — All rights reserved
14
Keeping Safe
     • Freeze data while snapshotting
       – XFS filesystem has freeze command
       – But: 2.6.18 kernel bug causes hung filesystem (ouch!)
     • Volumes are fragile in transit!
       – Unmounting can leave data in flight
       – Mounting mistake will be destructive
     • Use snapshots for safety!
       – Always snapshot after unmount
       – Create fresh volume from snapshot,
         mount that, retry in case of problem

                         © 2009 RightScale Inc — All rights reserved
15
MySQL/EBS Replication
           App             App
         Server 1        Server 2




              MySQL                                          MySQL
                                replication
              master                                          slave


               EBS                                              EBS
                vol                                              vol

                      daily                                          10-minute
                    snapshots                                        snapshots


              Amazon                                        Amazon
                S3                                            S3




                                    © 2009 RightScale Inc — All rights reserved
16
Database operations pain points
     • Master hardware failure                             no replica ‘til hw fixed
     • Master software failure                             no replica ‘til root caused
     • Testing schema change                               extra system: 99% idle
     • Migrate to new hardware                             2x rack space, SAN ports, …
     • New DB requirement                                  machines, ports, disks, …
     • QA, test, stage, DR, demo, … always to few,
                                    always too idle




                          © 2009 RightScale Inc — All rights reserved
17
Failure? Allocate fresh resources!
       MySQL             MySQL              MySQL             MySQL            MySQL
        dead replication master replication slave replication next replication next


        EBS              EBS                        EBS                               EBS           EBS
         vol              vol                        vol                               vol           vol


          snapshot          snapshot                     snapshot                       snapshot      snapshot
                                   init                               init

       Amazon           Amazon                  Amazon                               Amazon        Amazon
         S3               S3                      S3                                   S3            S3

                                                                                                                 time

     • Extra resources are free for short periods!
       (e.g. 4-core/16GB + 1TB EBS => <$30/day


                                       © 2009 RightScale Inc — All rights reserved
18
Vertical Database Scaling
                                                                                Clone Server Config
                                                                 1
     www.rightscaledemo.com



       Load bal            Load bal



       App Srvr            App Srvr




                  Small                     Small
                              replication
                  master                    slave
            clone config


                           Large
                           slave




                                             © 2009 RightScale Inc — All rights reserved
19
Vertical Database Scaling
                                                                                 Clone Server Config
                                                                  1
     www.rightscaledemo.com

                                                                                 Launch large slave
                                                                  2
       Load bal             Load bal



       App Srvr             App Srvr




                  Small                      Small
                               replication
                  master                     slave
              replication

                                    Launch
                            Large
                            slave




                                              © 2009 RightScale Inc — All rights reserved
20
Vertical Database Scaling
                                                                                 Clone Server
                                                                  1
     www.rightscaledemo.com

                                                                                 Launch large slave
                                                                  2
       Load bal             Load bal
                                                                                 Promote to master
                                                                  3

       App Srvr             App Srvr




                  Small                      Small
                               replication
                  master                     slave
              replication
                              master-db.rightscaledemo.com

                            Large
                            slave




                                              © 2009 RightScale Inc — All rights reserved
21
Vertical Database Scaling
                                                                                     Clone Server
                                                                      1
     www.rightscaledemo.com

                                                                                     Launch large slave
                                                                      2
       Load bal             Load bal
                                                                                     Promote to master
                                                                      3

       App Srvr             App Srvr
                                                                                     Launch new slave
                                                                      4


                                                                                        Watch demo in
                  Small                      Small
                               replication
                  master                     slave
                                                                                        webinar recording at
              replication
                                                                                        www.rightscale.com/webinars
                                                                   Launch
                        Large                         Large
                                    replication
                        master                        slave




                                                  © 2009 RightScale Inc — All rights reserved
22
Cloud Principle #1:
     grab the next one!
     • Database management
       – Always roll forward, never fail-back
       – Animoto upgraded L -> XL @600 servers

     • App server management
       – Always roll forward, never fix in-place
       – www1 bust? Launch www3! Then troubleshoot

     • Good sysadmins have the urge to fix… L
                      © 2009 RightScale Inc — All rights reserved
23
MySQL/EBS Toolbox server




                © 2009 RightScale Inc — All rights reserved
24
Many small databases
     Database pain cycle:
     1. Recognize the DB is important
     2. Buy expensive DB hardware
     3. Consolidate DBs onto expensive hardware
     4. Recognize the DB is now even more critical
     5. Buy more expensive DB hardware
     6. Repeat!

        Cloud Computing = Infinite servers and disks
                        + Fully automatable

                          © 2009 RightScale Inc — All rights reserved
25
Many Small Databases
     • Sharding
       – Split by user
       – Need to manage mappings



     • Read slaves
       – Many slave to increase read performance
       – Need to manage failover

                      © 2009 RightScale Inc — All rights reserved
26
EBS Performance
     • Functionality (snapshots) trump performance
     • Very difficult to benchmark
       – Multiple levels of cache, some hidden
     • Sequential I/O limited by network
       – 70-90MB/sec typ, 100MB/sec max
       – 4 local drives striped yield more
     • Random I/O (sustained)
       – 400-1000 read ops/sec
       – 100-400 write ops/sec
     • Stripe to increase performance
                         © 2009 RightScale Inc — All rights reserved
27
Clouds are Multiplying!
       – Amazon US + EU
       – GoGrid, Flexiscale
       – Eucalyptus open source release
       – RackSpace CloudServers
       – Sun cloud announcement
       – And many more…
     • Operating principles are the same
       – Storage architectures differ
       – From better local drives to traditional SANs

                       © 2009 RightScale Inc — All rights reserved
28
Public vs. Private Cloud
     • Public cloud:                                                Cloud Definition:
       – shared cloud computing                                     1.   Infinite computing resources
                                                                    2.   Available on-demand
         infrastructure
                                                                    3.   Pay per use
       – connected to the public
                                                                    4.   Delivered across the Internet
         internet
     • Private cloud:
       – cloud infrastructure dedicated to a single party
       – may not be connected to the public internet
     • Hybrid cloud
       – private and public clouds used together
       – leverage the benefits of both

                          © 2009 RightScale Inc — All rights reserved
29
Hybrid Cloud Use-Cases
     • Develop in public, deploy in private
       – Outsourced/distributed development
       – flexibility of test & dev resources
     • Develop in private, deploy in public
       – existing in house dev resources
       – ability to scale in public cloud
       – public-facing app
     • Private core, public expansion
       – Transaction intensive in-house core
       – Batch processing in public cloud

                          © 2009 RightScale Inc — All rights reserved
30
RightScale Supports
     Hybrid Clouds
     1. Commandeer some machines
     2. Install Eucalyptus
     3. Register with RightScale
     4. The power of RightScale for
        your cloud
     5. Invite friends to your cloud


                     © 2009 RightScale Inc — All rights reserved
31
Multi-Cloud Architecture
                                RightScale
                                   Core




                                                                       RackSpace
                        EC2                   GoGrid FlexiScale
        Eucalyptus
                                                                          Sun
     Cloud Controller
                                                                        more…
     Node
       Node
          Node
            Node
               Node
                 Node

                         © 2009 RightScale Inc — All rights reserved
32
Clouds Surpass Traditional Hosting
         Servers on-demand
     •
         Disk Volumes on-demand
     •
         Multiple datacenters
     •
         Reassign IPs / VIPs across datacenters
     •
         Multiple geographies
     •
         Multiple providers
     •

     • Automation tying it all together

                       © 2009 RightScale Inc — All rights reserved
33
RightScale
     Cloud Management Platform
         Automation
     •
         Multi-Cloud
     •
         Fully transparent
     •
         Fully customizable
     •
         Replicated MySQL/EBS ServerTemplates
     •



                     © 2009 RightScale Inc — All rights reserved
34

Contenu connexe

Tendances

Hecatonchire kvm forum_2012_benoit_hudzia
Hecatonchire kvm forum_2012_benoit_hudziaHecatonchire kvm forum_2012_benoit_hudzia
Hecatonchire kvm forum_2012_benoit_hudziaBenoit Hudzia
 
Leverage Azure and SQL Azure to build SaaS applications
Leverage Azure and SQL Azure to build SaaS applications Leverage Azure and SQL Azure to build SaaS applications
Leverage Azure and SQL Azure to build SaaS applications Common Sense
 
Netflix Global Cloud Architecture
Netflix Global Cloud ArchitectureNetflix Global Cloud Architecture
Netflix Global Cloud ArchitectureAdrian Cockcroft
 
Cloud Computing for Developers and Architects - QCon 2008 Tutorial
Cloud Computing for Developers and Architects - QCon 2008 TutorialCloud Computing for Developers and Architects - QCon 2008 Tutorial
Cloud Computing for Developers and Architects - QCon 2008 TutorialStuart Charlton
 
A Step By Step Guide To Put DB2 On Amazon Cloud
A Step By Step Guide To Put DB2 On Amazon CloudA Step By Step Guide To Put DB2 On Amazon Cloud
A Step By Step Guide To Put DB2 On Amazon CloudDeepak Rao
 
Scalable Database Options on AWS
Scalable Database Options on AWSScalable Database Options on AWS
Scalable Database Options on AWSAmazon Web Services
 
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site Growth
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site GrowthWhy Traditional Databases Fail so Miserably to Scale with E-Commerce Site Growth
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site GrowthClustrix
 
Cmg06 utilization is useless
Cmg06 utilization is uselessCmg06 utilization is useless
Cmg06 utilization is uselessAdrian Cockcroft
 
SV Forum Platform Architecture SIG - Netflix Open Source Platform
SV Forum Platform Architecture SIG - Netflix Open Source PlatformSV Forum Platform Architecture SIG - Netflix Open Source Platform
SV Forum Platform Architecture SIG - Netflix Open Source PlatformAdrian Cockcroft
 
Gluecon 2013 - Netflix Cloud Native Tutorial Details (part 2)
Gluecon 2013 - Netflix Cloud Native Tutorial Details (part 2)Gluecon 2013 - Netflix Cloud Native Tutorial Details (part 2)
Gluecon 2013 - Netflix Cloud Native Tutorial Details (part 2)Adrian Cockcroft
 
SDEC2011 Big engineer vs small entreprenuer
SDEC2011 Big engineer vs small entreprenuerSDEC2011 Big engineer vs small entreprenuer
SDEC2011 Big engineer vs small entreprenuerKorea Sdec
 
What's New + The Lean Methodology: Introduction to AWS, Cambridge
What's New + The Lean Methodology: Introduction to AWS, CambridgeWhat's New + The Lean Methodology: Introduction to AWS, Cambridge
What's New + The Lean Methodology: Introduction to AWS, CambridgeAmazon Web Services
 
Scalable Resilient Web Services In .Net
Scalable Resilient Web Services In .NetScalable Resilient Web Services In .Net
Scalable Resilient Web Services In .NetBala Subra
 
W PROSTOCIE SIŁA - wirtualizacja sposobem na uproszczenie infrastruktury IT
W PROSTOCIE SIŁA - wirtualizacja sposobem na uproszczenie infrastruktury ITW PROSTOCIE SIŁA - wirtualizacja sposobem na uproszczenie infrastruktury IT
W PROSTOCIE SIŁA - wirtualizacja sposobem na uproszczenie infrastruktury ITPeter Ocasek
 
Introducing Amazon Simple Workflow (Amazon SWF)
Introducing Amazon Simple Workflow (Amazon SWF)Introducing Amazon Simple Workflow (Amazon SWF)
Introducing Amazon Simple Workflow (Amazon SWF)Amazon Web Services
 
IBM Software Available In The Cloud With Amazon Web Services
IBM Software Available In The Cloud With Amazon Web ServicesIBM Software Available In The Cloud With Amazon Web Services
IBM Software Available In The Cloud With Amazon Web ServicesSteven Gerhardt
 
Cloud Computing BP-Study 20090319
Cloud Computing BP-Study 20090319Cloud Computing BP-Study 20090319
Cloud Computing BP-Study 20090319Yukio Andoh
 

Tendances (20)

Hecatonchire kvm forum_2012_benoit_hudzia
Hecatonchire kvm forum_2012_benoit_hudziaHecatonchire kvm forum_2012_benoit_hudzia
Hecatonchire kvm forum_2012_benoit_hudzia
 
Leverage Azure and SQL Azure to build SaaS applications
Leverage Azure and SQL Azure to build SaaS applications Leverage Azure and SQL Azure to build SaaS applications
Leverage Azure and SQL Azure to build SaaS applications
 
Netflix Global Cloud Architecture
Netflix Global Cloud ArchitectureNetflix Global Cloud Architecture
Netflix Global Cloud Architecture
 
Cloud Computing for Developers and Architects - QCon 2008 Tutorial
Cloud Computing for Developers and Architects - QCon 2008 TutorialCloud Computing for Developers and Architects - QCon 2008 Tutorial
Cloud Computing for Developers and Architects - QCon 2008 Tutorial
 
A Step By Step Guide To Put DB2 On Amazon Cloud
A Step By Step Guide To Put DB2 On Amazon CloudA Step By Step Guide To Put DB2 On Amazon Cloud
A Step By Step Guide To Put DB2 On Amazon Cloud
 
Scalable Database Options on AWS
Scalable Database Options on AWSScalable Database Options on AWS
Scalable Database Options on AWS
 
Accumulo on EC2
Accumulo on EC2Accumulo on EC2
Accumulo on EC2
 
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site Growth
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site GrowthWhy Traditional Databases Fail so Miserably to Scale with E-Commerce Site Growth
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site Growth
 
Cmg06 utilization is useless
Cmg06 utilization is uselessCmg06 utilization is useless
Cmg06 utilization is useless
 
SV Forum Platform Architecture SIG - Netflix Open Source Platform
SV Forum Platform Architecture SIG - Netflix Open Source PlatformSV Forum Platform Architecture SIG - Netflix Open Source Platform
SV Forum Platform Architecture SIG - Netflix Open Source Platform
 
Gluecon 2013 - Netflix Cloud Native Tutorial Details (part 2)
Gluecon 2013 - Netflix Cloud Native Tutorial Details (part 2)Gluecon 2013 - Netflix Cloud Native Tutorial Details (part 2)
Gluecon 2013 - Netflix Cloud Native Tutorial Details (part 2)
 
SDEC2011 Big engineer vs small entreprenuer
SDEC2011 Big engineer vs small entreprenuerSDEC2011 Big engineer vs small entreprenuer
SDEC2011 Big engineer vs small entreprenuer
 
What's New + The Lean Methodology: Introduction to AWS, Cambridge
What's New + The Lean Methodology: Introduction to AWS, CambridgeWhat's New + The Lean Methodology: Introduction to AWS, Cambridge
What's New + The Lean Methodology: Introduction to AWS, Cambridge
 
Scalable Resilient Web Services In .Net
Scalable Resilient Web Services In .NetScalable Resilient Web Services In .Net
Scalable Resilient Web Services In .Net
 
W PROSTOCIE SIŁA - wirtualizacja sposobem na uproszczenie infrastruktury IT
W PROSTOCIE SIŁA - wirtualizacja sposobem na uproszczenie infrastruktury ITW PROSTOCIE SIŁA - wirtualizacja sposobem na uproszczenie infrastruktury IT
W PROSTOCIE SIŁA - wirtualizacja sposobem na uproszczenie infrastruktury IT
 
Introducing Amazon Simple Workflow (Amazon SWF)
Introducing Amazon Simple Workflow (Amazon SWF)Introducing Amazon Simple Workflow (Amazon SWF)
Introducing Amazon Simple Workflow (Amazon SWF)
 
IBM Software Available In The Cloud With Amazon Web Services
IBM Software Available In The Cloud With Amazon Web ServicesIBM Software Available In The Cloud With Amazon Web Services
IBM Software Available In The Cloud With Amazon Web Services
 
Bca1931 final
Bca1931 finalBca1931 final
Bca1931 final
 
Cloud Computing BP-Study 20090319
Cloud Computing BP-Study 20090319Cloud Computing BP-Study 20090319
Cloud Computing BP-Study 20090319
 
SAP on AWS
SAP on AWSSAP on AWS
SAP on AWS
 

Similaire à Tricks And Tradeoffs Of Deploying My Sql Clusters In The Cloud

Deploying in the Cloud: Why and How
Deploying in the Cloud: Why and HowDeploying in the Cloud: Why and How
Deploying in the Cloud: Why and HowMatt Small
 
Deploying and Scaling using AWS
Deploying and Scaling using AWSDeploying and Scaling using AWS
Deploying and Scaling using AWSwr0ngway
 
Gear6 and Scaling Website Performance: Caching Session and Profile Data with...
Gear6 and Scaling Website Performance:  Caching Session and Profile Data with...Gear6 and Scaling Website Performance:  Caching Session and Profile Data with...
Gear6 and Scaling Website Performance: Caching Session and Profile Data with...Gear6
 
Leveraging The Clouds For Reliable Web Applications Presentation
Leveraging The Clouds For Reliable Web Applications PresentationLeveraging The Clouds For Reliable Web Applications Presentation
Leveraging The Clouds For Reliable Web Applications PresentationWeb 2.0 Expo
 
Brian Oliver Pimp My Data Grid
Brian Oliver  Pimp My Data GridBrian Oliver  Pimp My Data Grid
Brian Oliver Pimp My Data Griddeimos
 
Rails Conf Europe 2007 Notes
Rails Conf  Europe 2007  NotesRails Conf  Europe 2007  Notes
Rails Conf Europe 2007 NotesRoss Lawley
 
How Netflix Tunes Amazon EC2 Instances for Performance - CMP325 - re:Invent 2017
How Netflix Tunes Amazon EC2 Instances for Performance - CMP325 - re:Invent 2017How Netflix Tunes Amazon EC2 Instances for Performance - CMP325 - re:Invent 2017
How Netflix Tunes Amazon EC2 Instances for Performance - CMP325 - re:Invent 2017Amazon Web Services
 
Running a High-Performance Kubernetes Cluster with Amazon EKS (CON318-R1) - A...
Running a High-Performance Kubernetes Cluster with Amazon EKS (CON318-R1) - A...Running a High-Performance Kubernetes Cluster with Amazon EKS (CON318-R1) - A...
Running a High-Performance Kubernetes Cluster with Amazon EKS (CON318-R1) - A...Amazon Web Services
 
Amazon Aurora and AWS Database Migration Service
Amazon Aurora and AWS Database Migration ServiceAmazon Aurora and AWS Database Migration Service
Amazon Aurora and AWS Database Migration ServiceAmazon Web Services
 
Scale Up and Modernize Your Database with Amazon Relational Database Service ...
Scale Up and Modernize Your Database with Amazon Relational Database Service ...Scale Up and Modernize Your Database with Amazon Relational Database Service ...
Scale Up and Modernize Your Database with Amazon Relational Database Service ...Amazon Web Services
 
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010Arun Gupta
 
An Introduction To Space Based Architecture
An Introduction To Space Based ArchitectureAn Introduction To Space Based Architecture
An Introduction To Space Based ArchitectureAmin Abbaspour
 
What's new in Amazon Aurora - ADB203 - Chicago AWS Summit
What's new in Amazon Aurora - ADB203 - Chicago AWS SummitWhat's new in Amazon Aurora - ADB203 - Chicago AWS Summit
What's new in Amazon Aurora - ADB203 - Chicago AWS SummitAmazon Web Services
 
A scalable server environment for your applications
A scalable server environment for your applicationsA scalable server environment for your applications
A scalable server environment for your applicationsGigaSpaces
 
Born in the Cloud, Built like a Startup
Born in the Cloud, Built like a StartupBorn in the Cloud, Built like a Startup
Born in the Cloud, Built like a StartupAmazon Web Services
 
Amazon web services : "How Does Cloud Computing Change the Business Model for...
Amazon web services : "How Does Cloud Computing Change the Business Model for...Amazon web services : "How Does Cloud Computing Change the Business Model for...
Amazon web services : "How Does Cloud Computing Change the Business Model for...Software Park Thailand
 
Introduction to Web Application Clustering
Introduction to Web Application ClusteringIntroduction to Web Application Clustering
Introduction to Web Application ClusteringPiyush Katariya
 
Neptune Performance Tuning: Get the Best out of Amazon Neptune (DAT360) - AWS...
Neptune Performance Tuning: Get the Best out of Amazon Neptune (DAT360) - AWS...Neptune Performance Tuning: Get the Best out of Amazon Neptune (DAT360) - AWS...
Neptune Performance Tuning: Get the Best out of Amazon Neptune (DAT360) - AWS...Amazon Web Services
 

Similaire à Tricks And Tradeoffs Of Deploying My Sql Clusters In The Cloud (20)

Deploying in the Cloud: Why and How
Deploying in the Cloud: Why and HowDeploying in the Cloud: Why and How
Deploying in the Cloud: Why and How
 
Cloud Time
Cloud TimeCloud Time
Cloud Time
 
XS Japan 2008 Oracle VM English
XS Japan 2008 Oracle VM EnglishXS Japan 2008 Oracle VM English
XS Japan 2008 Oracle VM English
 
Deploying and Scaling using AWS
Deploying and Scaling using AWSDeploying and Scaling using AWS
Deploying and Scaling using AWS
 
Gear6 and Scaling Website Performance: Caching Session and Profile Data with...
Gear6 and Scaling Website Performance:  Caching Session and Profile Data with...Gear6 and Scaling Website Performance:  Caching Session and Profile Data with...
Gear6 and Scaling Website Performance: Caching Session and Profile Data with...
 
Leveraging The Clouds For Reliable Web Applications Presentation
Leveraging The Clouds For Reliable Web Applications PresentationLeveraging The Clouds For Reliable Web Applications Presentation
Leveraging The Clouds For Reliable Web Applications Presentation
 
Brian Oliver Pimp My Data Grid
Brian Oliver  Pimp My Data GridBrian Oliver  Pimp My Data Grid
Brian Oliver Pimp My Data Grid
 
Rails Conf Europe 2007 Notes
Rails Conf  Europe 2007  NotesRails Conf  Europe 2007  Notes
Rails Conf Europe 2007 Notes
 
How Netflix Tunes Amazon EC2 Instances for Performance - CMP325 - re:Invent 2017
How Netflix Tunes Amazon EC2 Instances for Performance - CMP325 - re:Invent 2017How Netflix Tunes Amazon EC2 Instances for Performance - CMP325 - re:Invent 2017
How Netflix Tunes Amazon EC2 Instances for Performance - CMP325 - re:Invent 2017
 
Running a High-Performance Kubernetes Cluster with Amazon EKS (CON318-R1) - A...
Running a High-Performance Kubernetes Cluster with Amazon EKS (CON318-R1) - A...Running a High-Performance Kubernetes Cluster with Amazon EKS (CON318-R1) - A...
Running a High-Performance Kubernetes Cluster with Amazon EKS (CON318-R1) - A...
 
Amazon Aurora and AWS Database Migration Service
Amazon Aurora and AWS Database Migration ServiceAmazon Aurora and AWS Database Migration Service
Amazon Aurora and AWS Database Migration Service
 
Scale Up and Modernize Your Database with Amazon Relational Database Service ...
Scale Up and Modernize Your Database with Amazon Relational Database Service ...Scale Up and Modernize Your Database with Amazon Relational Database Service ...
Scale Up and Modernize Your Database with Amazon Relational Database Service ...
 
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
 
An Introduction To Space Based Architecture
An Introduction To Space Based ArchitectureAn Introduction To Space Based Architecture
An Introduction To Space Based Architecture
 
What's new in Amazon Aurora - ADB203 - Chicago AWS Summit
What's new in Amazon Aurora - ADB203 - Chicago AWS SummitWhat's new in Amazon Aurora - ADB203 - Chicago AWS Summit
What's new in Amazon Aurora - ADB203 - Chicago AWS Summit
 
A scalable server environment for your applications
A scalable server environment for your applicationsA scalable server environment for your applications
A scalable server environment for your applications
 
Born in the Cloud, Built like a Startup
Born in the Cloud, Built like a StartupBorn in the Cloud, Built like a Startup
Born in the Cloud, Built like a Startup
 
Amazon web services : "How Does Cloud Computing Change the Business Model for...
Amazon web services : "How Does Cloud Computing Change the Business Model for...Amazon web services : "How Does Cloud Computing Change the Business Model for...
Amazon web services : "How Does Cloud Computing Change the Business Model for...
 
Introduction to Web Application Clustering
Introduction to Web Application ClusteringIntroduction to Web Application Clustering
Introduction to Web Application Clustering
 
Neptune Performance Tuning: Get the Best out of Amazon Neptune (DAT360) - AWS...
Neptune Performance Tuning: Get the Best out of Amazon Neptune (DAT360) - AWS...Neptune Performance Tuning: Get the Best out of Amazon Neptune (DAT360) - AWS...
Neptune Performance Tuning: Get the Best out of Amazon Neptune (DAT360) - AWS...
 

Plus de MySQLConference

Memcached Functions For My Sql Seemless Caching In My Sql
Memcached Functions For My Sql Seemless Caching In My SqlMemcached Functions For My Sql Seemless Caching In My Sql
Memcached Functions For My Sql Seemless Caching In My SqlMySQLConference
 
Using Open Source Bi In The Real World
Using Open Source Bi In The Real WorldUsing Open Source Bi In The Real World
Using Open Source Bi In The Real WorldMySQLConference
 
Partitioning Under The Hood
Partitioning Under The HoodPartitioning Under The Hood
Partitioning Under The HoodMySQLConference
 
D Trace Support In My Sql Guide To Solving Reallife Performance Problems
D Trace Support In My Sql Guide To Solving Reallife Performance ProblemsD Trace Support In My Sql Guide To Solving Reallife Performance Problems
D Trace Support In My Sql Guide To Solving Reallife Performance ProblemsMySQLConference
 
Writing Efficient Java Applications For My Sql Cluster Using Ndbj
Writing Efficient Java Applications For My Sql Cluster Using NdbjWriting Efficient Java Applications For My Sql Cluster Using Ndbj
Writing Efficient Java Applications For My Sql Cluster Using NdbjMySQLConference
 
My Sql Performance On Ec2
My Sql Performance On Ec2My Sql Performance On Ec2
My Sql Performance On Ec2MySQLConference
 
Inno Db Performance And Usability Patches
Inno Db Performance And Usability PatchesInno Db Performance And Usability Patches
Inno Db Performance And Usability PatchesMySQLConference
 
My Sql And Search At Craigslist
My Sql And Search At CraigslistMy Sql And Search At Craigslist
My Sql And Search At CraigslistMySQLConference
 
Solving Common Sql Problems With The Seq Engine
Solving Common Sql Problems With The Seq EngineSolving Common Sql Problems With The Seq Engine
Solving Common Sql Problems With The Seq EngineMySQLConference
 
Using Continuous Etl With Real Time Queries To Eliminate My Sql Bottlenecks
Using Continuous Etl With Real Time Queries To Eliminate My Sql BottlenecksUsing Continuous Etl With Real Time Queries To Eliminate My Sql Bottlenecks
Using Continuous Etl With Real Time Queries To Eliminate My Sql BottlenecksMySQLConference
 
Make Your Life Easier With Maatkit
Make Your Life Easier With MaatkitMake Your Life Easier With Maatkit
Make Your Life Easier With MaatkitMySQLConference
 
Getting The Most Out Of My Sql Enterprise Monitor 20
Getting The Most Out Of My Sql Enterprise Monitor 20Getting The Most Out Of My Sql Enterprise Monitor 20
Getting The Most Out Of My Sql Enterprise Monitor 20MySQLConference
 
Wide Open Spaces Using My Sql As A Web Mapping Service Backend
Wide Open Spaces Using My Sql As A Web Mapping Service BackendWide Open Spaces Using My Sql As A Web Mapping Service Backend
Wide Open Spaces Using My Sql As A Web Mapping Service BackendMySQLConference
 
Unleash The Power Of Your Data Using Open Source Business Intelligence
Unleash The Power Of Your Data Using Open Source Business IntelligenceUnleash The Power Of Your Data Using Open Source Business Intelligence
Unleash The Power Of Your Data Using Open Source Business IntelligenceMySQLConference
 
Inno Db Internals Inno Db File Formats And Source Code Structure
Inno Db Internals Inno Db File Formats And Source Code StructureInno Db Internals Inno Db File Formats And Source Code Structure
Inno Db Internals Inno Db File Formats And Source Code StructureMySQLConference
 
My Sql High Availability With A Punch Drbd 83 And Drbd For Dolphin Express
My Sql High Availability With A Punch Drbd 83 And Drbd For Dolphin ExpressMy Sql High Availability With A Punch Drbd 83 And Drbd For Dolphin Express
My Sql High Availability With A Punch Drbd 83 And Drbd For Dolphin ExpressMySQLConference
 

Plus de MySQLConference (17)

Memcached Functions For My Sql Seemless Caching In My Sql
Memcached Functions For My Sql Seemless Caching In My SqlMemcached Functions For My Sql Seemless Caching In My Sql
Memcached Functions For My Sql Seemless Caching In My Sql
 
Using Open Source Bi In The Real World
Using Open Source Bi In The Real WorldUsing Open Source Bi In The Real World
Using Open Source Bi In The Real World
 
Partitioning Under The Hood
Partitioning Under The HoodPartitioning Under The Hood
Partitioning Under The Hood
 
D Trace Support In My Sql Guide To Solving Reallife Performance Problems
D Trace Support In My Sql Guide To Solving Reallife Performance ProblemsD Trace Support In My Sql Guide To Solving Reallife Performance Problems
D Trace Support In My Sql Guide To Solving Reallife Performance Problems
 
Writing Efficient Java Applications For My Sql Cluster Using Ndbj
Writing Efficient Java Applications For My Sql Cluster Using NdbjWriting Efficient Java Applications For My Sql Cluster Using Ndbj
Writing Efficient Java Applications For My Sql Cluster Using Ndbj
 
My Sql Performance On Ec2
My Sql Performance On Ec2My Sql Performance On Ec2
My Sql Performance On Ec2
 
Inno Db Performance And Usability Patches
Inno Db Performance And Usability PatchesInno Db Performance And Usability Patches
Inno Db Performance And Usability Patches
 
My Sql And Search At Craigslist
My Sql And Search At CraigslistMy Sql And Search At Craigslist
My Sql And Search At Craigslist
 
The Smug Mug Tale
The Smug Mug TaleThe Smug Mug Tale
The Smug Mug Tale
 
Solving Common Sql Problems With The Seq Engine
Solving Common Sql Problems With The Seq EngineSolving Common Sql Problems With The Seq Engine
Solving Common Sql Problems With The Seq Engine
 
Using Continuous Etl With Real Time Queries To Eliminate My Sql Bottlenecks
Using Continuous Etl With Real Time Queries To Eliminate My Sql BottlenecksUsing Continuous Etl With Real Time Queries To Eliminate My Sql Bottlenecks
Using Continuous Etl With Real Time Queries To Eliminate My Sql Bottlenecks
 
Make Your Life Easier With Maatkit
Make Your Life Easier With MaatkitMake Your Life Easier With Maatkit
Make Your Life Easier With Maatkit
 
Getting The Most Out Of My Sql Enterprise Monitor 20
Getting The Most Out Of My Sql Enterprise Monitor 20Getting The Most Out Of My Sql Enterprise Monitor 20
Getting The Most Out Of My Sql Enterprise Monitor 20
 
Wide Open Spaces Using My Sql As A Web Mapping Service Backend
Wide Open Spaces Using My Sql As A Web Mapping Service BackendWide Open Spaces Using My Sql As A Web Mapping Service Backend
Wide Open Spaces Using My Sql As A Web Mapping Service Backend
 
Unleash The Power Of Your Data Using Open Source Business Intelligence
Unleash The Power Of Your Data Using Open Source Business IntelligenceUnleash The Power Of Your Data Using Open Source Business Intelligence
Unleash The Power Of Your Data Using Open Source Business Intelligence
 
Inno Db Internals Inno Db File Formats And Source Code Structure
Inno Db Internals Inno Db File Formats And Source Code StructureInno Db Internals Inno Db File Formats And Source Code Structure
Inno Db Internals Inno Db File Formats And Source Code Structure
 
My Sql High Availability With A Punch Drbd 83 And Drbd For Dolphin Express
My Sql High Availability With A Punch Drbd 83 And Drbd For Dolphin ExpressMy Sql High Availability With A Punch Drbd 83 And Drbd For Dolphin Express
My Sql High Availability With A Punch Drbd 83 And Drbd For Dolphin Express
 

Dernier

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
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
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
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
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
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
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
 
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
 

Dernier (20)

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
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
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
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
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
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
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
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
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
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 

Tricks And Tradeoffs Of Deploying My Sql Clusters In The Cloud

  • 1. MySQL in the Cloud Tricks and Tradeoffs Thorsten von Eicken CTO RightScale © 2009 RightScale Inc — All rights reserved 1
  • 2. MySQL & Amazon EC2 @RightScale • Operating in Amazon EC2 since fall 2006 • Cloud Computing Management System • Replicated MySQL product offering mid ‘07 – 100’s of customer deployments – Automation to launch slaves, failover, backup, … • Animoto.com scaled to 4000 servers in 3.5 days © 2009 RightScale Inc — All rights reserved 2
  • 3. Cloud Computing & Databases As many DB machines as 1. Infinite computing resources you want! 2. Available on-demand No cost for 3. Pay per use short periods 4. Delivered across the Internet Save work, More reliable v Fully Automatable Infrastructure © 2009 RightScale Inc — All rights reserved 3
  • 4. Cloud Computing Vision • No up-front costs • Easy Dev & Test load clone time mon tue wed thu fri sat sun • Scale batch apps • Pay for average, not peak load peak load average load time mon tue wed thu fri sat sun © 2009 RightScale Inc — All rights reserved 4
  • 5. Scale-up/down Automation • Scale-up www.mysite.com App server load > 50% – Majority voting – Apache Apache Add app servers – HAproxy HAproxy Tie into load bal & db – • Scale-down – App server load < 20% App Srvr App Srvr App Srvr App Srvr N/array 1/array – Majority voting MySQL MySQL replication master slave © 2009 RightScale Inc — All rights reserved 5
  • 6. © 2009 RightScale Inc — All rights reserved 6
  • 7. Load exceeds threshold Additional servers operational Additional servers terminated Load drops below threshold © 2009 RightScale Inc — All rights reserved 7
  • 8. Starcut (Olympics) § Low cost to entry, scale up as demand grows § Repeatable, ”clean-room” design promotes stability and process § Great sandbox for testing and benchmarking © 2009 RightScale Inc — All rights reserved 8
  • 9. Starcut (Stocks) Daily scale up/down to save costs § Global reach for services is needed (Europe, USA, Asia) § Big name clients demand carrier-grade reliability § Full 24/7, 365 support expectations to us and us to § our vendors © 2009 RightScale Inc — All rights reserved 9
  • 10. Std MySQL/EBS configuration & Storage Array in the Sky © 2009 RightScale Inc — All rights reserved 10
  • 11. Amazon EC2 Storage Architecture ½ core … 8 cores $0.10-$0.80/hr CPU 1.7GB … 16GB Memory 1 x 160GB … 4 x 420GB Local disks 1GB … 1TB volumes $0.10/GB/mo 1 … volumes / server Scalable $0.10/M-io-ops EBS disk array network attached, redundant redundant back-end store $0.15/GB/mo Persistent S3 Store S3 put/get semantics $0.10/K-ops © 2009 RightScale Inc — All rights reserved 11
  • 12. Elastic Block Store (EBS) • Create volume: 1GB – 1TB size • Attach to any one instance in same availability zone • Pay $0.10/GB per month + $0.10/million I/O ops • Snapshot backup a volume to S3 • Create new volume from snapshot © 2009 RightScale Inc — All rights reserved 12
  • 13. Snapshots Server 2 Server 3 Server 4 Server 1 • Point-in-time Vol 2 Vol 3 Vol 4 Vol 1 snapshot • Written to S3 – (Not to bucket!) snap 2 snap 1 Amazon S3 • Incremental snapshots • Restore to new volume – Instantaneous (lazy restore) © 2009 RightScale Inc — All rights reserved 13
  • 14. Incremental Snapshots delete snap 2 • Table of Contents vs. Data Blocks • “Space used” difficult to gauge • Frequent snapshots: minimal cost © 2009 RightScale Inc — All rights reserved 14
  • 15. Keeping Safe • Freeze data while snapshotting – XFS filesystem has freeze command – But: 2.6.18 kernel bug causes hung filesystem (ouch!) • Volumes are fragile in transit! – Unmounting can leave data in flight – Mounting mistake will be destructive • Use snapshots for safety! – Always snapshot after unmount – Create fresh volume from snapshot, mount that, retry in case of problem © 2009 RightScale Inc — All rights reserved 15
  • 16. MySQL/EBS Replication App App Server 1 Server 2 MySQL MySQL replication master slave EBS EBS vol vol daily 10-minute snapshots snapshots Amazon Amazon S3 S3 © 2009 RightScale Inc — All rights reserved 16
  • 17. Database operations pain points • Master hardware failure no replica ‘til hw fixed • Master software failure no replica ‘til root caused • Testing schema change extra system: 99% idle • Migrate to new hardware 2x rack space, SAN ports, … • New DB requirement machines, ports, disks, … • QA, test, stage, DR, demo, … always to few, always too idle © 2009 RightScale Inc — All rights reserved 17
  • 18. Failure? Allocate fresh resources! MySQL MySQL MySQL MySQL MySQL dead replication master replication slave replication next replication next EBS EBS EBS EBS EBS vol vol vol vol vol snapshot snapshot snapshot snapshot snapshot init init Amazon Amazon Amazon Amazon Amazon S3 S3 S3 S3 S3 time • Extra resources are free for short periods! (e.g. 4-core/16GB + 1TB EBS => <$30/day © 2009 RightScale Inc — All rights reserved 18
  • 19. Vertical Database Scaling Clone Server Config 1 www.rightscaledemo.com Load bal Load bal App Srvr App Srvr Small Small replication master slave clone config Large slave © 2009 RightScale Inc — All rights reserved 19
  • 20. Vertical Database Scaling Clone Server Config 1 www.rightscaledemo.com Launch large slave 2 Load bal Load bal App Srvr App Srvr Small Small replication master slave replication Launch Large slave © 2009 RightScale Inc — All rights reserved 20
  • 21. Vertical Database Scaling Clone Server 1 www.rightscaledemo.com Launch large slave 2 Load bal Load bal Promote to master 3 App Srvr App Srvr Small Small replication master slave replication master-db.rightscaledemo.com Large slave © 2009 RightScale Inc — All rights reserved 21
  • 22. Vertical Database Scaling Clone Server 1 www.rightscaledemo.com Launch large slave 2 Load bal Load bal Promote to master 3 App Srvr App Srvr Launch new slave 4 Watch demo in Small Small replication master slave webinar recording at replication www.rightscale.com/webinars Launch Large Large replication master slave © 2009 RightScale Inc — All rights reserved 22
  • 23. Cloud Principle #1: grab the next one! • Database management – Always roll forward, never fail-back – Animoto upgraded L -> XL @600 servers • App server management – Always roll forward, never fix in-place – www1 bust? Launch www3! Then troubleshoot • Good sysadmins have the urge to fix… L © 2009 RightScale Inc — All rights reserved 23
  • 24. MySQL/EBS Toolbox server © 2009 RightScale Inc — All rights reserved 24
  • 25. Many small databases Database pain cycle: 1. Recognize the DB is important 2. Buy expensive DB hardware 3. Consolidate DBs onto expensive hardware 4. Recognize the DB is now even more critical 5. Buy more expensive DB hardware 6. Repeat! Cloud Computing = Infinite servers and disks + Fully automatable © 2009 RightScale Inc — All rights reserved 25
  • 26. Many Small Databases • Sharding – Split by user – Need to manage mappings • Read slaves – Many slave to increase read performance – Need to manage failover © 2009 RightScale Inc — All rights reserved 26
  • 27. EBS Performance • Functionality (snapshots) trump performance • Very difficult to benchmark – Multiple levels of cache, some hidden • Sequential I/O limited by network – 70-90MB/sec typ, 100MB/sec max – 4 local drives striped yield more • Random I/O (sustained) – 400-1000 read ops/sec – 100-400 write ops/sec • Stripe to increase performance © 2009 RightScale Inc — All rights reserved 27
  • 28. Clouds are Multiplying! – Amazon US + EU – GoGrid, Flexiscale – Eucalyptus open source release – RackSpace CloudServers – Sun cloud announcement – And many more… • Operating principles are the same – Storage architectures differ – From better local drives to traditional SANs © 2009 RightScale Inc — All rights reserved 28
  • 29. Public vs. Private Cloud • Public cloud: Cloud Definition: – shared cloud computing 1. Infinite computing resources 2. Available on-demand infrastructure 3. Pay per use – connected to the public 4. Delivered across the Internet internet • Private cloud: – cloud infrastructure dedicated to a single party – may not be connected to the public internet • Hybrid cloud – private and public clouds used together – leverage the benefits of both © 2009 RightScale Inc — All rights reserved 29
  • 30. Hybrid Cloud Use-Cases • Develop in public, deploy in private – Outsourced/distributed development – flexibility of test & dev resources • Develop in private, deploy in public – existing in house dev resources – ability to scale in public cloud – public-facing app • Private core, public expansion – Transaction intensive in-house core – Batch processing in public cloud © 2009 RightScale Inc — All rights reserved 30
  • 31. RightScale Supports Hybrid Clouds 1. Commandeer some machines 2. Install Eucalyptus 3. Register with RightScale 4. The power of RightScale for your cloud 5. Invite friends to your cloud © 2009 RightScale Inc — All rights reserved 31
  • 32. Multi-Cloud Architecture RightScale Core RackSpace EC2 GoGrid FlexiScale Eucalyptus Sun Cloud Controller more… Node Node Node Node Node Node © 2009 RightScale Inc — All rights reserved 32
  • 33. Clouds Surpass Traditional Hosting Servers on-demand • Disk Volumes on-demand • Multiple datacenters • Reassign IPs / VIPs across datacenters • Multiple geographies • Multiple providers • • Automation tying it all together © 2009 RightScale Inc — All rights reserved 33
  • 34. RightScale Cloud Management Platform Automation • Multi-Cloud • Fully transparent • Fully customizable • Replicated MySQL/EBS ServerTemplates • © 2009 RightScale Inc — All rights reserved 34