Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AWS 使用經驗分享

AWS 使用經驗分享

AWS 使用經驗分享, 從虛擬主機,VPC的的架構, 轉換到雲端服務架構的過程

Jonathan Huang

June 04, 2013
Tweet

More Decks by Jonathan Huang

Other Decks in Technology

Transcript

  1. EC2 Instance EBS BOOT EBS Data Volume AMI Snapshot Snapshot

    Snapshot Snapshot backup backup https://console.aws.amazon.com/ec2/home?region=us-east-1#s=Volumes
  2. EC2 Instance (t1.micro) EBS BOOT Apache + MySQL + wwwroot

    •  超便便宜 (第一年年免費,僅計流流量量費用) •  架構超直覺 •  建置超容易易 •  適合無名部落落客,雲端主機玩家 •  網路路上教學實在太多, 故不不贅述
  3. EC2 Instance (m1.medium) EBS BOOT Apache EBS Data wwwroot EC2

    Instance (m1.medium) EBS BOOT MySQL EBS Data mysqldata •  要一些錢 •  架構不不算複雜 •  建置還算容易易 •  適合小型流流量量網站,小型APP後端服 •  快速還原機制 (有備份的話…) Query
  4. EC2 Instance (m1.large) EBS BOOT Apache EBS Data wwwroot EC2

    Instance (m1.large) EBS BOOT MySQL EBS Data mysqldata •  蠻多錢 •  架構複雜 •  建置有點難 •  適合中型流流量量網站,中型APP後端服 •  快速還原機制 •  快取/連連線數數緩衝機制 Query EC2 Instance (m1.medium) EBS BOOT Squid / Nginx Reverse proxy cache EC2 Instance (m1.medium) EBS BOOT memcached Application cache
  5. EC2 Instance (m1.medium) EBS BOOT Apache EBS Data wwwroot EC2

    Instance (m1.large) EBS BOOT Apache EBS Data approot EC2 Instance (m1.large) EBS BOOT MySQL EBS Data mysqldata Query EC2 Instance (m1.medium) EBS BOOT Squid / Nginx Reverse proxy cache EC2 Instance (m1.medium) EBS BOOT memcached User upload assets Application cache
  6. App Servers Master DB Server Read replica DB Reverse proxy

    Media storage/manipulate Server Sync Caching User uploaded assets store Handling requests Application cach Server Caching manipulated assets
  7. App Servers Master DB Server Read replica DB Reverse proxy

    Media storage/manipulate Server Sync Cloud computing? User uploaded assets store Handling requests Application cach Server Caching manipulated assets Crontab/analytics Servers Caching
  8. App Servers Master DB Server Read replica DB Reverse proxy

    Media storage/manipulate Server Sync Cloud computing? User uploaded assets store Handling requests Application cach Server Caching manipulated assets Crontab/analytics Servers Caching
  9. App Servers RDS DB instance RDS Read replica Reverse proxy

    Media storage/manipulate Server Sync Cloud computing? User uploaded assets store Handling requests Application cach Server Caching manipulated assets Crontab/analytics Servers Caching 感謝 Amazon RDS
  10. App Servers RDS DB instance RDS Read replica Reverse proxy

    Media storage/manipulate Server Sync Cloud computing? User uploaded assets store Handling requests ElastiCache Node Caching manipulated assets Crontab/analytics Servers Caching 感謝 Amazon ElastiCa
  11. App Servers RDS DB instance RDS Read replica Reverse proxy

    Media storage/manipulate Server Sync Cloud computing? User uploaded assets store Handling requests ElastiCache Node assets caching and delivering Crontab/analytics Servers Caching 感謝 CloudFront! CDN Service
  12. App Servers RDS DB instance RDS Read replica Reverse proxy

    File object storage buckets Sync Cloud computing? User uploaded assets store Handling requests ElastiCache Node assets caching and delivering Crontab/analytics Servers Caching 感謝 Amazon S3! CDN Service
  13. App Servers RDS DB instance RDS Read replica Load Balancer

    File object storage buckets Sync Cloud computing? User uploaded assets store Handling requests ElastiCache Node assets caching and delivering Crontab/analytics Servers Caching 感謝 Elastic Load Balan CDN Service
  14. App Servers RDS DB instance RDS Read replica Load Balancer

    File object storage buckets Sync Cloud computing? User uploaded assets store Handling requests ElastiCache Node assets caching and delivering Compute Clusters Caching 感謝Amazon Elastic MapRe CDN Service
  15. App Servers RDS DB instance RDS Read replica Load Balancer

    File object storage buckets Sync Cloud computing? User uploaded assets store Handling requests ElastiCache Node assets caching and delivering Compute Clusters Caching 感謝Amazon SES! CDN Service Sendm
  16. •  •  解法 : 擺脫 Dedicate / Co-located / Self

    Hosting 思維 http://ja.wikipedia.org/wiki/MRTG
  17. Release Version 1.0 Stand by Release Version 1.0 Stand by

    Release Version 1.1 online Release Version 1.1 online
  18. Heavy Utilization Reserved Instance 56% ~ 65% cost saving over

    on-deman (3 year term) http://ja.wikipedia.org/wiki/MRTG http://aws.amazon.com/ec2/reserved-instances/