SlideShare a Scribd company logo
1 of 42
Download to read offline
EC2

2009/9/8   EC2



                       1
•


•   EC2




          2
Agenda

•
•
•       EC2

• EC2
•
•
                       3
chapter 1




     10




            4
•
•         paperboy&co.
    EC



                   lolipop        JUGEM
    GMO
                         (3633)

                                          5
1,000   ASP
              6
•



•
    EC



         7
•   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
•

•
•2
    F’s Garage (blog)
    2003
    http://www.milkstand.net/fsgarage

                                        9
•   2006   7

•   FedoraCore5

•   PowerEdge SC430 (Celeron D)

•   B                                    1Mbps www

•              F’s Garage (apache 2.0)

•   DNS (bind)

•   Drupal ( RSS

                                                     10
•
•
•



    11
chapter 2




            12
•
          (PC, iPhone , Windows Mobile, Android


• 2007         4

•

• PHP5 + MySQL
    (eo                       MVC

                                                  13
•         api



•
•   URL         Web




                      14
•   15
          twitter
    10%

•
                    15
16
17
•   RAID HDD
                               HDD

•
•
•
•
•   Web
           CPU (AMD Phenom 9950      →

•                    UStream

                                         18
•   HDD   /bin




                 19
Web               EC2
        DB
        ML115(Opteron)    (HP ML115
                         Phenom 9950)
SC430




               Web
                                        Yamaha RT1000   twitter
                HP ML115
              (Athlon64 X2)

                                                                  20
• AMD
     600   PV



 ※              in/out




                         21
EC2

•
              EC2

• EC2

•

•
                    22
EC2


•
•

•
    twitter api

        →            → twitter api
                vs
        → EC2                → twitter api
                                             23
chapter 3

    EC2



            24
EC2


•                             id:rx7




Amazon EC2/S3                  -
         (Amazon Web Services           )
http://d.hatena.ne.jp/rx7/20080528/p1

                                            25
EC2


•                     Elastic Load Balancing

•   Web                                        30

•   DB                     IP

•                         Medium
    ( 32bit Xeon 2.3GHz         1.7GByte   350GB
      1          0.2$ /hour           144$ +

•   PHP                     NFS



                                                    26
•
    Web    proxy    heteml

•            DB    EC2   small

•                   MySQL
          DB EC2
           Large Instance 0.4 /hour   7.5GB

•            DNS



                                              27
EC2


•                            CPU

•   I/O              Web             small instance


    (     200   PV

•                    medium × 3
    1 Phenom (9950BE

•   medium instance        small                (AMI)
                small              medium



                                                        28
Web
                                30min




•   Web                 AMI
    >ec2-run-instances ami-xxxx -t c1.medium -k *****

•                                                       rsync
    >/root/ec2app_update.sh

•           AMI



•


                                                                29
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
•
                  $977 (Medium     6
           $225
                      $23
    S3   $1.2
            $1,226

•
                  $1,200 (Medium       7.8
           $340
                      $24
    S3   $1.2
            $1,606
                                             31
EC2

•              Load Balancer IP
    →ec2      DNS         CNAME
       movatwitter.jp    www.movatwitter.jp

•   Cloud watch or WAKAME



•              Script

•   EBS

•   Reserved Instance                         EC2



•              EC2

                                                    32
chapter 4

EC2



                  33
EC2

•     h

•                      ec2
    e-learning   IR




                             34
•   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
iPhone


•   Touch Term
                          SSH

•




                                36
chapter 5




            37
•         AMI
     OS

•
•
•   HDD

•

    →
                38
•

•




    39
40
•
            EC2

•

•
    (AMI)




                  41
42

More Related Content

What's hot

Phorum MySQL tricks
Phorum MySQL tricksPhorum MySQL tricks
Phorum MySQL tricks
guestd34230
 
Scripting Yor Java Application with BSF3
Scripting Yor Java Application with BSF3Scripting Yor Java Application with BSF3
Scripting Yor Java Application with BSF3
day
 
From One to a Cluster
From One to a ClusterFrom One to a Cluster
From One to a Cluster
guestd34230
 
Deploy, Scale and Sleep at Night with JRuby
Deploy, Scale and Sleep at Night with JRubyDeploy, Scale and Sleep at Night with JRuby
Deploy, Scale and Sleep at Night with JRuby
Joe Kutner
 

What's hot (18)

Building Real-Time Applications with Android and WebSockets
Building Real-Time Applications with Android and WebSocketsBuilding Real-Time Applications with Android and WebSockets
Building Real-Time Applications with Android and WebSockets
 
Phorum MySQL tricks
Phorum MySQL tricksPhorum MySQL tricks
Phorum MySQL tricks
 
Scripting Yor Java Application with BSF3
Scripting Yor Java Application with BSF3Scripting Yor Java Application with BSF3
Scripting Yor Java Application with BSF3
 
From One to a Cluster
From One to a ClusterFrom One to a Cluster
From One to a Cluster
 
Virtual Infrastructure
Virtual InfrastructureVirtual Infrastructure
Virtual Infrastructure
 
D2
D2D2
D2
 
Salt Stack - Subhankar Sengupta
Salt Stack - Subhankar SenguptaSalt Stack - Subhankar Sengupta
Salt Stack - Subhankar Sengupta
 
201904 websocket
201904 websocket201904 websocket
201904 websocket
 
體驗 Hhvm
體驗 Hhvm體驗 Hhvm
體驗 Hhvm
 
Fisl - Deployment
Fisl - DeploymentFisl - Deployment
Fisl - Deployment
 
Deploy, Scale and Sleep at Night with JRuby
Deploy, Scale and Sleep at Night with JRubyDeploy, Scale and Sleep at Night with JRuby
Deploy, Scale and Sleep at Night with JRuby
 
Magento Meetup Wrocław 6. "Docker for Mac - possible solutions to performance...
Magento Meetup Wrocław 6. "Docker for Mac - possible solutions to performance...Magento Meetup Wrocław 6. "Docker for Mac - possible solutions to performance...
Magento Meetup Wrocław 6. "Docker for Mac - possible solutions to performance...
 
Fast stuff… on speed
Fast stuff… on speedFast stuff… on speed
Fast stuff… on speed
 
WebSockets with Spring 4
WebSockets with Spring 4WebSockets with Spring 4
WebSockets with Spring 4
 
快快樂樂用Homestead
快快樂樂用Homestead快快樂樂用Homestead
快快樂樂用Homestead
 
PXEless Discovery with Foreman
PXEless Discovery with ForemanPXEless Discovery with Foreman
PXEless Discovery with Foreman
 
Nvmfs benchmark
Nvmfs benchmarkNvmfs benchmark
Nvmfs benchmark
 
WordPress Home Server with Raspberry Pi
WordPress Home Server with Raspberry PiWordPress Home Server with Raspberry Pi
WordPress Home Server with Raspberry Pi
 

Viewers also liked

Viewers also liked (9)

モバツイッタープレゼン
モバツイッタープレゼンモバツイッタープレゼン
モバツイッタープレゼン
 
Illescas julia aguado
Illescas julia aguadoIllescas julia aguado
Illescas julia aguado
 
セミッタープレゼン 20090718
セミッタープレゼン 20090718セミッタープレゼン 20090718
セミッタープレゼン 20090718
 
Android ui design
Android ui designAndroid ui design
Android ui design
 
Illescas cristian medina
Illescas cristian medinaIllescas cristian medina
Illescas cristian medina
 
Mashup Awards 2016
Mashup Awards 2016Mashup Awards 2016
Mashup Awards 2016
 
SIer出身者を採用したい非SI経験+採用責任者の叫び
SIer出身者を採用したい非SI経験+採用責任者の叫びSIer出身者を採用したい非SI経験+採用責任者の叫び
SIer出身者を採用したい非SI経験+採用責任者の叫び
 
【プレゼン】見やすいプレゼン資料の作り方【初心者用】
【プレゼン】見やすいプレゼン資料の作り方【初心者用】【プレゼン】見やすいプレゼン資料の作り方【初心者用】
【プレゼン】見やすいプレゼン資料の作り方【初心者用】
 
見やすいプレゼン資料の作り方 - リニューアル増量版
見やすいプレゼン資料の作り方 - リニューアル増量版見やすいプレゼン資料の作り方 - リニューアル増量版
見やすいプレゼン資料の作り方 - リニューアル増量版
 

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

豆瓣技术架构的发展历程 @ QCon Beijing 2009
豆瓣技术架构的发展历程 @ QCon Beijing 2009豆瓣技术架构的发展历程 @ QCon Beijing 2009
豆瓣技术架构的发展历程 @ QCon Beijing 2009
Qiangning Hong
 
小咄:BlazeDS+AMF Client+MySQLで実現するKey-Value Storage
小咄:BlazeDS+AMF Client+MySQLで実現するKey-Value Storage小咄:BlazeDS+AMF Client+MySQLで実現するKey-Value Storage
小咄:BlazeDS+AMF Client+MySQLで実現するKey-Value Storage
moai kids
 
Genkidama:実装と課題
Genkidama:実装と課題Genkidama:実装と課題
Genkidama:実装と課題
Takuya ASADA
 

Similar to EC2ナイトセミナプレゼン資料 Rel2 (20)

Hong Qiangning in QConBeijing
Hong Qiangning in QConBeijingHong Qiangning in QConBeijing
Hong Qiangning in QConBeijing
 
豆瓣技术架构的发展历程 @ QCon Beijing 2009
豆瓣技术架构的发展历程 @ QCon Beijing 2009豆瓣技术架构的发展历程 @ QCon Beijing 2009
豆瓣技术架构的发展历程 @ QCon Beijing 2009
 
re7jweiss
re7jweissre7jweiss
re7jweiss
 
Blogopolisの裏側
Blogopolisの裏側Blogopolisの裏側
Blogopolisの裏側
 
Rails Conf Europe 2007 - Utilizing Amazon S3 and EC2 in Rails
Rails Conf Europe 2007 - Utilizing Amazon S3 and EC2 in RailsRails Conf Europe 2007 - Utilizing Amazon S3 and EC2 in Rails
Rails Conf Europe 2007 - Utilizing Amazon S3 and EC2 in Rails
 
Cloud Computing BP-Study 20090319
Cloud Computing BP-Study 20090319Cloud Computing BP-Study 20090319
Cloud Computing BP-Study 20090319
 
Rails in the Cloud
Rails in the CloudRails in the Cloud
Rails in the Cloud
 
Use Somebody Else's Infrastructure - Utilizing Amazon S3 and EC2
Use Somebody Else's Infrastructure - Utilizing Amazon S3 and EC2Use Somebody Else's Infrastructure - Utilizing Amazon S3 and EC2
Use Somebody Else's Infrastructure - Utilizing Amazon S3 and EC2
 
小咄:BlazeDS+AMF Client+MySQLで実現するKey-Value Storage
小咄:BlazeDS+AMF Client+MySQLで実現するKey-Value Storage小咄:BlazeDS+AMF Client+MySQLで実現するKey-Value Storage
小咄:BlazeDS+AMF Client+MySQLで実現するKey-Value Storage
 
How to build a state-of-the-art rails cluster
How to build a state-of-the-art rails clusterHow to build a state-of-the-art rails cluster
How to build a state-of-the-art rails cluster
 
XS Boston 2008 Network Topology
XS Boston 2008 Network TopologyXS Boston 2008 Network Topology
XS Boston 2008 Network Topology
 
Nevmug Lighthouse Automation7.1
Nevmug   Lighthouse   Automation7.1Nevmug   Lighthouse   Automation7.1
Nevmug Lighthouse Automation7.1
 
Getting Started with PoolParty and EC2
Getting Started with PoolParty and EC2Getting Started with PoolParty and EC2
Getting Started with PoolParty and EC2
 
Amazon Ec2
Amazon Ec2Amazon Ec2
Amazon Ec2
 
Cloudpack
CloudpackCloudpack
Cloudpack
 
Yakiniku on the Cloud
Yakiniku on the CloudYakiniku on the Cloud
Yakiniku on the Cloud
 
Hands-On: Deploy Remote Graphics Desktops for Content Production (CMP422) - A...
Hands-On: Deploy Remote Graphics Desktops for Content Production (CMP422) - A...Hands-On: Deploy Remote Graphics Desktops for Content Production (CMP422) - A...
Hands-On: Deploy Remote Graphics Desktops for Content Production (CMP422) - A...
 
Genkidama:実装と課題
Genkidama:実装と課題Genkidama:実装と課題
Genkidama:実装と課題
 
Deploying and Scaling using AWS
Deploying and Scaling using AWSDeploying and Scaling using AWS
Deploying and Scaling using AWS
 
Netcf Gc
Netcf GcNetcf Gc
Netcf Gc
 

More from 真一 藤川

Startup design-thinkng
Startup design-thinkngStartup design-thinkng
Startup design-thinkng
真一 藤川
 
エンジニアの未来サミット for student
エンジニアの未来サミット for studentエンジニアの未来サミット for student
エンジニアの未来サミット for student
真一 藤川
 

More from 真一 藤川 (20)

DXに立ち向かうための マインドセット(公開用)
DXに立ち向かうための マインドセット(公開用)DXに立ち向かうための マインドセット(公開用)
DXに立ち向かうための マインドセット(公開用)
 
部下に対して「難しいね」で終わらせないマネジメント
部下に対して「難しいね」で終わらせないマネジメント部下に対して「難しいね」で終わらせないマネジメント
部下に対して「難しいね」で終わらせないマネジメント
 
2019/10/31 BASE社発表資料 - EOF2019
2019/10/31 BASE社発表資料 -  EOF20192019/10/31 BASE社発表資料 -  EOF2019
2019/10/31 BASE社発表資料 - EOF2019
 
20180215 devsumi-base
20180215 devsumi-base20180215 devsumi-base
20180215 devsumi-base
 
G's Academy メンター資料 / 20180216
G's Academy メンター資料 / 20180216G's Academy メンター資料 / 20180216
G's Academy メンター資料 / 20180216
 
20171219 / phpway / BASE,Inc.
20171219 / phpway / BASE,Inc.20171219 / phpway / BASE,Inc.
20171219 / phpway / BASE,Inc.
 
Baseエンジニアイベント 20170516
Baseエンジニアイベント 20170516Baseエンジニアイベント 20170516
Baseエンジニアイベント 20170516
 
Mastodon schoo 201705
Mastodon schoo 201705Mastodon schoo 201705
Mastodon schoo 201705
 
Ipmeeting 2016 fujikawa
Ipmeeting 2016 fujikawaIpmeeting 2016 fujikawa
Ipmeeting 2016 fujikawa
 
20161117 base introduce.key
20161117 base introduce.key20161117 base introduce.key
20161117 base introduce.key
 
TechCrunch Tokyo CTO-Night 2015 presentation
TechCrunch Tokyo CTO-Night 2015 presentationTechCrunch Tokyo CTO-Night 2015 presentation
TechCrunch Tokyo CTO-Night 2015 presentation
 
Hacker's meetup boost_vol1発表資料_20150902
Hacker's meetup boost_vol1発表資料_20150902Hacker's meetup boost_vol1発表資料_20150902
Hacker's meetup boost_vol1発表資料_20150902
 
Ssi 20150519
Ssi 20150519Ssi 20150519
Ssi 20150519
 
【WCAN 2015 spring】ワクワクドリブンエンジニアリング_公開版
【WCAN 2015 spring】ワクワクドリブンエンジニアリング_公開版【WCAN 2015 spring】ワクワクドリブンエンジニアリング_公開版
【WCAN 2015 spring】ワクワクドリブンエンジニアリング_公開版
 
Web業界就職戦略
Web業界就職戦略Web業界就職戦略
Web業界就職戦略
 
〜100万人から教わったウェブサービスの極意〜
〜100万人から教わったウェブサービスの極意〜〜100万人から教わったウェブサービスの極意〜
〜100万人から教わったウェブサービスの極意〜
 
ファンドロイド 仙台講演 プレゼン資料
ファンドロイド 仙台講演 プレゼン資料ファンドロイド 仙台講演 プレゼン資料
ファンドロイド 仙台講演 プレゼン資料
 
Startup design-thinkng
Startup design-thinkngStartup design-thinkng
Startup design-thinkng
 
100万人に使われるサービスの作り方 第一歩 (2013/10/12 spinout登壇資料)
100万人に使われるサービスの作り方 第一歩 (2013/10/12 spinout登壇資料)100万人に使われるサービスの作り方 第一歩 (2013/10/12 spinout登壇資料)
100万人に使われるサービスの作り方 第一歩 (2013/10/12 spinout登壇資料)
 
エンジニアの未来サミット for student
エンジニアの未来サミット for studentエンジニアの未来サミット for student
エンジニアの未来サミット for student
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

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

  • 1. EC2 2009/9/8 EC2 1
  • 2. • • EC2 2
  • 3. Agenda • • • EC2 • EC2 • • 3
  • 4. chapter 1 10 4
  • 5. • • paperboy&co. EC lolipop JUGEM GMO (3633) 5
  • 6. 1,000 ASP 6
  • 7. • • EC 7
  • 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. • • •2 F’s Garage (blog) 2003 http://www.milkstand.net/fsgarage 9
  • 10. 2006 7 • FedoraCore5 • PowerEdge SC430 (Celeron D) • B 1Mbps www • F’s Garage (apache 2.0) • DNS (bind) • Drupal ( RSS 10
  • 12. chapter 2 12
  • 13. (PC, iPhone , Windows Mobile, Android • 2007 4 • • PHP5 + MySQL (eo MVC 13
  • 14. api • • URL Web 14
  • 15. 15 twitter 10% • 15
  • 16. 16
  • 17. 17
  • 18. RAID HDD HDD • • • • • Web CPU (AMD Phenom 9950 → • UStream 18
  • 19. HDD /bin 19
  • 20. Web EC2 DB ML115(Opteron) (HP ML115 Phenom 9950) SC430 Web Yamaha RT1000 twitter HP ML115 (Athlon64 X2) 20
  • 21. • AMD 600 PV ※ in/out 21
  • 22. EC2 • EC2 • EC2 • • 22
  • 23. EC2 • • • twitter api → → twitter api vs → EC2 → twitter api 23
  • 24. chapter 3 EC2 24
  • 25. EC2 • id:rx7 Amazon EC2/S3 - (Amazon Web Services ) http://d.hatena.ne.jp/rx7/20080528/p1 25
  • 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. Web proxy heteml • DB EC2 small • MySQL DB EC2 Large Instance 0.4 /hour 7.5GB • DNS 27
  • 28. EC2 • CPU • I/O Web small instance ( 200 PV • medium × 3 1 Phenom (9950BE • medium instance small (AMI) small medium 28
  • 29. Web 30min • Web AMI >ec2-run-instances ami-xxxx -t c1.medium -k ***** • rsync >/root/ec2app_update.sh • AMI • 29
  • 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. $977 (Medium 6 $225 $23 S3 $1.2 $1,226 • $1,200 (Medium 7.8 $340 $24 S3 $1.2 $1,606 31
  • 32. EC2 • Load Balancer IP →ec2 DNS CNAME movatwitter.jp www.movatwitter.jp • Cloud watch or WAKAME • Script • EBS • Reserved Instance EC2 • EC2 32
  • 34. EC2 • h • ec2 e-learning IR 34
  • 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. iPhone • Touch Term SSH • 36
  • 37. chapter 5 37
  • 38. AMI OS • • • HDD • → 38
  • 39. • • 39
  • 40. 40
  • 41. EC2 • • (AMI) 41
  • 42. 42