EC2ナイトセミナプレゼン資料 Rel2

2,966 views

Published on

2009年9月9日 JJUG主催 アマゾンEC2ナイトセミナ資料

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,966
On SlideShare
0
From Embeds
0
Number of Embeds
1,034
Actions
Shares
0
Downloads
37
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

EC2ナイトセミナプレゼン資料 Rel2

  1. 1. EC2 2009/9/8 EC2 1
  2. 2. • • EC2 2
  3. 3. Agenda • • • EC2 • EC2 • • 3
  4. 4. chapter 1 10 4
  5. 5. • • paperboy&co. EC lolipop JUGEM GMO (3633) 5
  6. 6. 1,000 ASP 6
  7. 7. • • EC 7
  8. 8. • 2000 • 2000 10 Web CMS (Windows Media , Real Server , SMIL ) Flash Flash4 actionscript FCS Web ASP → Java Servlet , Struts ) • 2006 1 Paperboy&co. LAMP , Flash , JavaScript 8
  9. 9. • • •2 F’s Garage (blog) 2003 http://www.milkstand.net/fsgarage 9
  10. 10. • 2006 7 • FedoraCore5 • PowerEdge SC430 (Celeron D) • B 1Mbps www • F’s Garage (apache 2.0) • DNS (bind) • Drupal ( RSS 10
  11. 11. • • • 11
  12. 12. chapter 2 12
  13. 13. • (PC, iPhone , Windows Mobile, Android • 2007 4 • • PHP5 + MySQL (eo MVC 13
  14. 14. • api • • URL Web 14
  15. 15. • 15 twitter 10% • 15
  16. 16. 16
  17. 17. 17
  18. 18. • RAID HDD HDD • • • • • Web CPU (AMD Phenom 9950 → • UStream 18
  19. 19. • HDD /bin 19
  20. 20. Web EC2 DB ML115(Opteron) (HP ML115 Phenom 9950) SC430 Web Yamaha RT1000 twitter HP ML115 (Athlon64 X2) 20
  21. 21. • AMD 600 PV ※ in/out 21
  22. 22. EC2 • EC2 • EC2 • • 22
  23. 23. EC2 • • • twitter api → → twitter api vs → EC2 → twitter api 23
  24. 24. chapter 3 EC2 24
  25. 25. EC2 • id:rx7 Amazon EC2/S3 - (Amazon Web Services ) http://d.hatena.ne.jp/rx7/20080528/p1 25
  26. 26. EC2 • Elastic Load Balancing • Web 30 • DB IP • Medium ( 32bit Xeon 2.3GHz 1.7GByte 350GB 1 0.2$ /hour 144$ + • PHP NFS 26
  27. 27. • Web proxy heteml • DB EC2 small • MySQL DB EC2 Large Instance 0.4 /hour 7.5GB • DNS 27
  28. 28. EC2 • CPU • I/O Web small instance ( 200 PV • medium × 3 1 Phenom (9950BE • medium instance small (AMI) small medium 28
  29. 29. Web 30min • Web AMI >ec2-run-instances ami-xxxx -t c1.medium -k ***** • rsync >/root/ec2app_update.sh • AMI • 29
  30. 30. AMI • mkdir /var/session • mount -o nolock -t nfs ip-xxxxxxxxxx.ec2.internal:/var/ session /var/session • /etc/init.d/sendmail start • /sbin/chkconfig sendmail on • pecl install channel://pecl.php.net/oAuth-0.99.9 • cp /var/www/twitter/cron/httpd_logrotate /etc/logrotate.d/ • php.ini Web • AMI 30
  31. 31. • $977 (Medium 6 $225 $23 S3 $1.2 $1,226 • $1,200 (Medium 7.8 $340 $24 S3 $1.2 $1,606 31
  32. 32. EC2 • Load Balancer IP →ec2 DNS CNAME movatwitter.jp www.movatwitter.jp • Cloud watch or WAKAME • Script • EBS • Reserved Instance EC2 • EC2 32
  33. 33. chapter 4 EC2 33
  34. 34. EC2 • h • ec2 e-learning IR 34
  35. 35. • GUI >ec2-run-instances ami-xxxxxxxx -t c1.medium -k ******* >elb-register-instances-with-lb movatwitter-lb --instances i-xxxxxx,i- xxxxx >elb-describe-instance-health --lb movatwitter-lb 35
  36. 36. iPhone • Touch Term SSH • 36
  37. 37. chapter 5 37
  38. 38. • AMI OS • • • HDD • → 38
  39. 39. • • 39
  40. 40. 40
  41. 41. • EC2 • • (AMI) 41
  42. 42. 42

×