Amazon EC2 + Rails

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    8 Favorites & 2 Groups

    Amazon EC2 + Rails - Presentation Transcript

    1. Amazon EC2 + Rails John Ward http://thinedgeofthewedge.blogspot.com/
    2. Agenda
      • What is EC2
      • Provisioning
      • Rails + EC2
      • Gotchas
      • Other Useful Stuff
    3. What is EC2
      • Amazon are providing infrasture on demand
        • Simple Storage Service (S3)
        • Elastic Compute Cloud (EC2)
      • S3 is a pay as you go storage solution
        • $0.15 per 1GB stored
      • EC2 is a virtual computing grid
        • Provision virtual environments on Amazon infrastructure
        • XEN virtual environment
        • $0.10 per hour consumed
        • $0.18 (<= 10TB), $0.16 (>10TB & <=50TB), $0.13 per GB(>50TB)
        • Equivalent to physical spec of 1.7Ghz x86 processor, 1.75GB of RAM, 160GB of local disk, and 250Mb/s of network bandwidth
        • Maintain Complete Control
      • Register for S3
        • required for EC2
      • Register for EC2
        • currently restricted beta
      • Setup EC2 environment
        • http://docs.amazonwebservices.com/AmazonEC2/gsg/2007-01-19/
      Provisioning
    4. Provisioning
      • 3 Steps to run
        • create a keypair
          • ec2-add-keypair <name>
        • find an image you want to use
          • ec2-describe-images -o self -o amazon
          • ec2-describe-images -a
        • run instance
          • ec2-run-instances ami-*** -k gsg-keypair
      • Demo...
    5. Provisioning
      • Customise
        • Security Groups
          • ec2-describe-group <group>
          • ec2-authorize <group> -p <port>
        • Custom Image
          • scp -i <keypairname> <pk> <cert> root@<public hostname>:/mnt
          • ssh -i <keypairname> root@<public hostname>
          • ec2-bundle-vol -d /mnt -k <pk> -c <cert> -u <awsaccountid> -s <size>
          • ec2-upload-bundle -b <your-s3-bucket> -m /mnt/image.manifest.xml -a <aws-access-key-id> -s <aws-secret-access-key>
          • ec2-register <your-s3-bucket>/image.manifest.xml
      • Demo...
    6. Rails + EC2 - Options
      • Lots of options for using Rails with EC2
        • Gems
          • Amazon EC2 http://amazon-ec2.rubyforge.org/
        • Plugins
          • Elastic Rails http://www.elasticrails.com/elasticrails/
        • Capistrano
          • Capazon http://capazon.rubyforge.org/
        • Roll your own
          • Customise + Bundle an image
    7. Rails + EC2 – Our Approach
      • Our approach
        • Ubuntu Feisty Image
        • MySQL, Apache 2.2, Mongrel Cluster 0.2.1, Mongrel (1.0.1), Ruby 1.8.5, Rails 1.2.3, Gems
        • Used for stage
          • Launch Instance
          • Use Capistrano to deploy
      • Demo...
    8. Gotchas
      • No static IP
      • No persistance storage
    9. Other Useful Stuff
      • Firefox Plugins
        • EC2 UI http://developer.amazonwebservices.com/connect/entry.jspa?entryID=609
        • S3 Organizer http://www.rjonna.com/ext/s3fox.php
      • S3 Filesystem
        • S3DFS http://www.openfount.com/blog/s3dfs-for-ec2
      • Static IP
        • WeoCeo http://weoceo.weogeo.com/

    + johnwardjohnward, 3 years ago

    custom

    5081 views, 8 favs, 3 embeds more stats

    Presentation to the Ruby Ireland group

    12th Jun more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 5081
      • 4857 on SlideShare
      • 224 from embeds
    • Comments 0
    • Favorites 8
    • Downloads 0
    Most viewed embeds
    • 220 views on http://thinedgeofthewedge.blogspot.com
    • 3 views on http://ilakeruby.blogspot.com
    • 1 views on http://proflink.blogspot.com

    more

    All embeds
    • 220 views on http://thinedgeofthewedge.blogspot.com
    • 3 views on http://ilakeruby.blogspot.com
    • 1 views on http://proflink.blogspot.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Groups / Events