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
16. 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)
17. 邪惡實例 - WarBook
• Facebook Application ( Game!!!)
• 1.5 M member, 1.6 B pageview per day
18. 邪惡實例 - WarBook
• 1 Static File Server
• 1 Load Balancer (Perlbal)
• 1 Database
• 1 Static Asset
• 1 Memcahe
• Many Many Many Mongrel
Capistrano & ec2onrails !!
19. 邪惡實例 - WarBook
• Cost : $2,000 USD / per month
• Income : $10,000 USD / per month
• 買空賣空 !! XD