SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Downloaden Sie, um offline zu lesen
Amazon S3 + EC2
+ Rails = Dream Team?
           Thoughts by
   Adam Groves and Martin Rehfeld
       @ BRUG 05-Apr-2007
Amazon S3
Simple Storage Service
• Pricing
 • $0.15 per GB-Month           NO CO
                                       ST

   (10 GB = $1.50 per month)
                                DRIVE
                                      R




 • $0.20 per GB of data transferred          BEWA
                                                    RE
                                              HIGH
                                            TRAFF
                                                   IC

   (100 GB = additional $20 per month)       SITES
Amazon S3
         Common Terms
•   buckets:
                                                              S3
    global name space
                                                some bucket A
•   objects:
    accessed by key [~ path+name]                 my bucket #1
    can have metadata                object 1, key = „images/icons/smile.png“, encoding=...

                                     object 2, key = „images/icons/cry.png“, encoding=...

•   prefixes:




                                                      }
                                                     identical prefix
    searching by prefix emulates
    directory structure                           my bucket #2
•   ACL:                                        some bucket B
                                                              ...
    everyone, authenticated users,
    owner / named users
S3Fox Extension
Amazon EC2
Elastic Compute Cloud
• Pricing
 • $0.10 per instance-hour consumed           IDEAL
                                            STAGIN FOR
                                                  GA
                                              SCALIN ND

    (1 month 24x7 ~ $72)                            G




 • $0.20 per GB of data transferred
    (just internet traffic;             TRAFF
                                      WARN IC

     no charge for EC2-S3 traffic)
                                            IN
                                       APPLIE G
                                             S
Amazon EC2
       Instance Specs
• ~ 1.7 GHz x86 CPU
                                ACTUA
                                       LLY
                                  A XEN
                                 VIRTUA
                               INSTAN L
                                      CE


• 1.75 GB RAM
• 160 GB local disk space
• 250 Mb/s network bandwidth
Amazon EC2
        Common Terms
•   images:
    named OS images stored in S3: „AMI“

•   instances:
    virtual maschines running an AMI

•   bundling:
    saving customized images back to S3

•   non-persistence:                                BUG O
                                                   FEATU R
    local disk storage will not survive instance        RE?

    shutdown or failure
Amazon EC2
       Network Security
                         access group quot;defaultquot;


              access group quot;webquot;


Internet
                                      access group quot;backendquot;
Amazon EC2
      Rails Scenario


                                }
 EC2                       S3
   Web                 Static
  Server              Content



                                    
Application
                 Code
  Server

 memcached,
backgrounDRb,
      ...




                                    
                  SQL                     HOW
                                                 TO
                                           GET A
                                        PERSIS
                Database                       TENT
                                           DB?
Amazon EC2
  Database Persistence
Flavor A:
                            •   on instance failure
Frequent backup to S3           you will lose all
                                changes since last
                                backup

                       S3   •   backup using a lot
          backup job

                                of resources
    DB


                            •   no automatic
                                failover
Amazon EC2
  Database Persistence
Flavor B:
                                •   on instance failure
Backup write ahead logs to S3       you will lose all
                                    changes since last
                                    log switch

                                •
                       S3
     DB
                                    backup is fast, but
          backup job
                                    recovery will take
    WAL
                                    longer

                                •   still no automatic
                                    failover
Amazon EC2
  Database Persistence
Flavor C:
                                        •   you might still lose all
Shadow database                             changes since last log
                                            switch

                                        •
 Master                   Shadow            backup is fast, recovery is
                                            usually not neccessary
                                            (only if master and slave
                            continous
     DB                     recovery
                                            should fail at the same
                                            time)
           WAL transfer       DB
     WAL
                                        •   no load balancing
                                            between master and slave
               via
                                        •   automatic failover can be
                                            achieved
              S3
Amazon EC2
   Database Persistence
                                               •
Flavor D:                                          data loss only on failure
                                                   of all instances
(Multi-Master-)Replication                     •   reduced write
                                                   performance
Master #1                 Master #2
                                               •   sophisticated
                                                   configuration
                                                    can be tricky
             two-way
                                               •   should be combined with
            replication
      DB                                           flavor A or B for backup
                                          DB

                                               •   load balancing can be
                             backup job




                                                   achieved

                                               •   automatic failover can be
                                                   achieved
                           S3
Amazon EC2
  Database Persistence
Flavor E (highly Experimental): •    unless caching is used
                                     there should be no data
DB files on S3DFS                     loss

                                 •   (very?) reduced
                                     performance

                                 •   reliability of S3DFS yet to
                            S3       be proven

                                 •   can be combined with
                            DB
     S3DFS fuse filesystem

                                     flavors A or B for backup

                                 •   can be combined with
                                     flavors C or D for
                                     failover and load
                                     balancing (flavor D only)
Resources
• Amazon EC2 / S3
  aws.amazon.com/ec2 / aws.amazon.com/s3




• Rails & EC2 & Capistrano tasks
• Amazon Web Services Ruby Gem (aws/s3)
  http://niblets.wordpress.com/2007/02/12/capistrano-ec2-sitting-in-a-tree-k-i-s-s-i-n-g/




  http://amazon.rubyforge.org/




• S3DFS filesystem driver
  http://www.openfount.com/blog/s3dfs-for-ec2




• Discussion on persistence with EC2
  http://blog.awswebshop.com/2007/01/07/thoughts-on-current-functionality-requests-for-future-functionality/




• Postgres WAL / continuous archiving
  http://www.postgresql.org/docs/8.2/static/wal-intro.html / http://www.postgresql.org/docs/8.2/static/continuous-archiving.html




• MySQL multi-master replication
  http://capttofu.livejournal.com/1752.html
Q &A



!
    Adam Groves
    adam.groves@gmail.com

    Martin Rehfeld
    martin.rehfeld@glnetworks.de

Weitere ähnliche Inhalte

Was ist angesagt?

Using Ruby to do Map/Reduce with Hadoop
Using Ruby to do Map/Reduce with HadoopUsing Ruby to do Map/Reduce with Hadoop
Using Ruby to do Map/Reduce with HadoopJames Kebinger
 
Aurora는 어떻게 다른가 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
Aurora는 어떻게 다른가 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 GamingAurora는 어떻게 다른가 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
Aurora는 어떻게 다른가 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 GamingAmazon Web Services Korea
 
AWS June 2016 Webinar Series - Amazon Aurora Deep Dive - Optimizing Database ...
AWS June 2016 Webinar Series - Amazon Aurora Deep Dive - Optimizing Database ...AWS June 2016 Webinar Series - Amazon Aurora Deep Dive - Optimizing Database ...
AWS June 2016 Webinar Series - Amazon Aurora Deep Dive - Optimizing Database ...Amazon Web Services
 
MED201 Media Ingest and Storage Solutions with AWS - AWS re: Invent 2012
MED201 Media Ingest and Storage Solutions with AWS - AWS re: Invent 2012MED201 Media Ingest and Storage Solutions with AWS - AWS re: Invent 2012
MED201 Media Ingest and Storage Solutions with AWS - AWS re: Invent 2012Amazon Web Services
 
Amazon Aurora: Amazon’s New Relational Database Engine
Amazon Aurora: Amazon’s New Relational Database EngineAmazon Aurora: Amazon’s New Relational Database Engine
Amazon Aurora: Amazon’s New Relational Database EngineAmazon Web Services
 
Disaster Recovery Site on AWS - Minimal Cost Maximum Efficiency (STG305) | AW...
Disaster Recovery Site on AWS - Minimal Cost Maximum Efficiency (STG305) | AW...Disaster Recovery Site on AWS - Minimal Cost Maximum Efficiency (STG305) | AW...
Disaster Recovery Site on AWS - Minimal Cost Maximum Efficiency (STG305) | AW...Amazon Web Services
 
(DAT312) Using Amazon Aurora for Enterprise Workloads
(DAT312) Using Amazon Aurora for Enterprise Workloads(DAT312) Using Amazon Aurora for Enterprise Workloads
(DAT312) Using Amazon Aurora for Enterprise WorkloadsAmazon Web Services
 
AWS Update | London - Performance Update and Provisioned IOPS
AWS Update | London - Performance Update and Provisioned IOPSAWS Update | London - Performance Update and Provisioned IOPS
AWS Update | London - Performance Update and Provisioned IOPSAmazon Web Services
 
Running your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the CloudRunning your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the CloudIndicThreads
 
(DAT405) Amazon Aurora Deep Dive
(DAT405) Amazon Aurora Deep Dive(DAT405) Amazon Aurora Deep Dive
(DAT405) Amazon Aurora Deep DiveAmazon Web Services
 
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...Amazon Web Services
 

Was ist angesagt? (13)

Using Ruby to do Map/Reduce with Hadoop
Using Ruby to do Map/Reduce with HadoopUsing Ruby to do Map/Reduce with Hadoop
Using Ruby to do Map/Reduce with Hadoop
 
Aurora는 어떻게 다른가 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
Aurora는 어떻게 다른가 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 GamingAurora는 어떻게 다른가 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
Aurora는 어떻게 다른가 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
 
AWS June 2016 Webinar Series - Amazon Aurora Deep Dive - Optimizing Database ...
AWS June 2016 Webinar Series - Amazon Aurora Deep Dive - Optimizing Database ...AWS June 2016 Webinar Series - Amazon Aurora Deep Dive - Optimizing Database ...
AWS June 2016 Webinar Series - Amazon Aurora Deep Dive - Optimizing Database ...
 
MED201 Media Ingest and Storage Solutions with AWS - AWS re: Invent 2012
MED201 Media Ingest and Storage Solutions with AWS - AWS re: Invent 2012MED201 Media Ingest and Storage Solutions with AWS - AWS re: Invent 2012
MED201 Media Ingest and Storage Solutions with AWS - AWS re: Invent 2012
 
Amazon Aurora: Amazon’s New Relational Database Engine
Amazon Aurora: Amazon’s New Relational Database EngineAmazon Aurora: Amazon’s New Relational Database Engine
Amazon Aurora: Amazon’s New Relational Database Engine
 
Disaster Recovery Site on AWS - Minimal Cost Maximum Efficiency (STG305) | AW...
Disaster Recovery Site on AWS - Minimal Cost Maximum Efficiency (STG305) | AW...Disaster Recovery Site on AWS - Minimal Cost Maximum Efficiency (STG305) | AW...
Disaster Recovery Site on AWS - Minimal Cost Maximum Efficiency (STG305) | AW...
 
(DAT312) Using Amazon Aurora for Enterprise Workloads
(DAT312) Using Amazon Aurora for Enterprise Workloads(DAT312) Using Amazon Aurora for Enterprise Workloads
(DAT312) Using Amazon Aurora for Enterprise Workloads
 
AWS Update | London - Performance Update and Provisioned IOPS
AWS Update | London - Performance Update and Provisioned IOPSAWS Update | London - Performance Update and Provisioned IOPS
AWS Update | London - Performance Update and Provisioned IOPS
 
Running your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the CloudRunning your Java EE 6 applications in the Cloud
Running your Java EE 6 applications in the Cloud
 
Deep Dive into AWS Fargate
Deep Dive into AWS FargateDeep Dive into AWS Fargate
Deep Dive into AWS Fargate
 
(DAT405) Amazon Aurora Deep Dive
(DAT405) Amazon Aurora Deep Dive(DAT405) Amazon Aurora Deep Dive
(DAT405) Amazon Aurora Deep Dive
 
Diveinto AWS
Diveinto AWS Diveinto AWS
Diveinto AWS
 
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
SRV402 Deep Dive on Amazon EC2 Instances, Featuring Performance Optimization ...
 

Andere mochten auch

Improving customer service within the supply chain
Improving customer service within the supply chainImproving customer service within the supply chain
Improving customer service within the supply chainSiddharth Chandrasekar
 
5 Steps to Building a Social Customer Service Team
5 Steps to Building a Social Customer Service Team5 Steps to Building a Social Customer Service Team
5 Steps to Building a Social Customer Service TeamMichael Pace
 
Underperforming Team Case Study
Underperforming Team Case StudyUnderperforming Team Case Study
Underperforming Team Case StudyTushar G
 
Case study electronics industry
Case study   electronics industryCase study   electronics industry
Case study electronics industryGanesh TN
 
Case study customer service southwest airlines
Case study customer service southwest airlinesCase study customer service southwest airlines
Case study customer service southwest airlinesLisa Fields
 
Tinker Tower DFSS Class Exercise
Tinker Tower DFSS Class ExerciseTinker Tower DFSS Class Exercise
Tinker Tower DFSS Class ExerciseRamon Balisnomo
 
Effective Team Behaveor
Effective Team BehaveorEffective Team Behaveor
Effective Team Behaveorkanaidi
 
Customer service training for mobil filling station attendants(1)
Customer service training for mobil filling station attendants(1)Customer service training for mobil filling station attendants(1)
Customer service training for mobil filling station attendants(1)Olatunji Olajide
 
How to provide excellent customer service in your leisure centre
How to provide excellent customer service in your leisure centreHow to provide excellent customer service in your leisure centre
How to provide excellent customer service in your leisure centreSports Marketing Network
 
Operations Management at Petrol retail outlet
Operations Management at Petrol retail outletOperations Management at Petrol retail outlet
Operations Management at Petrol retail outletDarshit Paun
 
75 Customer Service Facts, Quotes & Statistics
75 Customer Service Facts, Quotes & Statistics75 Customer Service Facts, Quotes & Statistics
75 Customer Service Facts, Quotes & StatisticsHelp Scout
 
Customer service training[1]
Customer service training[1]Customer service training[1]
Customer service training[1]loryn_aquino
 

Andere mochten auch (14)

Improving customer service within the supply chain
Improving customer service within the supply chainImproving customer service within the supply chain
Improving customer service within the supply chain
 
5 Steps to Building a Social Customer Service Team
5 Steps to Building a Social Customer Service Team5 Steps to Building a Social Customer Service Team
5 Steps to Building a Social Customer Service Team
 
Underperforming Team Case Study
Underperforming Team Case StudyUnderperforming Team Case Study
Underperforming Team Case Study
 
Case study electronics industry
Case study   electronics industryCase study   electronics industry
Case study electronics industry
 
Case study customer service southwest airlines
Case study customer service southwest airlinesCase study customer service southwest airlines
Case study customer service southwest airlines
 
Tinker Tower DFSS Class Exercise
Tinker Tower DFSS Class ExerciseTinker Tower DFSS Class Exercise
Tinker Tower DFSS Class Exercise
 
Effective Team Behaveor
Effective Team BehaveorEffective Team Behaveor
Effective Team Behaveor
 
Customer service training for mobil filling station attendants(1)
Customer service training for mobil filling station attendants(1)Customer service training for mobil filling station attendants(1)
Customer service training for mobil filling station attendants(1)
 
brain teaser
brain teaserbrain teaser
brain teaser
 
How to provide excellent customer service in your leisure centre
How to provide excellent customer service in your leisure centreHow to provide excellent customer service in your leisure centre
How to provide excellent customer service in your leisure centre
 
Operations Management at Petrol retail outlet
Operations Management at Petrol retail outletOperations Management at Petrol retail outlet
Operations Management at Petrol retail outlet
 
75 Customer Service Facts, Quotes & Statistics
75 Customer Service Facts, Quotes & Statistics75 Customer Service Facts, Quotes & Statistics
75 Customer Service Facts, Quotes & Statistics
 
Team Building & Team Work
Team Building & Team WorkTeam Building & Team Work
Team Building & Team Work
 
Customer service training[1]
Customer service training[1]Customer service training[1]
Customer service training[1]
 

Ähnlich wie S3 and EC2 Rails Scenarios

NYC Amazon Web Services Meetup: How Glue uses AWS
NYC Amazon Web Services Meetup: How Glue uses AWSNYC Amazon Web Services Meetup: How Glue uses AWS
NYC Amazon Web Services Meetup: How Glue uses AWSAlex Iskold
 
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012Amazon Web Services
 
Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC
Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC
Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC Amazon Web Services
 
AWS Customer Presentation - AdaptiveBlue
AWS Customer Presentation - AdaptiveBlueAWS Customer Presentation - AdaptiveBlue
AWS Customer Presentation - AdaptiveBlueAmazon Web Services
 
Designing Fault Tolerant Applications on AWS - Janakiram MSV
Designing Fault Tolerant Applications on AWS - Janakiram MSVDesigning Fault Tolerant Applications on AWS - Janakiram MSV
Designing Fault Tolerant Applications on AWS - Janakiram MSVAmazon Web Services
 
Using Oracle Database with Amazon Web Services
Using Oracle Database with Amazon Web ServicesUsing Oracle Database with Amazon Web Services
Using Oracle Database with Amazon Web Servicesguest484c12
 
EC2ナイトセミナプレゼン資料 Rel2
EC2ナイトセミナプレゼン資料 Rel2EC2ナイトセミナプレゼン資料 Rel2
EC2ナイトセミナプレゼン資料 Rel2真一 藤川
 
STG201 Understanding AWS Storage Options - - AWS re: Invent 2012
STG201 Understanding AWS Storage Options - - AWS re: Invent 2012STG201 Understanding AWS Storage Options - - AWS re: Invent 2012
STG201 Understanding AWS Storage Options - - AWS re: Invent 2012Amazon Web Services
 
13h00 aws 2012-fault_tolerant_applications
13h00   aws 2012-fault_tolerant_applications13h00   aws 2012-fault_tolerant_applications
13h00 aws 2012-fault_tolerant_applicationsinfolive
 
Announcing Amazon Aurora with PostgreSQL Compatibility - January 2017 AWS Onl...
Announcing Amazon Aurora with PostgreSQL Compatibility - January 2017 AWS Onl...Announcing Amazon Aurora with PostgreSQL Compatibility - January 2017 AWS Onl...
Announcing Amazon Aurora with PostgreSQL Compatibility - January 2017 AWS Onl...Amazon Web Services
 
Cloud computing with AWS
Cloud computing with AWS Cloud computing with AWS
Cloud computing with AWS ikanow
 
Cloud Architectures - Jinesh Varia - GrepTheWeb
Cloud Architectures - Jinesh Varia - GrepTheWebCloud Architectures - Jinesh Varia - GrepTheWeb
Cloud Architectures - Jinesh Varia - GrepTheWebjineshvaria
 
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
 
Amazon S3 storage engine plugin for MySQL
Amazon S3 storage engine plugin for MySQLAmazon S3 storage engine plugin for MySQL
Amazon S3 storage engine plugin for MySQLKapil Mohan
 
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017Amazon Web Services
 

Ähnlich wie S3 and EC2 Rails Scenarios (20)

NYC Amazon Web Services Meetup: How Glue uses AWS
NYC Amazon Web Services Meetup: How Glue uses AWSNYC Amazon Web Services Meetup: How Glue uses AWS
NYC Amazon Web Services Meetup: How Glue uses AWS
 
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012
ARC302 AWS Cloud Design Patterns - AWS re: Invent 2012
 
Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC
Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC
Building Fault Tolerant Applications in the cloud - AWS Summit 2012 - NYC
 
AWS Customer Presentation - AdaptiveBlue
AWS Customer Presentation - AdaptiveBlueAWS Customer Presentation - AdaptiveBlue
AWS Customer Presentation - AdaptiveBlue
 
Designing Fault Tolerant Applications on AWS - Janakiram MSV
Designing Fault Tolerant Applications on AWS - Janakiram MSVDesigning Fault Tolerant Applications on AWS - Janakiram MSV
Designing Fault Tolerant Applications on AWS - Janakiram MSV
 
Using Oracle Database with Amazon Web Services
Using Oracle Database with Amazon Web ServicesUsing Oracle Database with Amazon Web Services
Using Oracle Database with Amazon Web Services
 
EC2ナイトセミナプレゼン資料 Rel2
EC2ナイトセミナプレゼン資料 Rel2EC2ナイトセミナプレゼン資料 Rel2
EC2ナイトセミナプレゼン資料 Rel2
 
STG201 Understanding AWS Storage Options - - AWS re: Invent 2012
STG201 Understanding AWS Storage Options - - AWS re: Invent 2012STG201 Understanding AWS Storage Options - - AWS re: Invent 2012
STG201 Understanding AWS Storage Options - - AWS re: Invent 2012
 
Fault Tolerant Applications on AWS
Fault Tolerant Applications on AWSFault Tolerant Applications on AWS
Fault Tolerant Applications on AWS
 
13h00 aws 2012-fault_tolerant_applications
13h00   aws 2012-fault_tolerant_applications13h00   aws 2012-fault_tolerant_applications
13h00 aws 2012-fault_tolerant_applications
 
Announcing Amazon Aurora with PostgreSQL Compatibility - January 2017 AWS Onl...
Announcing Amazon Aurora with PostgreSQL Compatibility - January 2017 AWS Onl...Announcing Amazon Aurora with PostgreSQL Compatibility - January 2017 AWS Onl...
Announcing Amazon Aurora with PostgreSQL Compatibility - January 2017 AWS Onl...
 
Cloud computing with AWS
Cloud computing with AWS Cloud computing with AWS
Cloud computing with AWS
 
4K Media Workflows on AWS
4K Media Workflows on AWS4K Media Workflows on AWS
4K Media Workflows on AWS
 
Cloud Architectures - Jinesh Varia - GrepTheWeb
Cloud Architectures - Jinesh Varia - GrepTheWebCloud Architectures - Jinesh Varia - GrepTheWeb
Cloud Architectures - Jinesh Varia - GrepTheWeb
 
What’s New in Amazon Aurora
What’s New in Amazon AuroraWhat’s New in Amazon Aurora
What’s New in Amazon Aurora
 
Harnessing The Cloud
Harnessing The CloudHarnessing The Cloud
Harnessing The Cloud
 
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
 
Shootout at the AWS Corral
Shootout at the AWS CorralShootout at the AWS Corral
Shootout at the AWS Corral
 
Amazon S3 storage engine plugin for MySQL
Amazon S3 storage engine plugin for MySQLAmazon S3 storage engine plugin for MySQL
Amazon S3 storage engine plugin for MySQL
 
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017
Deep Dive on Amazon EC2 Instances - AWS Summit Cape Town 2017
 

Kürzlich hochgeladen

VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...
VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...
VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...dipikadinghjn ( Why You Choose Us? ) Escorts
 
Webinar on E-Invoicing for Fintech Belgium
Webinar on E-Invoicing for Fintech BelgiumWebinar on E-Invoicing for Fintech Belgium
Webinar on E-Invoicing for Fintech BelgiumFinTech Belgium
 
Business Principles, Tools, and Techniques in Participating in Various Types...
Business Principles, Tools, and Techniques  in Participating in Various Types...Business Principles, Tools, and Techniques  in Participating in Various Types...
Business Principles, Tools, and Techniques in Participating in Various Types...jeffreytingson
 
Call Girls Banaswadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Banaswadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Banaswadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Banaswadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...amitlee9823
 
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...priyasharma62062
 
Top Rated Pune Call Girls Shikrapur ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated  Pune Call Girls Shikrapur ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...Top Rated  Pune Call Girls Shikrapur ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Pune Call Girls Shikrapur ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...Call Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Call Girls in Nagpur High Profile
 
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbai
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbaiVasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbai
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbaipriyasharma62062
 
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...dipikadinghjn ( Why You Choose Us? ) Escorts
 
WhatsApp 📞 Call : 9892124323 ✅Call Girls In Chembur ( Mumbai ) secure service
WhatsApp 📞 Call : 9892124323  ✅Call Girls In Chembur ( Mumbai ) secure serviceWhatsApp 📞 Call : 9892124323  ✅Call Girls In Chembur ( Mumbai ) secure service
WhatsApp 📞 Call : 9892124323 ✅Call Girls In Chembur ( Mumbai ) secure servicePooja Nehwal
 
falcon-invoice-discounting-unlocking-prime-investment-opportunities
falcon-invoice-discounting-unlocking-prime-investment-opportunitiesfalcon-invoice-discounting-unlocking-prime-investment-opportunities
falcon-invoice-discounting-unlocking-prime-investment-opportunitiesFalcon Invoice Discounting
 
Gurley shaw Theory of Monetary Economics.
Gurley shaw Theory of Monetary Economics.Gurley shaw Theory of Monetary Economics.
Gurley shaw Theory of Monetary Economics.Vinodha Devi
 
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )Pooja Nehwal
 
Booking open Available Pune Call Girls Wadgaon Sheri 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Wadgaon Sheri  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Wadgaon Sheri  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Wadgaon Sheri 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Pashan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Pashan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Pashan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Pashan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Call Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Aundh ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Aundh ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Aundh ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Aundh ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Call Girls in Nagpur High Profile
 
Diva-Thane European Call Girls Number-9833754194-Diva Busty Professional Call...
Diva-Thane European Call Girls Number-9833754194-Diva Busty Professional Call...Diva-Thane European Call Girls Number-9833754194-Diva Busty Professional Call...
Diva-Thane European Call Girls Number-9833754194-Diva Busty Professional Call...priyasharma62062
 
Top Rated Pune Call Girls Lohegaon ⟟ 6297143586 ⟟ Call Me For Genuine Sex Se...
Top Rated  Pune Call Girls Lohegaon ⟟ 6297143586 ⟟ Call Me For Genuine Sex Se...Top Rated  Pune Call Girls Lohegaon ⟟ 6297143586 ⟟ Call Me For Genuine Sex Se...
Top Rated Pune Call Girls Lohegaon ⟟ 6297143586 ⟟ Call Me For Genuine Sex Se...Call Girls in Nagpur High Profile
 
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...priyasharma62062
 

Kürzlich hochgeladen (20)

VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...
VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...
VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...
 
Webinar on E-Invoicing for Fintech Belgium
Webinar on E-Invoicing for Fintech BelgiumWebinar on E-Invoicing for Fintech Belgium
Webinar on E-Invoicing for Fintech Belgium
 
Business Principles, Tools, and Techniques in Participating in Various Types...
Business Principles, Tools, and Techniques  in Participating in Various Types...Business Principles, Tools, and Techniques  in Participating in Various Types...
Business Principles, Tools, and Techniques in Participating in Various Types...
 
Call Girls Banaswadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Banaswadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Banaswadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Banaswadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
Navi Mumbai Cooperetive Housewife Call Girls-9833754194-Natural Panvel Enjoye...
 
Top Rated Pune Call Girls Shikrapur ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated  Pune Call Girls Shikrapur ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...Top Rated  Pune Call Girls Shikrapur ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Pune Call Girls Shikrapur ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
 
Top Rated Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Dighi ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbai
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbaiVasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbai
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbai
 
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
 
WhatsApp 📞 Call : 9892124323 ✅Call Girls In Chembur ( Mumbai ) secure service
WhatsApp 📞 Call : 9892124323  ✅Call Girls In Chembur ( Mumbai ) secure serviceWhatsApp 📞 Call : 9892124323  ✅Call Girls In Chembur ( Mumbai ) secure service
WhatsApp 📞 Call : 9892124323 ✅Call Girls In Chembur ( Mumbai ) secure service
 
falcon-invoice-discounting-unlocking-prime-investment-opportunities
falcon-invoice-discounting-unlocking-prime-investment-opportunitiesfalcon-invoice-discounting-unlocking-prime-investment-opportunities
falcon-invoice-discounting-unlocking-prime-investment-opportunities
 
Gurley shaw Theory of Monetary Economics.
Gurley shaw Theory of Monetary Economics.Gurley shaw Theory of Monetary Economics.
Gurley shaw Theory of Monetary Economics.
 
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )
 
Booking open Available Pune Call Girls Wadgaon Sheri 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Wadgaon Sheri  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Wadgaon Sheri  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Wadgaon Sheri 6297143586 Call Hot Ind...
 
(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7
(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7
(INDIRA) Call Girl Mumbai Call Now 8250077686 Mumbai Escorts 24x7
 
Top Rated Pune Call Girls Pashan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Pashan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Pashan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Pashan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
 
Top Rated Pune Call Girls Aundh ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Aundh ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Aundh ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Aundh ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
Diva-Thane European Call Girls Number-9833754194-Diva Busty Professional Call...
Diva-Thane European Call Girls Number-9833754194-Diva Busty Professional Call...Diva-Thane European Call Girls Number-9833754194-Diva Busty Professional Call...
Diva-Thane European Call Girls Number-9833754194-Diva Busty Professional Call...
 
Top Rated Pune Call Girls Lohegaon ⟟ 6297143586 ⟟ Call Me For Genuine Sex Se...
Top Rated  Pune Call Girls Lohegaon ⟟ 6297143586 ⟟ Call Me For Genuine Sex Se...Top Rated  Pune Call Girls Lohegaon ⟟ 6297143586 ⟟ Call Me For Genuine Sex Se...
Top Rated Pune Call Girls Lohegaon ⟟ 6297143586 ⟟ Call Me For Genuine Sex Se...
 
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
 

S3 and EC2 Rails Scenarios

  • 1. Amazon S3 + EC2 + Rails = Dream Team? Thoughts by Adam Groves and Martin Rehfeld @ BRUG 05-Apr-2007
  • 2. Amazon S3 Simple Storage Service • Pricing • $0.15 per GB-Month NO CO ST (10 GB = $1.50 per month) DRIVE R • $0.20 per GB of data transferred BEWA RE HIGH TRAFF IC (100 GB = additional $20 per month) SITES
  • 3. Amazon S3 Common Terms • buckets: S3 global name space some bucket A • objects: accessed by key [~ path+name] my bucket #1 can have metadata object 1, key = „images/icons/smile.png“, encoding=... object 2, key = „images/icons/cry.png“, encoding=... • prefixes: } identical prefix searching by prefix emulates directory structure my bucket #2 • ACL: some bucket B ... everyone, authenticated users, owner / named users
  • 5. Amazon EC2 Elastic Compute Cloud • Pricing • $0.10 per instance-hour consumed IDEAL STAGIN FOR GA SCALIN ND (1 month 24x7 ~ $72) G • $0.20 per GB of data transferred (just internet traffic; TRAFF WARN IC no charge for EC2-S3 traffic) IN APPLIE G S
  • 6. Amazon EC2 Instance Specs • ~ 1.7 GHz x86 CPU ACTUA LLY A XEN VIRTUA INSTAN L CE • 1.75 GB RAM • 160 GB local disk space • 250 Mb/s network bandwidth
  • 7. Amazon EC2 Common Terms • images: named OS images stored in S3: „AMI“ • instances: virtual maschines running an AMI • bundling: saving customized images back to S3 • non-persistence: BUG O FEATU R local disk storage will not survive instance RE? shutdown or failure
  • 8. Amazon EC2 Network Security access group quot;defaultquot; access group quot;webquot; Internet access group quot;backendquot;
  • 9. Amazon EC2 Rails Scenario } EC2 S3 Web Static Server Content  Application Code Server memcached, backgrounDRb, ...  SQL HOW TO GET A PERSIS Database TENT DB?
  • 10. Amazon EC2 Database Persistence Flavor A: • on instance failure Frequent backup to S3 you will lose all changes since last backup S3 • backup using a lot backup job of resources DB • no automatic failover
  • 11. Amazon EC2 Database Persistence Flavor B: • on instance failure Backup write ahead logs to S3 you will lose all changes since last log switch • S3 DB backup is fast, but backup job recovery will take WAL longer • still no automatic failover
  • 12. Amazon EC2 Database Persistence Flavor C: • you might still lose all Shadow database changes since last log switch • Master Shadow backup is fast, recovery is usually not neccessary (only if master and slave continous DB recovery should fail at the same time) WAL transfer DB WAL • no load balancing between master and slave via • automatic failover can be achieved S3
  • 13. Amazon EC2 Database Persistence • Flavor D: data loss only on failure of all instances (Multi-Master-)Replication • reduced write performance Master #1 Master #2 • sophisticated configuration  can be tricky two-way • should be combined with replication DB flavor A or B for backup DB • load balancing can be backup job achieved • automatic failover can be achieved S3
  • 14. Amazon EC2 Database Persistence Flavor E (highly Experimental): • unless caching is used there should be no data DB files on S3DFS loss • (very?) reduced performance • reliability of S3DFS yet to S3 be proven • can be combined with DB S3DFS fuse filesystem flavors A or B for backup • can be combined with flavors C or D for failover and load balancing (flavor D only)
  • 15. Resources • Amazon EC2 / S3 aws.amazon.com/ec2 / aws.amazon.com/s3 • Rails & EC2 & Capistrano tasks • Amazon Web Services Ruby Gem (aws/s3) http://niblets.wordpress.com/2007/02/12/capistrano-ec2-sitting-in-a-tree-k-i-s-s-i-n-g/ http://amazon.rubyforge.org/ • S3DFS filesystem driver http://www.openfount.com/blog/s3dfs-for-ec2 • Discussion on persistence with EC2 http://blog.awswebshop.com/2007/01/07/thoughts-on-current-functionality-requests-for-future-functionality/ • Postgres WAL / continuous archiving http://www.postgresql.org/docs/8.2/static/wal-intro.html / http://www.postgresql.org/docs/8.2/static/continuous-archiving.html • MySQL multi-master replication http://capttofu.livejournal.com/1752.html
  • 16. Q &A ! Adam Groves adam.groves@gmail.com Martin Rehfeld martin.rehfeld@glnetworks.de