SlideShare a Scribd company logo
1 of 16
Download to read offline
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=...

โ€ข   pre๏ฌxes:




                                                      }
                                                     identical pre๏ฌx
    searching by pre๏ฌx 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 traf๏ฌc;             TRAFF
                                      WARN IC

     no charge for EC2-S3 traf๏ฌc)
                                            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
                                                   con๏ฌguration
                                                   ๏€ข can be tricky
             two-way
                                               โ€ข   should be combined with
            replication
      DB                                           ๏ฌ‚avor 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 ๏ฌles on S3DFS                     loss

                                 โ€ข   (very?) reduced
                                     performance

                                 โ€ข   reliability of S3DFS yet to
                            S3       be proven

                                 โ€ข   can be combined with
                            DB
     S3DFS fuse ๏ฌlesystem

                                     ๏ฌ‚avors A or B for backup

                                 โ€ข   can be combined with
                                     ๏ฌ‚avors C or D for
                                     failover and load
                                     balancing (๏ฌ‚avor 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 ๏ฌlesystem 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

More Related Content

What's hot

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
ย 
Deep Dive into AWS Fargate
Deep Dive into AWS FargateDeep Dive into AWS Fargate
Deep Dive into AWS FargateAmazon Web Services
ย 
(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
ย 

What's hot (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 ...
ย 

Viewers also liked

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
ย 

Viewers also liked (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]
ย 

Similar to 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
ย 
4K Media Workflows on AWS
4K Media Workflows on AWS4K Media Workflows on AWS
4K Media Workflows on AWSAmazon Web Services
ย 
Cloud Architectures - Jinesh Varia - GrepTheWeb
Cloud Architectures - Jinesh Varia - GrepTheWebCloud Architectures - Jinesh Varia - GrepTheWeb
Cloud Architectures - Jinesh Varia - GrepTheWebjineshvaria
ย 
Whatโ€™s New in Amazon Aurora
Whatโ€™s New in Amazon AuroraWhatโ€™s New in Amazon Aurora
Whatโ€™s New in Amazon AuroraAmazon Web Services
ย 
Harnessing The Cloud
Harnessing The CloudHarnessing The Cloud
Harnessing The CloudDan Quellhorst
ย 
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
ย 

Similar to 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
ย 

Recently uploaded

Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
ย 
VIP Kalyan Call Girls ๐ŸŒ 9920725232 ๐ŸŒ Make Your Dreams Come True With Mumbai E...
VIP Kalyan Call Girls ๐ŸŒ 9920725232 ๐ŸŒ Make Your Dreams Come True With Mumbai E...VIP Kalyan Call Girls ๐ŸŒ 9920725232 ๐ŸŒ Make Your Dreams Come True With Mumbai E...
VIP Kalyan Call Girls ๐ŸŒ 9920725232 ๐ŸŒ Make Your Dreams Come True With Mumbai E...roshnidevijkn ( Why You Choose Us? ) Escorts
ย 
Call Girls Service Pune โ‚น7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...
Call Girls Service Pune โ‚น7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...Call Girls Service Pune โ‚น7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...
Call Girls Service Pune โ‚น7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...roshnidevijkn ( Why You Choose Us? ) Escorts
ย 
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
ย 
Stock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdfStock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdfMichael Silva
ย 
Q1 2024 Conference Call Presentation vF.pdf
Q1 2024 Conference Call Presentation vF.pdfQ1 2024 Conference Call Presentation vF.pdf
Q1 2024 Conference Call Presentation vF.pdfAdnet Communications
ย 
Pension dashboards forum 1 May 2024 (1).pdf
Pension dashboards forum 1 May 2024 (1).pdfPension dashboards forum 1 May 2024 (1).pdf
Pension dashboards forum 1 May 2024 (1).pdfHenry Tapper
ย 
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
ย 
VIP Independent Call Girls in Mira Bhayandar ๐ŸŒน 9920725232 ( Call Me ) Mumbai ...
VIP Independent Call Girls in Mira Bhayandar ๐ŸŒน 9920725232 ( Call Me ) Mumbai ...VIP Independent Call Girls in Mira Bhayandar ๐ŸŒน 9920725232 ( Call Me ) Mumbai ...
VIP Independent Call Girls in Mira Bhayandar ๐ŸŒน 9920725232 ( Call Me ) Mumbai ...dipikadinghjn ( Why You Choose Us? ) 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 ...
VIP Independent Call Girls in Mumbai ๐ŸŒน 9920725232 ( Call Me ) Mumbai Escorts ...dipikadinghjn ( Why You Choose Us? ) Escorts
ย 
Toronto dominion bank investor presentation.pdf
Toronto dominion bank investor presentation.pdfToronto dominion bank investor presentation.pdf
Toronto dominion bank investor presentation.pdfJinJiang6
ย 
Kopar Khairane Russian Call Girls Number-9833754194-Navi Mumbai Fantastic Unl...
Kopar Khairane Russian Call Girls Number-9833754194-Navi Mumbai Fantastic Unl...Kopar Khairane Russian Call Girls Number-9833754194-Navi Mumbai Fantastic Unl...
Kopar Khairane Russian Call Girls Number-9833754194-Navi Mumbai Fantastic Unl...priyasharma62062
ย 
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
ย 
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
ย 
call girls in Sant Nagar (DELHI) ๐Ÿ” >เผ’9953056974 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
call girls in Sant Nagar (DELHI) ๐Ÿ” >เผ’9953056974 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธcall girls in Sant Nagar (DELHI) ๐Ÿ” >เผ’9953056974 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
call girls in Sant Nagar (DELHI) ๐Ÿ” >เผ’9953056974 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
( Jasmin ) Top VIP Escorts Service Dindigul ๐Ÿ’ง 7737669865 ๐Ÿ’ง by Dindigul Call G...
( Jasmin ) Top VIP Escorts Service Dindigul ๐Ÿ’ง 7737669865 ๐Ÿ’ง by Dindigul Call G...( Jasmin ) Top VIP Escorts Service Dindigul ๐Ÿ’ง 7737669865 ๐Ÿ’ง by Dindigul Call G...
( Jasmin ) Top VIP Escorts Service Dindigul ๐Ÿ’ง 7737669865 ๐Ÿ’ง by Dindigul Call G...dipikadinghjn ( Why You Choose Us? ) Escorts
ย 
Airport Road Best Experience Call Girls Number-๐Ÿ“ž๐Ÿ“ž9833754194 Santacruz MOst Es...
Airport Road Best Experience Call Girls Number-๐Ÿ“ž๐Ÿ“ž9833754194 Santacruz MOst Es...Airport Road Best Experience Call Girls Number-๐Ÿ“ž๐Ÿ“ž9833754194 Santacruz MOst Es...
Airport Road Best Experience Call Girls Number-๐Ÿ“ž๐Ÿ“ž9833754194 Santacruz MOst Es...priyasharma62062
ย 
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
ย 
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
ย 

Recently uploaded (20)

Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
ย 
VIP Kalyan Call Girls ๐ŸŒ 9920725232 ๐ŸŒ Make Your Dreams Come True With Mumbai E...
VIP Kalyan Call Girls ๐ŸŒ 9920725232 ๐ŸŒ Make Your Dreams Come True With Mumbai E...VIP Kalyan Call Girls ๐ŸŒ 9920725232 ๐ŸŒ Make Your Dreams Come True With Mumbai E...
VIP Kalyan Call Girls ๐ŸŒ 9920725232 ๐ŸŒ Make Your Dreams Come True With Mumbai E...
ย 
(INDIRA) Call Girl Srinagar Call Now 8617697112 Srinagar Escorts 24x7
(INDIRA) Call Girl Srinagar Call Now 8617697112 Srinagar Escorts 24x7(INDIRA) Call Girl Srinagar Call Now 8617697112 Srinagar Escorts 24x7
(INDIRA) Call Girl Srinagar Call Now 8617697112 Srinagar Escorts 24x7
ย 
Call Girls Service Pune โ‚น7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...
Call Girls Service Pune โ‚น7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...Call Girls Service Pune โ‚น7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...
Call Girls Service Pune โ‚น7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...
ย 
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...
ย 
Stock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdfStock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdf
ย 
Q1 2024 Conference Call Presentation vF.pdf
Q1 2024 Conference Call Presentation vF.pdfQ1 2024 Conference Call Presentation vF.pdf
Q1 2024 Conference Call Presentation vF.pdf
ย 
Pension dashboards forum 1 May 2024 (1).pdf
Pension dashboards forum 1 May 2024 (1).pdfPension dashboards forum 1 May 2024 (1).pdf
Pension dashboards forum 1 May 2024 (1).pdf
ย 
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...
ย 
VIP Independent Call Girls in Mira Bhayandar ๐ŸŒน 9920725232 ( Call Me ) Mumbai ...
VIP Independent Call Girls in Mira Bhayandar ๐ŸŒน 9920725232 ( Call Me ) Mumbai ...VIP Independent Call Girls in Mira Bhayandar ๐ŸŒน 9920725232 ( Call Me ) Mumbai ...
VIP Independent Call Girls in Mira Bhayandar ๐ŸŒน 9920725232 ( Call Me ) 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 ...
ย 
Toronto dominion bank investor presentation.pdf
Toronto dominion bank investor presentation.pdfToronto dominion bank investor presentation.pdf
Toronto dominion bank investor presentation.pdf
ย 
Kopar Khairane Russian Call Girls Number-9833754194-Navi Mumbai Fantastic Unl...
Kopar Khairane Russian Call Girls Number-9833754194-Navi Mumbai Fantastic Unl...Kopar Khairane Russian Call Girls Number-9833754194-Navi Mumbai Fantastic Unl...
Kopar Khairane Russian Call Girls Number-9833754194-Navi Mumbai Fantastic Unl...
ย 
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
ย 
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...
ย 
call girls in Sant Nagar (DELHI) ๐Ÿ” >เผ’9953056974 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
call girls in Sant Nagar (DELHI) ๐Ÿ” >เผ’9953056974 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธcall girls in Sant Nagar (DELHI) ๐Ÿ” >เผ’9953056974 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
call girls in Sant Nagar (DELHI) ๐Ÿ” >เผ’9953056974 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
ย 
( Jasmin ) Top VIP Escorts Service Dindigul ๐Ÿ’ง 7737669865 ๐Ÿ’ง by Dindigul Call G...
( Jasmin ) Top VIP Escorts Service Dindigul ๐Ÿ’ง 7737669865 ๐Ÿ’ง by Dindigul Call G...( Jasmin ) Top VIP Escorts Service Dindigul ๐Ÿ’ง 7737669865 ๐Ÿ’ง by Dindigul Call G...
( Jasmin ) Top VIP Escorts Service Dindigul ๐Ÿ’ง 7737669865 ๐Ÿ’ง by Dindigul Call G...
ย 
Airport Road Best Experience Call Girls Number-๐Ÿ“ž๐Ÿ“ž9833754194 Santacruz MOst Es...
Airport Road Best Experience Call Girls Number-๐Ÿ“ž๐Ÿ“ž9833754194 Santacruz MOst Es...Airport Road Best Experience Call Girls Number-๐Ÿ“ž๐Ÿ“ž9833754194 Santacruz MOst Es...
Airport Road Best Experience Call Girls Number-๐Ÿ“ž๐Ÿ“ž9833754194 Santacruz MOst Es...
ย 
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 )
ย 
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=... โ€ข pre๏ฌxes: } identical pre๏ฌx searching by pre๏ฌx 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 traf๏ฌc; TRAFF WARN IC no charge for EC2-S3 traf๏ฌc) 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 con๏ฌguration ๏€ข can be tricky two-way โ€ข should be combined with replication DB ๏ฌ‚avor 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 ๏ฌles on S3DFS loss โ€ข (very?) reduced performance โ€ข reliability of S3DFS yet to S3 be proven โ€ข can be combined with DB S3DFS fuse ๏ฌlesystem ๏ฌ‚avors A or B for backup โ€ข can be combined with ๏ฌ‚avors C or D for failover and load balancing (๏ฌ‚avor 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 ๏ฌlesystem 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