Hosting Drupal on Amazon EC2

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

    4 Favorites

    Hosting Drupal on Amazon EC2 - Presentation Transcript

    1. About me
      • Kornel Lugosi (Coornail)
      • Student at University of Szeged
      • Drupal developer @ Pronovix
      • Linux enthusiastic
    2. How to use Amazon EC2 for Drupal
    3. My idea about “ Why this #$%$@&^% thing is not working? ”
      • Time ->
    4. Hosting solutions
      • Webhosting
        • Initial cost is cheap
        • Monthly cost is cheap
        • Is it reliable?
        • No customization
        • No server maintenance
    5. Hosting solutions
      • Virtual Private Server
        • Initial cost is moderate
        • Monthly cost is moderate
        • Is it reliable?
        • Is it fast?
        • Full customization
        • You have to maintain the software
        • Usually the memory is quite limited
    6. Hosting solutions
      • Dedicated Server
        • Initial cost is very high
        • Monthly cost is cheap
        • Is it reliable?
        • It's fast
        • Full customization
        • You have to maintain the software and the hardware
    7. Hosting solutions
      • Amazon cloud
        • Initial cost is moderate
        • Monthly cost is moderate
        • Is it reliable?
        • Full customization (even in the hardware in minutes)
        • You have to maintain the software (and that's harder here)
    8. About amazon ec2
      • Virtualised Hardwares (Instances)
      • Distributed
      • Dynamically scalable
    9. Some terms
    10. “ My server is fast and strong, why would I need that?”
    11. Maybe you'll need more servers... like tomorrow
    12. Hardware will eventually break down
    13. You don't have to worry about those ^^
    14. That's not true
      • Errors can be present at the software level in the AMI
      • Nothing guarantees that if you start a server instance it will run 'til the end of time
      • The AMI s storage is not permanent!
    15. What happens if an instance gets terminated?
      • Your data is lost
    16. Permanent storage
      • S3 ( S imple S torage S ervice)
        • Does n't store files
        • Stores “ objects ”, “ buckets ” and “ keys ”
        • You have to design the application to use it
        • “ There is a module for that” : project/amazon_s3
      • EBS ( E lastic B lock S tore )
        • Provides traditional block devices
        • It can store any filesystem (and any file )
    17. Permanent storage
      • S3 ( S imple S torage S ervice)
        • Backing up EBS -s
        • Upload bundled AMIs
      • EBS ( E lastic B lock S tore )
        • Mount it (in a specific region)
        • Store your drupal files and database on it! ( /var, and /home propably )
    18. Tools
      • Command line tools
        • To create new AMI s
        • You can automatize things!
        • (Write aliases for the keys)
        • Browsing images not working in the eu? Seriously?
    19. Command line
    20. Tools
      • Web console
        • Limted features
        • What works, works great
        • You cannot boundle images
    21. Web console
    22. Tools
      • Elasticfox
        • Laggy responsiveness
        • No feedback that it's doing anything
        • It has a lot of options (and almost everything is working)
        • ( Install it in a different profile )
    23. Elasticfox
    24. Other tools
      • S3 firefox organizer (still, those are not files)
    25. Performance is money
      • Bandwidth
        • mod_gzip ( check Drupals js/css mime types! )
        • mod_expire
        • ssh -C ( I mean we're talking about linux, right? )
        • ( net.ipv4.tcp_tw_reuse = 1 )
        • ( net.ipv4.tcp_tw_recycle =1 )
      • Memory
        • pecl install apc
        • Apache mod_fastcgi / nginx + *fcgi
    26. The legend of disk IO
      • It's not legendary slow, but slow
      • Bandwidth is okay, latency is slow
    27. Stop whining, there's a workaround
      • Save on memory -> faster disc io
        • apc.ini: apc.shm_size="[bignumber]"
        • Start using fastcgi (it has almost constant memory consumption -> filecache lives longer)
      • Optimize disk io
        • Use noop scheduler ( echo noop > /sys/block/sda/queue/scheduler )
        • Use noatime , nodiratime ( /etc/fstab )
        • (Use ext4, data=writeback )
    28. Stop whining, there's a workaround
      • php.ini : realpath_cache_size=1M
      • Use multisite (apc cache)
      • (Consider using nginx ?)
    29. Relational Database Service
      • You can outsource mysql ! (costs a lot)
      • Full mysql 5.1 compilance (they said)
      • More instances can use it!
    30. Still want to use it?
      • We do =)
      • Not fitting for everybody

    + Kornel LugosiKornel Lugosi, 3 weeks ago

    custom

    353 views, 4 favs, 1 embeds more stats

    I spoke about how to host Drupal in the cloud at Dr more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 353
      • 352 on SlideShare
      • 1 from embeds
    • Comments 0
    • Favorites 4
    • Downloads 4
    Most viewed embeds
    • 1 views on http://dominiquelacan.blogspot.com

    more

    All embeds
    • 1 views on http://dominiquelacan.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