Your SlideShare is downloading. ×
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Ec2onrails
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Ec2onrails

2,123

Published on

just an introduction

just an introduction

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,123
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
18
Comments
0
Likes
2
Embeds 0
No embeds

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

Transcript

  • 1. EC2 on Rails xdite@handlino.com Just a introduction ..
  • 2. Amazon Web Service • Amazon Simple Storage Service (S3) • Amazon Elastic Compute Cloud (EC2) • Amazon CloudFront
  • 3. S3 • Backup Storage • Content Delivery
  • 4. Why Use S3? • 不用自己買機器全球布點 • 不用買 NetApp • 確保一定的傳輸品質
  • 5. EC2 • Apache / MySQL / memcache • Cloud Computing
  • 6. Why Use EC2? • 降低機器購買成本 • 可解決臨時加機器需求 • 能用相當便宜的成本幹很邪惡的壞事
  • 7. 邪惡實例 • The NewYork Times • 1851 - 1922 的掃描 TIFF (4TB) -> PDF • Transfer to S3 • Use 100 EC2 instance to convert • Download 1.5TB PDF • Cost 2-3 days & $3000 USD
  • 8. S3 Pricing • Storage • $0.15 per GB first 50 TB / month • $0.14 per GB next 50 TB /month • Data Transfer • $0.10 per GB all data transfer in • $0.17 per GB first 10TB data transfer out
  • 9. S3 Pricing • Requests • $0.01 per 1000 PUT,COPY,POST,LIST • $0.01 per 10000 GET and all other request
  • 10. EC2 Pricing • Small • $0.01 per hour => $72 USD per month • 1.7GB memory • 1 EC2 UNIT • 160GB instance storage • 32 bit Platform 99.95% SLA
  • 11. EC2 很好 Rails 很強大
  • 12. EC2onRails 很好很強大
  • 13. EC2onRails • Amazon Machine Image • Capistrano config • Easy to Scale
  • 14. EC2 + EBS • Terminat EC2 instance, the data will disaper. • Use script to backup / restore MySQL • EBS ( Elastic Block Store ) - raw disk • Snapshot to S3 • ec2onrails 0.9.10 will support ( now is 0.9.9)
  • 15. 邪惡實例 - WarBook • Facebook Application ( Game!!!) • 1.5 M member, 1.6 B pageview per day
  • 16. 邪惡實例 - WarBook • 1 Static File Server • 1 Load Balancer (Perlbal) • 1 Database • 1 Static Asset • 1 Memcahe • Many Many Many Mongrel Capistrano & ec2onrails !!
  • 17. 邪惡實例 - WarBook • Cost : $2,000 USD / per month • Income : $10,000 USD / per month • 買空賣空 !! XD
  • 18. Reference • ec2onrails • Amazon AWS • Amazon EBS Intro • HOWTO Build EC2 Image • Deploy Rails Application on EC2onRails
  • 19. Q & A

×