Amazon EC2
その概要と使い方
自己紹介
Amazon Web Services
沢山種類がある
Amazon web services (1/2)
Infrastructure Services Amazon Elastic Compute Cloud (Amazon EC2)Amazon SimpleDBAmazon Simple Storage Service(Amazon S3)Amazon CloudFrontAmazon Simple Queue Service(Amazon SQS)AWS Premium Support
Payments & Billing ServicesAmazon Flexible Payments Sercie(Amazon FPS)Amazon DevPay
On-Demand WorkforceAmazon Mechanical Turk
Amzaon web services (2/2)
Web search & Information ServiceAlexa Web SearchAlexa Web Information ServiceAlexa Top SitesAlexa Site Thumbnail
http://aws.amazon.com/products/Amazon Web Services LLCが提供するサービス
Elastic Compute Cloud
クラウドコンピューティング
Amazon Elastic Computer Cloud(EC2)
ネイティブに近いサーバ環境を提供するサービスxenベースのディスクイメージ(AMI)ユーザがOSを自由に選択することができる
SLA提供Annual Uptime Percentage of at least 99.95% during the Service Year.http://aws.amazon.com/ec2-sla/
Windowsサーバ,ms sql serverサポート(βサービス)Amamzon Elastic Block Store for Amazon EC2(βサービス)
データを永続化データベースとしての利用が一般的
Instance Type
Standard InstancesSmall Instance (default)Large InstanceExtra Large Instance
High-CPU InstancesHigh-CPU Medium InstanceHigh-CPU Extra Large Instance
http://aws.amazon.com/ec2/instance-types/
Standard Instances (1/2)
Small Instance1.7GB mem1 EC2 Compute Unit
1 virtual core 10+150GB storage32bit platform$0.10/h$0.125/h (windows)
Large Instance7.5GB mem4 EC2 Compute Units
2 virtual cores x 22x420+10GB storage64bit platform$0.40/h$0.50/h(windows)
Standards Instances (2/2)
Extra Large Instance15GB mem8 EC2 Compute Units
4 virtual cores x 24x420+10GB storage 64bit platform$0.80/h$1.00/h (windows)
High-CPU Instances
High-CPU Medium Instance1.7GB mem5 EC2 Compute Unites
2 virtual cores x 2.5350GB storage 32bit platform$0.20/h$0.30/h(windows)
High-CPU Extra Large Instance
7GB mem20 EC2 Compute Unites
8 virtural cores x 2.51690GB storage$0.80/h $1.20/h(windows)
Data Transfer Issues
詳細な料金はこちらで把握
http://calculator.s3.amazonaws.com/calc5.html
申込方法
第1回 仮想マシンレンタルサービスAmazon EC2、大容量ストレージサービスAmazon S3を使ってみよう
http://gihyo.jp/dev/serial/01/amazon_ec2/0001?page=2追加機能は増えたが,申込手順は変わらない(はず)初出:WEB+DB PRESS Vol.43(2008年2月23日発売)増井雄一郎
AWS, EC2, S3への利用登録Access Key ID, Secret Access Key, Private Key, X509 Certificate, を把握する結構めんどくさい 混んでると,使えるまで1週間程度かかる
制御方法
提供されたjavaベースのCUIで制御ブラウザのアドオンで制御サードパーティのwebサービスで制御
提供されたコマンドラインツール
http://docs.amazonwebservices.com/AWSEC2/2008-05-05/DeveloperGuide/index.html?CLTRG-by-function.html
ブラウザのaddon S3用
S3 Organizer
ブラウザ addon EC2用
Elasticfox
サードパーティのwebサービス利用
利用方法
sshが基本,ご利用は計画的に…RTTが200msecがあるので注意
デモ
ネットワークが繋がれば…
EC2以外のサービス
ざっと紹介
Amazon SimpleDB
Amazon謹製 Dynamohttp://www.allthingsdistributed.com/2007/10/amazons_dynamo.htmlCTO Werner Vogels らが開発
key-valueストア(ハッシュテーブル)スケールアウト(数百台とか)障害に強い(マシン障害のみならずラック障害にも)
my %hash = ( key1 => "value1", key2 => "value2");
Amazon Simple Storage Service
1Bから5GBまでのデータの固まりを読み書き消去保存できるデータ群は無制限米国と欧州に保存可能Amazon S3 Service Level Agreementで保証
http://aws.amazon.com/s3-sla/
Amazon CloudFront
CDNサービス米国8箇所,ロンドン,ダブリン、アムステルダム,フランクフルト,香港,東京1000Mbps, 1000req/sのピーク負荷に耐える
Amazon Simple Queue Service
信頼性が高く,高度にスケーラブルなキュー環境分散アプリケーションのコンポーネント同士のメッセージバッファキューに関しては以下の説明を参照のこと
http://japan.cnet.com/blog/kenn/2004/11/05/entry_amazon_simple_q/
Payments & Billing Services
Amazon Flexible Payments Service (Amazon FPS)PaypalとGoogle Checkoutに対抗する決裁サービスクレジット/デビットカード,Amazon PaymentsAmazonでつかっている情報を利用
Amazon DevPayEC2上で動かすサービスに対して開発者が課金Amazon EC2 Machine Image (AMI) 販売
On-Demand Workforce
Amazon Mechanical Turk沢山の人にタスクをこなしてもらうためのマーケットQ&Aだけではない例えば...
Help Find Jim Grayhttp://www.allthingsdistributed.com/2007/02/help_find_jim_gray.html
Ten Thousand Cents
http://www.tenthousandcents.com/index.html
サービスが止まってないか?
簡単な死活監視
AWS Service Health Dashboard
http://status.aws.amazon.com/
おまけ
Amazonの経営情報
経営面
10/22に発表した7-9月期決算は,売上高前年同期比31%増,42.6億ドル.純利益は48%増,1.18億ドル
http://www.itmedia.co.jp/news/articles/0810/23/news028.html
7/23に発表した4-6月期決算は,売上高前年度比41%増,40.6億ドル.純利益は102%増,1.58億ドル
http://www.itmedia.co.jp/news/articles/0807/25/news021.htmlAWSの利用者は前四半期から3万人増えて40万人
1/30に発表した2007年10-12月期決算の中で,AWS関連のトラフィックがAmazon本体の全世界でのトラフィックを越えたことを明らかに
http://www.atmarkit.co.jp/news/200802/01/aws.html
株価