Using Amazon EC2 to Scale Your Web Application
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
8,094
On Slideshare
7,118
From Embeds
976
Number of Embeds
24

Actions

Shares
Downloads
109
Comments
0
Likes
2

Embeds 976

http://funnel.hasgeek.com 508
http://karatzin.blogspot.com 172
https://funnel.hasgeek.com 85
url_unknown 75
http://www.linkedin.com 53
http://marianela-cosita.blogspot.com 17
http://funnel.hasgeek.in 14
http://avama1104.blogspot.com 9
http://karatzin.blogspot.gr 9
http://www.slideshare.net 7
http://twitter.com 7
https://twitter.com 4
http://avama1104.blogspot.com.es 3
http://karatzin.blogspot.de 2
http://espeleotenerife.blogspot.com 2
http://www.devbrijj2.com 1
http://tmtarmenia.blogspot.com 1
http://krutung54.wordpress.com 1
http://newsrivr.com 1
http://schoox.local 1
http://localhost 1
http://v10.babelmedias.dev 1
http://drizzlin.com 1
https://www.linkedin.com 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Transcript

  • 1. USING AMAZON EC2TO SCALE YOUR WEB APPLICATION Ravi Pratap M July 9, 2011
  • 2. About Me• Open source hacker • GNOME, Mono, libcurl• Budding entrepreneur • Early employee, Hillcrest Labs, Washington, D.C. • Co-founder & CTO, MobStac
  • 3. Agenda1. “What’s all the fuss about?” 8. “How does AWS help my app scale?”2. AWS jargon 9. A Scalable architecture3. Instance types 10.Scalable serving: ELB, RDS,4. Demo: Launching an instance Autoscaling5. Let’s log in 11.Demo: ELB6. Storage: S3 and EBS 12.Auto-scaling7. Demo: S3 Console 13.Managing AMI changes
  • 4. “What’s All The Fuss About?”On-demand, self-service provisioning of computing resources -no human interventionFull control over the entire stack - no abstractionPay by the hour
  • 5. AWS JargonAn instance is a virtual serverAn instance boots up from a disk image known as an AMI
  • 6. Instance TypesSuited to different kinds ofapplicationsStandard, Micro, High-CPU,High-memory, etc.t1.micro qualifies for free-tier - costs nothing to try itout!
  • 7. Demo: Launching an Instance
  • 8. Let’s Log In$ ssh -i mydefault.pem ubuntu@ec2-50-17-104-147.compute-1.amazonaws.comubuntu@domU-12-31-39-0B-6C-37:~$ sudo apt-get install python-devubuntu@domU-12-31-39-0B-6C-37:~$ sudo apt-get install nginx
  • 9. Storing Data S3 EBSStore arbitrary files (objects) Like raw hard disks, mountin folders. as /dev/sdxLike shared folders on the Attach to / detach from annetwork instance
  • 10. Demo: S3 Console
  • 11. How Does AWS Help My App Scale?Doesn’t automatically - yourarchitecture needs tochangeSimple example - fileuploads to S3
  • 12. A Scalable Architecture
  • 13. Scalable Serving: ELB, RDS, and Auto ScalingElastic Load Relational Auto Scaling:Balancing: Database Service: AutomaticallyAutomatically Run a MySQL scale capacity outdistribute traffic database in the or down basedbetween a bunch cloud, with on load patterns:of instances automatic no wastage ofrunning your backups and resourcesapplication replication
  • 14. Demo: ELB
  • 15. Auto ScalingAutomatically increase or decrease the number of runninginstances by tracking a metric, like average CPU utilizationAMI must auto-configure on bootAutomatically pull code from repoBe ready to serve requests
  • 16. THAT’S ALL FOLKS! twitter: @ravipratap ravi@mobstac.com
  • 17. Appendix: Managing AMI ChangesStart with Ubuntu 10.04 LTS image PMake changes manually, create new image P’For next AMI change, boot up P’ and create new image P’’after modificationsRinse and repeat
  • 18. Appendix: Other Services Of InterestCloudFront - CDN serviceRoute 53 - Scalable & highly available DNS service