# Amazon EC2
## 概要
Amazon Elastic Compute Cloud(EC2)は [[Amazon Web Services]] が2006年に Amazon S3 と共に開始した従量課金型の仮想マシンサービスである。x86 コモディティサーバ上で Linux と Xen 仮想マシンを用いることで、顧客間の分離・ソフトウェア配布の簡素化・VM単位の確実な停止によるリソース制御・複数価格帯の実現・ハードウェア世代の隠蔽という複数の技術的利点を同時に得た。開始時の価格は$0.10/時間/インスタンスで、これは1コアあたり2インスタンスを詰め込む価格設定だった(1 EC2 コンピュートユニット ≈ 1.0〜1.2GHz の2006年当時のAMD Opteron/Intel Xeon相当)。(Source: [[@2019__MorganKaufmann__Computer Architecture - A Quantitative Approach - Chapter 6 Warehouse-Scale Computers to Exploit Request-Level and Data-Level Parallelism]] §6.5)
## 2017年時点の価格体系
2017年2月のバージニアリージョンでは、インスタンスタイプは2006年の10種類から50種類超に拡大した。最速インスタンスは最遅の100倍、最大インスタンスは最小の2000倍のメモリを持つ。年間契約なら最安インスタンスは年$50で借りられる。汎用(t2/m4/m3)・コンピュート最適化(c4/c3)・GPU(p2/g2)・FPGA(f1)・メモリ最適化(x1/r3/r4)・ストレージ最適化(i2/d2)という区分でカタログ化される。Spot Instance(需給に応じた変動価格、オンデマンドの約25%)と Reserved Instance(年間契約 + 低時間単価、100%稼働時でオンデマンドの約65%相当)の2つの割引モデルを提供する。(Source: [[@2019__MorganKaufmann__Computer Architecture - A Quantitative Approach - Chapter 6 Warehouse-Scale Computers to Exploit Request-Level and Data-Level Parallelism]] §6.5)
## MapReduceコスト試算での利用
本書 Chapter 6 は Google の MapReduce ワークロード実績値(§6.2)を EC2 の c4.large インスタンス($0.100/時間)で実行したと仮定したコスト試算を行い、2016年9月分の月間ワークロード全体で1億1400万ドル相当と見積もった。同じワークロードを Spot Instance($0.0242/時間)で実行すれば8700万ドルの節約が可能だが、応答時間保証は失われる。(Source: [[@2019__MorganKaufmann__Computer Architecture - A Quantitative Approach - Chapter 6 Warehouse-Scale Computers to Exploit Request-Level and Data-Level Parallelism]] §6.5)
## 関連
- ソース: [[@2019__MorganKaufmann__Computer Architecture - A Quantitative Approach - Chapter 6 Warehouse-Scale Computers to Exploit Request-Level and Data-Level Parallelism]]
- エンティティ: [[Amazon Web Services]] / [[Xen]]
- 概念: [[クラウドコンピューティング]]
## 出典
- [[@2019__MorganKaufmann__Computer Architecture - A Quantitative Approach - Chapter 6 Warehouse-Scale Computers to Exploit Request-Level and Data-Level Parallelism]] §6.5