SlideShare a Scribd company logo
1 of 99
Download to read offline
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
AWSマイスターシリーズ
リザーブドインスタンス&
スポットインスタンス編
2013.10.23(2014.4.14改訂)
髙山 博史 安川 健太
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
2
Agenda
はじめに
• AWSの割引の仕組み
• 時間課金系サービスのご利用オプション
オンデマンドインスタンス
リザーブドインスタンス
リザーブドインスタンスアップデート[NEW]
スポットインスタンス
まとめ
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
3
はじめに…
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
4
AWSでのコスト削減
前提として…
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
5
AWSでのコスト削減って?
よりクラウドネイティブな設計
・EC2以外のAWSサービス積極的に活用
・インスタンスタイプの最適化
・スタンバイ機の見直し
・運用自動化
割引オプションの活用
・リザーブド・インスタンス
・スポット・インスタンス
・Cloudfrontの予約容量
・DynamoDBの予約容量等々…
その他のリソースの無駄チェック
・EBS, Snapshot, EIP等々…
効果大
効果小
運用コスト削減も
構成は変えずに
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
6
AWSでのコスト削減って?
よりクラウドネイティブな設計
・EC2以外のAWSサービス積極的に活用
・インスタンスタイプの最適化
・スタンバイ機の見直し
・運用自動化
割引オプションの活用
・リザーブド・インスタンス
・スポット・インスタンス
・Cloudfrontの予約容量
・DynamoDBの予約量等々…
その他のリソースの無駄チェック
・EBS, Snapshot, EIP等々…
効果大
効果小
運用コスト削減も
構成は変えずに
既存オンプレミス構成を
そのままAWSで再現している場合などは、
「構成の見直し」もご検討ください
(AWSのSales/SAにご相談ください)
[お問い合わせフォーム] http://aws.amazon.com/jp/contact-us/aws-sales/
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
7
AWSの割引の仕組み
前提を踏まえた上で…
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
8
AWSの割引の仕組み①
ご利用オプションによる割引
①リザーブド・インスタンス
→EC2(・RDS・ElastiCashe)
②スポット・インスタンス
→EC2(・ElasticMapRuduce)
ご利用が増えると自動的に単価が安くなるもの
→データ転送量やS3ストレージ料金など
本資料で説明
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
9
AWSの割引の仕組み②
Cloudfrontの予約容量
→リージョンごとに10TB/月から
数TB配信される場合は、ご相談ください
随時行われる価格改定
→規模の経済・運用効率化による
サービス開始から40回以上の値下げ実績あり
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
10
“インスタンスの時間単価”の削減は効果的
月々のAWSご利用料金の中で、EC2やRDSなど
の時間課金サービスが占める割合が大きいことが
多い!
データ転送料金の割合が多い場合は、Cloudfrontの予約容量もご検討ください
コスト削減に
効果的!EC2
RDS
データ転送量
その他
AWSご利用料金
内訳例
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
11
用途に合わせて選べる
AWSのご利用オプション
オンデマンド・インスタンス(デフォルト)
• 初期費用ゼロ・コミットなし・時間課金
リザーブド・インスタンス(オプション)
• 予約金の支払いで、時間単価の割引・キャパシティの予約
• 年間を通して大幅な費用削減が可能
スポット・インスタンス(オプション)
• 初期費用ゼロ
• スポット価格(需要と供給によりリアルタイムに変動)で課金
• 最大で払ってもいい額を決定して「入札」
• 「入札額 >= スポット価格」 インスタンスが利用可
• 「入札額<スポット価格」インスタンスがターミネート
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
12
オンデマンド以外オプションの用途
リザーブド・インスタンス
• 稼働率の高い(多くの時間起動している)インスタンス
• 常時稼動のDBサーバ
• 最低限必要なWeb/APサーバ等
スポット・インスタンス
• 時間の制約がなく、中断しても支障のないタスクを実
行するインスタンス
• Webクローラ
• 分散処理のタスクノード等
システム内に上記のようなインスタンスが
あればコスト削減の可能性あり
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
13
オンデマンド・インスタンス
まずは基本の
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
14
オンデマンド・インスタンス
オンデマンド・インスタンス(デフォルト)
• 初期費用ゼロ
• 時間課金
• 長期コミットメントなし
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
15
オンデマンド・インスタンス
オンデマンド
インスタンス
積算料金
期間初期費用0
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
16
オンデマンド・インスタンスの使いどころ
1年間のうち、40%未満しか使わない場合
*m3.largeインスタンスの場合
インスタンスファミリーにより異なる(詳細は後述)
一時的/一定期間必要なインスタンス
• ピーク対応で増減するサーバ
• キャンペーンサイト
• 開発検証サーバ(スポットも検討)…etc
それ以外は、リザーブド・インスタンスも検討ください
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
17
リザーブド・インスタンス
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
18
リザーブド・インスタンス
よくある勘違い
リザーブド・インスタンスは、1年/3年の利用料前
払いである
リザーブド・インスタンスを購入したら、1年/3年
の”縛り”がある(必ず使用しないといけない)
インスタンスタイプを変更すると、割引が適用され
ない
エンタープライズ向けであり、スタートアップには
適さない
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
19
リザーブド・インスタンス
よくある勘違い
リザーブド・インスタンスは、1年/3年の利用料前
払いである
リザーブド・インスタンスを購入したら、1年/3年
の”縛り”がある(必ず使用しないといけない)
インスタンスタイプを変更すると、割引が適用され
ない
エンタープライズ向けであり、スタートアップには
適さない
×
×
×
△
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
20
リザーブド・インスタンス
オンデマンド
インスタンス
リザーブド
インスタンス
積算料金
期間
予約金
(キャパシティ予約、
時間単価割引確定)
1年/3年
長期間ご利用の場合、
大幅にお安く
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
21
リザーブド・インスタンス
リザーブド・インスタンス(以下、RI)
• 予約金お支払いによる、1年間/3年間の時間課金の割引
→一時金のお支払で、時間単価が安くなる仕組み
• 月額費用は割引単価での時間課金
*後述の「重度使用」のみ、RI期間中は起動時間にかかわらず、
毎月100%起動したものとして月額課金
• 該当キャパシティを予約
(該当AZに該当インスタンスタイプ)
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
22
キャパシティ予約
該当AWSアカウント用に、キャパシティを予約
• 条件(AZ/インスタンスタイプ等)に合致するインスタン
スを予約することで、予約した数のインスタンスは、
必要になったときにいつでも起動できるという安心感
AWSは随時リソースを追加し続けています!
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
23
リザーブド・インスタンスは、1年/3年の利用料前
払いである
リザーブド・インスタンスを購入したら、1年/3年
の”縛り”がある(必ず使用しないといけない)
インスタンスタイプを変更すると、割引が適用され
ない
エンタープライズ向けであり、スタートアップには
適さない
×
リザーブド・インスタンス
よくある勘違い
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
24
リザーブド・インスタンス
オンデマンド
インスタンス
リザーブド
インスタンス
積算料金
期間
予約金
(キャパシティ予約、
時間単価割引確定)
1年/3年
長期間ご利用の場合、
大幅にお安く
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
25
リザーブド・インスタンスのポイント
必ずしも1年間使用し続ける必要はない
• ただし使用しない場合でも初期費用の返金はなし
*後述の「重度使用」のみ、リザーブ期間中は起動時間にかかわらず、
毎月100%起動したものとして月額課金
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
26
リザーブド・インスタンスのポイント
必ずしも1年間使用し続ける必要はない
• ただし使用しない場合でも初期費用の返金はなし
*後述の「重度使用」のみ、リザーブ期間中は起動時間にかかわらず、
毎月100%起動したものとして月額課金
オンデマンド
インスタンス
リザーブド
インスタンス
積算料金
期間
予約金
途中で使用を止めたり、
24時間起動しなくても
お得な場合も
*RIタイプ(後述)により異なる
例:6か月分
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
27
リザーブド・インスタンスは、1年/3年の利用料前
払いである
リザーブド・インスタンスを購入したら、1年/3年
の”縛り”がある(必ず使用しないといけない)
インスタンスタイプを変更すると、割引が適用され
ない
エンタープライズ向けであり、スタートアップには
適さない
×
リザーブド・インスタンス
よくある勘違い
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
28
リザーブド・インスタンス(RI)のタイプ
Light Utilization(軽度使用)
Medium Utilization(中度使用)
Heavy Utilization(重度使用)
初期費用
少ない
初期費用
多い
時間課金
割引小さい
時間課金
割引大きい
*ただし重度使用のみ、RI期間中は起動時間にかかわらず、
毎月100%起動したものとして課金(月初に24時間×日数分を月額費用に計上)
ご利用用途に合わせたタイプの選択が必要
RIタイプは「初期費用/時間単価」の組み合わせで3種類
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
29
EC2のRIタイプ別比較(1年)
m3.large
各タイプの削減効果・損益分岐点・スイートスポット(目安)
年間100%利用した
場合の削減効果
(対オンデマンド
インスタンス)
オンデマンド
インスタンスとの
損益分岐点
(これ以上ご利用ならお得)
年間利用率の
スイートスポット
(年間何%利用の場合、
このタイプがお得か?)
Medium
(中度使用)
35% 40% 40%~82%
Heavy
(重度使用)
43% 58% 83%~100%
*Tokyoリージョンでm3.large(Linux)利用の場合で算出
(インスタンスタイプにより異なる) 2014年4月9日現在
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
30
EC2のRIタイプ別比較(1年)
c3.large
年間100%利用した
場合の削減効果
(対オンデマンド
インスタンス)
オンデマンド
インスタンスとの
損益分岐点
(これ以上ご利用ならお得)
年間利用率の
スイートスポット
(年間何%利用の場合、
このタイプがお得か?)
Medium
(中度使用)
25% 52% 52%~87%
Heavy
(重度使用)
31% 69% 88%~100%
*Tokyoリージョンでc3.large(Linux)利用の場合で算出
(インスタンスタイプにより異なる) 2014年4月9日現在
各タイプの削減効果・損益分岐点・スイートスポット(目安)
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
31
EC2のRIタイプ別比較(1年)
r3.large
年間100%利用した
場合の削減効果
(対オンデマンド
インスタンス)
オンデマンド
インスタンスとの
損益分岐点
(これ以上ご利用ならお得)
年間利用率の
スイートスポット
(年間何%利用の場合、
このタイプがお得か?)
Medium
(中度使用)
30% 57% 57%~83%
Heavy
(重度使用)
35% 66% 84%~100%
*Tokyoリージョンでr3.large(Linux)利用の場合で算出
(インスタンスタイプにより異なる) 2014年4月9日現在
各タイプの削減効果・損益分岐点・スイートスポット(目安)
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
32
EC2のRIタイプ別比較(1年)
参考:m1.large
年間100%利用した
場合の削減効果
(対オンデマンド
インスタンス)
オンデマンド
インスタンスとの
損益分岐点
(これ以上ご利用ならお得)
年間利用率の
スイートスポット
(年間何%利用の場合、
このタイプがお得か?)
Medium
(中度使用)
39% 36% 36%~82%
Heavy
(重度使用)
46% 55% 83%~100%
*Tokyoリージョンでm1.large(Linux)利用の場合で算出
(インスタンスタイプにより異なる) 2014年4月9日現在
各タイプの削減効果・損益分岐点・スイートスポット(目安)
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
33
EC2のRIタイプ別比較(1年)
参考:m2.xlarge
年間100%利用した
場合の削減効果
(対オンデマンド
インスタンス)
オンデマンド
インスタンスとの
損益分岐点
(これ以上ご利用ならお得)
年間利用率の
スイートスポット
(年間何%利用の場合、
このタイプがお得か?)
Medium
(中度使用)
51% 25% 25%~89%
Heavy
(重度使用)
55% 46% 89%~100%
*Tokyoリージョンでm2.xlarge(Linux)利用の場合で算出
(インスタンスタイプにより異なる) 2014年4月9日現在
各タイプの削減効果・損益分岐点・スイートスポット(目安)
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
34
EC2のRI割引適用条件
購入時に以下の条件を指定
①ネットワークプラットフォーム「Classic/VPC」(*)や
「OS(ライセンス料込か?)」
②インスタンスタイプ「Small, Large」など
③アベイラビリティーゾーン(AZ)「ap-northeast-1a」など
④期間「1年または3年」
⑤タイプ(重度・中度・軽度)
⑥VPCの場合のみ「占有インスタンスか否か?」
*EC2-Classic(非VPC)が有効な場合のみ選択
後から変更できるようになりました(後述)
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
35
EC2のRI適用例
割引の権利は“AWSアカウント単位”で管理
• インスタンスIDとの紐づけは無し
料金計算イメージ:
・RI権利 :Small*1インスタンス分
・稼働中 :Small*3インスタンス
Small割引料金×1
Small通常料金×2
*適用にはインスタンスタイプ以外の
各条件も合致していること割引 通常 通常
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
36
1インスタンスをスケールアップした場合
料金計算イメージ:
・RI権利 :Small*1インスタンス分
・稼働中 :Small*3インスタンス
・RI権利 :Small*1インスタンス分
・稼働中 :Small*2インスタンス
:Large*1インスタンス
*適用にはインスタンスタイプ以外の
各条件も合致していること
Small割引料金×1
Small通常料金×2
Small割引料金×1
Small通常料金×1
Large通常料金×1
割引 通常 通常
通常 割引 通常
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
37
リザーブド・インスタンスは、1年/3年の利用料前
払いである
リザーブド・インスタンスを購入したら、1年/3年
の”縛り”がある(必ず使用しないといけない)
インスタンスタイプを変更すると、割引が適用され
ない
エンタープライズ向けであり、スタートアップには
適さない
△
リザーブド・インスタンス
よくある勘違い
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
38
RIの使いどころ(例)①
常に起動しているDBやキャッシュサーバなど
→今後スケールアップの可能性がある場合は、
Mediumタイプがオススメ
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
39
RIの使いどころ(例)②
常に起動している分のWeb/Appサーバ
→スケールアウトする分はオンデマンドで
平常時 ピーク時
RI RI オンデマンド
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
40
RIの導入フロー
まずはオンデマンドタイプの利用で「インスタン
スタイプ」の検討と「利用率」を算出
以下のようなインスタンスについてRIを購入
• 定常的に同一インスタンスタイプで起動しているサーバ
• 一定の利用率がありそうなサーバ (Mediumタイプなどを)
→権利の購入なので、無停止でRIに切り替え可
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
41
リザーブド・インスタンスは、1年/3年の利用料前
払いである
リザーブド・インスタンスを購入したら、1年/3年
の”縛り”がある(必ず使用しないといけない)
インスタンスタイプを変更すると、割引が適用され
ない
エンタープライズ向けであり、スタートアップには
適さない×
リザーブド・インスタンス
よくある勘違い
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
42
リザーブド・インスタンス
よくある勘違い
リザーブド・インスタンスは、1年/3年の利用料前
払いである
リザーブド・インスタンスを購入したら、1年/3年
の”縛り”がある(必ず使用しないといけない)
インスタンスタイプを変更すると、割引が適用され
ない
エンタープライズ向けであり、スタートアップには
適さない
×
×
×
△
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
43
RI購入のタイミングで決済されます
(月々のご利用には合算されません)
クレジットカードの限度額に
ご注意ください
[営業お問い合わせフォーム]
http://aws.amazon.com/jp/contact-us/aws-sales/
RIの購入時のご注意
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
44
リザーブド・インスタンス
アップデート
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
45
あとからAZおよび、ネットワークプラットフォーム
「Classic/VPC(*)」 が、変更可能になりました
①EC2 RIの予約内容(AZ・Classic/VPC)を
変更できるようになりました
*EC2-Classic(非VPC)が有効な場合のみ変更可能
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
46
ただし変更できない場合もあるので注意(必ず出来
るわけではない)
特に変更成功/失敗の通知は無いので、しばらくし
てからステータスを確認する必要があります
→AZ変更失敗の場合、元AZでactiveになります
①EC2 RIの予約内容(AZ・Classic/VPC)を
変更できるようになりました
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
47
②EC2 RIの予約内容(インタンスタイプ)が
変更できるようになりました
同じインタンスファミリー(m1,m2,m3,c1)内で
のアップグレート(統合)とダウングレード(分解)
が可能に
Small
Small
Large
アップ
グレード
ダウン
グレード
Medium
Medium
Small
Small Small
Large
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
48
②EC2 RIの予約内容(インタンスタイプ)が
変更できるようになりました
同じインスタンスファミリーで、合計ユニット数
が同じになるようにアップグレード/ダウングレー
ド
インスタンス
タイプ
small medium large xlarge 2xlarge 4xlarge 8xlarge
ユニット 1 2 4 8 16 32 64
Small
1
Small
Large
4
アップ
グレード
ダウン
グレード
Medium
2
Medium
2
Small
1
Small
1
Small
1
Large
4
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
49
②EC2 RIの予約内容(インタンスタイプ)が
変更できるようになりました
アップグレード(RIをまとめる)が出来る条件は…
①リージョン
②インスタンスファミリー(m1,m2,m3,c1)
③プラットフォーム(OS等) *Windows+SQL Serverは対象外
④タイプ(軽度・中度・重度)
⑤共有/占有の種別
⑥終了日時
が同一なこと
→別々のタイミングで購入したRIを統合することは出来ない
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modification-instancemove.html
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
50
②EC2 RIの予約内容(インタンスタイプ)が
変更できるようになりました
こちらも特に変更成功/失敗の通知は無いので、
しばらくしてからステータスを確認する必要があ
ります
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
51
RIの可用性は絶えず変化します。そのため、各変
更のリクエストは、それにより成功することも失
敗することもあります。特定のリクエストが失敗
しても、時間を置いてやり直すことで成功する場
合があります。
リクエストするAZと、ネットワークプラット
フォーム(Classic/VPC)はアカウントで利用可能
なものである必要があります。
RI予約内容変更のご注意
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
52
ご参考:Consolidated Billing(一括決済)とRI
一括決済とは?
→AWSの費用請求をまとめられるサービス
複数アカウントの費用を、1つにまとめて支払える
アカウント間でRIの融通が可能
参考:AWSマイスターシリーズ Reloaded AWS Billing編
http://slidesha.re/Q7tAMf
使われていない
リザーブドインスタンス
条件が合えば
こちらのアカウントに割引適用
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
53
ご参考:Trusted Advisor
お客様のAWS環境を精査し、コスト削
減等の推奨事項をお知らせする機能
サポートレベルが「ビジネス」または
「エンタープライズ」の場合に、サ
ポートセンター経由でアクセス可能
RI, EC2インスタンス、EBS等100
個を超えるチェック項目を持つ
多くのお客様にAWSのサービスを適用
してきたベストプラクティスが適用さ
れている
参考:AWS Trusted Advisor
https://aws.amazon.com/jp/premiumsupport/trustedadvisor/
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
54
ベーシック デベロッパー ビジネス エンタープライズ
フォーラム 利用可能 利用可能 利用可能 利用可能
サポートへの
コンタクト
EC2の
健全性エラーが
発生した場合
コンタクト
フォーム
電話、チャット
コンタクト
フォーム
電話、チャット
コンタクト
フォーム
初回応答時間 不可
12時間
(営業時間内)
1時間 15分
連絡先登録 - 1 5 無制限
24/365対応 なし なし あり あり
Trusted Advisor なし なし あり あり
専任スタッフ なし なし なし あり
特別サポート なし なし なし あり
料金(月額) 無料 $49
AWS利用総額の
$0~$10K: 10%
$10K~$80K: 7%
$80K~$250K: 5%
$250K~: 3%
(最低$100)
AWS利用総額の10%
(最低$15000)
ご参考:AWSサポート
日本語での技術サポートをご提供
参考:AWS サポート
https://aws.amazon.com/jp/premiumsupport/
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
55
スポット・インスタンス
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
56
スポットインスタンスとは?
需要と供給の関係に基づいてリアルタイムで変動する
「スポット価格」が割当てられたインスタンス
AWS Cloud
Availability Zone Availability Zone
55%
off
40%
off
59%
off
59%
off
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
57
スポットインスタンスとは?
需要と供給の関係に基づいてリアルタイムで変動する
「スポット価格」が割当てられたインスタンス
AWS Cloud
Availability Zone Availability Zone
55%
off
40%
off
59%
off
59%
off
• オンデマンドインスタンスや
リザーブドインスタンスの価格モデルを補完
• 時間の制約がなく、中断可能なタスクの
計算コストを大幅に削減
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
58
スポット価格と入札
スポット価格:
AZごとのEC2インスタンスの需要と供給により、AZごとに価格が変動
入札によるインスタンス利用
• 「入札額 >= スポット価格」なら指定したインスタンスが起動
• 「入札額 < スポット価格」となるとインスタンスがターミネートされる
$9で入札
$8で入札
$7で入札
ユーザA
ユーザB
ユーザC
$9で入札
$8で入札
$10で入札
ユーザA
ユーザB
ユーザC
スポット価格=$7.5 スポット価格=$8.5
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
59
スポットリクエストとインスタンス
スポットリクエスト:入札条件を指定したインスタンス起動要求
• 最大で”払っても良い”金額(実際の課金はスポット価格)
• インスタンスタイプ等
インスタンスの起動と終了
• 起動のタイミング:
• スポットリクエストの条件が満たされた時点
(オンデマンドやリザーブドはリクエスト後すぐ)
• 終了のタイミング:
• ユーザが終了命令を出した時点
• スポット価格がスポットリクエストで指定した価格を上回った時点
課金について
• インスタンス起動時から1時間毎にスポット価格にて課金
• インスタンスが強制終了された場合、1時間未満の時間に対しては課金されない
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
60
スポットリクエストと課金
入札額>スポット価格
となったので
インスタンス起動
単価
時間
入札額<スポット価格
となったので
インスタンス終了
入札額 > スポット価格
となったので
インスタンス起動
スポットリクエスト投入
1h 1h 1h
<1h
スポット価格
入札額
課金額
強制終了時の
1時間未満の
利用分は非課金
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
61
時間の制約がなく、
中断しても支障のない
タスクを省コストで
代表的なユースケース
複雑な解析や
シミュレーション ビックデータ解析
金融モデリングや
経済分析
地理空間
情報の解析
メディア
プロセッシング 科学演算
Webクローリング開発や検証
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
62
時間の制約がなく、
中断しても支障のない
タスクを省コストで
顧客事例
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
63
顧客事例(抜粋)
ビックデータ解析
メディアプロセッシング
300万/日の”チェックイン”のデータを解析するためにElastic
Map Reduceを使用する中で、スポットインスタンスを活用
毎日たまるインターネットサービスのログを解析する中でスポッ
トインスタンスを活用し、50%のコスト削減を実現
広告メール等、画像を多用したEメールが各種クライアントでど
う表示されるか解析するサービスでスポットインスタンスを活用
し、57%のコスト削減を実現
Webクローリング
オンライン上のやり取りを観測して企業のイメージ調査を助ける
サービスにてスポットインスタンスを活用し、66%のコスト削減
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
64
Elastic MapReduce (EMR)に
スポットインスタンス
EMR = AWS上のマネージドHadoopサービス
利用シナリオ: ジョブのランニングコストを抑えたい
• オンデマンドのm2.xlarge 4ノードで開始
• 処理の高速化のためスポットインスタンスで5ノード追加
4ノードで
起動
Spot
5ノード
追加
Job Flow
残り時間
14時間
残り時間
Job Flow
7時間
スポットなしのコスト
4 instances *14 hrs * $0.50 = $28
スポットありのコスト
4 instances *7 hrs * $0.50 = $13 +
5 instances * 7 hrs * $0.25 = $8.75
Total = $21.75
時間の削減効果: 50%
コスト削減効果: ~22%
参考:AWSマイスターシリーズ EMR編
http://slidesha.re/GZ6kmf
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
65
EMR+Spotの使いどころ
ユースケース
Master Instance
Group
Core Instance
Group
Task Instance
Group
長時間稼働の
ジョブフローの高速化 オンデマンド オンデマンド Spot
低コストで
実行したいジョブ Spot Spot Spot
クリティカルデータを
扱うジョブ オンデマンド オンデマンド Spot
アプリケーションの
テスト Spot Spot Spot
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
66
Autoscalingにスポットインスタンス
Autoscaling = 負荷に合わせて動的にインスタンスを
水平スケールさせるAWSの機能
Autoscalingのローンチコンフィグを作成時に”—
spot-price”オプションを設定
> as-create-launch-config spotlc-5cents --image-id ami-XXXXXX
--instance-type m1.small --spot-price "0.05"
インスタンスがTerminateされても
Desired Capacityを満たすよう継続的
に入札が行われる
スポット価格が入札額を上回っている場
合はDesired Capacityを満たせない
Scale Outパターン
http://aws.clouddesignpattern.org
参考:AWSマイスターシリーズ CloudWatch & Auto Scaling編
http://slidesha.re/17DSmC2
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
67
日本での最新お客様事例
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
68
日本でのお客様事例(PIXTA様)
AWS Cloud Strage Day(2013/9/13):PIXTA様の講演資料より抜粋
http://csd.awseventsjapan.com/docs/B02-pixta.pdf
SQSと組み合わせて、画像変換でのワーカーとして
Spotをご利用
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
69
日本でのお客様事例(HDE様)
SQSと組み合わせて、解析/インデックスでのワーカー
としてSpotをご利用
AWS Cloud Strage Day(2013/9/13):HDE様の講演資料より抜粋
http://csd.awseventsjapan.com/docs/B03-HDE.pdf
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
70
大規模Webサイトでの活用事例
Webサーバのインスタンス利用状況
Auto Scale採用によるインスタンス数の効率化
Auto Scale採用によるランニングコスト
用途に合わせた価格モデル採用によるコスト削減
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
71
アンチパターン
停止が許されないインスタンスでの利用
• DBやファイルサーバ等
遅延が許されないタスクでの利用
• スポットリクエストは満たされるとは限らない
止まってはいけないサービスを少数のインスタンスで
実行している場合
• 数台のインスタンスで運用される小さめのWebサイト等
• インスタンス終了時のキャパシティへの影響が大きい
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
72
入札戦略
1. コスト最小型
• 最低価格で入札
• インスタンス停止にはアーキテクチャで対応
2. 価格履歴順応型
• 直近の価格を観測してそれより少し高い額で入札
• オンデマンド価格より低く設定した閾値以上は入札しない
3. オンデマンドに比べて節約型
• オンデマンドの価格付近に入札
• オンデマンドより高くなったらオンデマンドに切り替え
4. 割り込みリスク最小型
• オンデマンドよりも高く入札
課金額増大リスク  小
インスタンス終了リスク  大
課金額増大リスク  大
インスタンス終了リスク  小
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
73
入札戦略:コスト最小型
最低価格で入札
アプリケーション側の工夫でインスタンス停止に対応
• 例:ジョブ管理をインスタンス外のキューやDBにて行い、新
たに起動したインスタンスがジョブを引き継ぐ、など
処理時間よりもコストを重視する場合に
再開後にジョブ
を継続
1時間毎の課金スロット
のうち、Terminateさ
れたスロットは課金さ
れない
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
74
入札戦略:価格履歴順応型
直近の価格を観測してそれより少し高い額で入札
オンデマンド価格より低く設定した閾値以上は入札し
ない
SDKやCLIを利用した自動化で実現
価格履歴から
決定する入札額
オンデマンドの
価格より
低く設定した閾値
Vimeoは
この戦略で月に
よっては50%の
コスト節減を実現
(参考資料)
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
75
入札戦略:オンデマンドに比べて節約型
オンデマンドの価格付近に入札
オンデマンドより高くなったらオンデマンドに切り替え
• システムのキャパシティを維持しつつコストを節約
緑で示した部分が
オンデマンドに
比べた節約分に相当
オンデマンド価格。
ここを超えたら
オンデマンドで起動
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
76
入札戦略:割り込みリスク最小型
オンデマンドよりも高く入札
• 課金額がオンデマンドを超えるリスクを取りつつ
• 平均的にはコストを節約
• インスタンスは高い確率で継続稼働
(スポット入札額には上限があります)
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-limits.html
一時的に
オンデマンドを
超える課金も 平均的には
大きくコスト
を節約
Litmusは
この戦略で57%の
コスト節減を実現
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
77
まとめ
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
78
用途に合わせて選べる
AWSのご利用オプション
オンデマンド・インスタンス(デフォルト)
• 初期費用ゼロ・コミットなし・時間課金
リザーブド・インスタンス(オプション)
• 予約金の支払いで、時間単価の割引・キャパシティの予約
• 年間を通して大幅な費用削減が可能
スポット・インスタンス(オプション)
• 初期費用ゼロ
• スポット価格(需要と供給によりリアルタイムに変動)で課金
• 最大で払ってもいい額を決定して「入札」
• 「入札額 >= スポット価格」 インスタンスが利用可
• 「入札額<スポット価格」インスタンスがターミネート
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
79
オンデマンド・インスタンスの使いどころ
1年間のうち、40%未満しか使わない場合
*m3.largeインスタンスの場合
インスタンスファミリーにより異なる(詳細は後述)
一時的/一定期間必要なインスタンス
• ピーク対応で増減するサーバ
• キャンペーンサイト
• 開発検証サーバ(スポットも検討)…etc
それ以外は、リザーブド・インスタンスも検討ください
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
80
オンデマンド以外オプションの用途
リザーブド・インスタンス
• 年間通して多くの時間起動しているインスタンス
• 常時稼動のDBサーバ
• 最低限必要なWeb/APサーバ等
スポット・インスタンス
• 時間の制約がなく、中断しても支障のないタスク
を実行するインスタンス
• Webクローラ
• 分散処理のタスクノード等
用途に合わせたオプションの利用でコストの最適化を!
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
81
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
82
Appendix:
参考資料
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
83
Appendix
参考資料
• サービス別リザーブドインスタンス価格表
• EC2
– http://aws.amazon.com/jp/ec2/reserved-instances/
• RDS
– http://aws.amazon.com/jp/rds/reserved-instances/
• ElastiCache
– http://aws.amazon.com/jp/elasticache/reserved-cache-
nodes/
• スポットインスタンス
• http://aws.amazon.com/jp/ec2/spot-instances/
• AWSマイスターシリーズ Reloaded AWS Billing編
• http://www.slideshare.net/AmazonWebServicesJapan/
awsaws-billing
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
84
Appendix:
リザーブド・インスタンスの購入方法
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
85
RIの購入方法
AWS Management Consoleにて購入
デフォルトでは月間20インスタンスまで購入可能
[制限増加申請フォーム] http://aws.amazon.com/jp/contact-us/reserved-instances-limit-request/
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
86
RIの購入方法
Purchase Reserved Instancesを選択
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
87
RIの購入方法
条件を選択して検索
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
88
条件に合うRIをカートに追加し購入
Sellerが「AWS」のものが、AWSが販売しているRIです。
Sellerが「3rd Party」のものは、AWS以外が販売しているRIです。
RIの購入方法
予約金 時間単価
予約金含む
時間単価
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
89
RI権利を売買できます
(米国の銀行口座必要)
RI Marketplace
→使わなくなったRIの権利を売買できる!
ただし売却には米国の銀行口座が必要
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
90
Appendix:
スポット・インスタンスの利用方法
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
91
スポット・インスタンスの利用方法
~AWSコンソールから
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
92
スポット・インスタンスの利用方法
~AWSコンソールから
Request Spot Instancesにてリクエストを作
成
価格の履歴も確認できる
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
93
AMI選択後、各種パラメータを設定してスポットリクエストを作成
スポット・インスタンスの利用方法
~AWSコンソールから
現在の
スポット価格
入札額
ローンチグループを設定(任意)
ローンチグループを指定されたイ
ンスタンスは、同一グループ内の
全スポットリクエストが満たされ
た時にのみ起動する。クラスタの
構成等で有用
AZグループを設定(任意)
AZグループを指定されたインスタン
スは単一のAZでグループ内の全ス
ポットリクエストが満たされる場合
にのみ起動する
※AZグループ、ローンチグループ等を指定すると
無指定に比べてリクエストが満たされる可能性は下がる
リクエストの有効期
間を指定 (任意)
インスタンスが
Terminateされた後に再
入札するか否か
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
94
スポット・インスタンスの利用方法
~AWSコンソールから
インスタンスタ
イプを選択
OSタイプ
を選択
Pricing Historyの確認
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
95
スポット
リクエストの
ライフサイクル
開発者向けドキュメント
より
http://docs.aws.amazo
n.com/AWSEC2/latest/
UserGuide/using-spot-
instances-bid-
status.html
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
96
スポットリクエストの状態確認
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
97
スポット・インスタンスの利用方法
~コマンドラインから
Task CLI
スポット価格の履歴を取得 ec2 describe-spot-price-history
スポットリクエストの一覧を取得 ec2 describe-spot-instance-requests
スポットインスタンスの入札をリクエスト ec2 request-spot-instances
スポットインスタンスの入札をキャンセル ec2 cancel-spot-instance-requests
aws ec2 request-spot-instances
[--dry-run | --no-dry-run]
--spot-price <value>
[--instance-count <value>]
[--type <value>]
[--valid-from <value>]
[--valid-until <value>]
[--launch-group <value>]
[--availability-zone-group <value>]
[--launch-specification <value>]
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
98
スポット・インスタンスの利用方法
~各種プログラミング言語から
Task API
スポット価格の履歴を取得 DescribeSpotPriceHistory
スポットリクエストの一覧を取得 DescribeSpotInstanceRequests
スポットインスタンスの入札をリクエスト RequestSpotInstances
スポットインスタンスの入札をキャンセル CancelSpotInstanceRequests
// AmazonEC2Client オブジェクトを作成
AmazonEC2 ec2 = new AmazonEC2Client();
// スポットリクエストを初期化
RequestSpotInstancesRequest requestRequest
= new RequestSpotInstancesRequest();
// 入札額を$0.03に設定
requestRequest.setSpotPrice("0.03");
… 中略 ….
// RequestSpotInstance APIを呼ぶ
RequestSpotInstancesResult requestResult
= ec2.requestSpotInstances(requestRequest);
Javaの例:
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
99

More Related Content

What's hot

20190730 AWS Black Belt Online Seminar Amazon CloudFrontの概要
20190730 AWS Black Belt Online Seminar Amazon CloudFrontの概要20190730 AWS Black Belt Online Seminar Amazon CloudFrontの概要
20190730 AWS Black Belt Online Seminar Amazon CloudFrontの概要Amazon Web Services Japan
 
AWS Instance Schedulerは、ぜひ使うべきなのか?
AWS Instance Schedulerは、ぜひ使うべきなのか?AWS Instance Schedulerは、ぜひ使うべきなのか?
AWS Instance Schedulerは、ぜひ使うべきなのか?株式会社クライム
 
20190514 AWS Black Belt Online Seminar Amazon API Gateway
20190514 AWS Black Belt Online Seminar Amazon API Gateway 20190514 AWS Black Belt Online Seminar Amazon API Gateway
20190514 AWS Black Belt Online Seminar Amazon API Gateway Amazon Web Services Japan
 
AWS Black Belt Online Seminar 2016 Amazon ElastiCache
AWS Black Belt Online Seminar 2016 Amazon ElastiCacheAWS Black Belt Online Seminar 2016 Amazon ElastiCache
AWS Black Belt Online Seminar 2016 Amazon ElastiCacheAmazon Web Services Japan
 
20190130 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...
20190130 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...20190130 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...
20190130 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...Amazon Web Services Japan
 
20190313 AWS Black Belt Online Seminar Amazon VPC Basic
20190313 AWS Black Belt Online Seminar Amazon VPC Basic20190313 AWS Black Belt Online Seminar Amazon VPC Basic
20190313 AWS Black Belt Online Seminar Amazon VPC BasicAmazon Web Services Japan
 
Amazon Athena 初心者向けハンズオン
Amazon Athena 初心者向けハンズオンAmazon Athena 初心者向けハンズオン
Amazon Athena 初心者向けハンズオンAmazon Web Services Japan
 
20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...
20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...
20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...Amazon Web Services Japan
 
202110 AWS Black Belt Online Seminar AWS Site-to-Site VPN
202110 AWS Black Belt Online Seminar AWS Site-to-Site VPN202110 AWS Black Belt Online Seminar AWS Site-to-Site VPN
202110 AWS Black Belt Online Seminar AWS Site-to-Site VPNAmazon Web Services Japan
 
[AWSマイスターシリーズ] AWS Billingについて
[AWSマイスターシリーズ] AWS Billingについて[AWSマイスターシリーズ] AWS Billingについて
[AWSマイスターシリーズ] AWS BillingについてAmazon Web Services Japan
 
20190424 AWS Black Belt Online Seminar Amazon Aurora MySQL
20190424 AWS Black Belt Online Seminar Amazon Aurora MySQL20190424 AWS Black Belt Online Seminar Amazon Aurora MySQL
20190424 AWS Black Belt Online Seminar Amazon Aurora MySQLAmazon Web Services Japan
 
AWS Black Belt Online Seminar 2017 AWS Shield
AWS Black Belt Online Seminar 2017 AWS ShieldAWS Black Belt Online Seminar 2017 AWS Shield
AWS Black Belt Online Seminar 2017 AWS ShieldAmazon Web Services Japan
 
20210316 AWS Black Belt Online Seminar AWS DataSync
20210316 AWS Black Belt Online Seminar AWS DataSync20210316 AWS Black Belt Online Seminar AWS DataSync
20210316 AWS Black Belt Online Seminar AWS DataSyncAmazon Web Services Japan
 
20201028 AWS Black Belt Online Seminar Amazon CloudFront deep dive
20201028 AWS Black Belt Online Seminar Amazon CloudFront deep dive20201028 AWS Black Belt Online Seminar Amazon CloudFront deep dive
20201028 AWS Black Belt Online Seminar Amazon CloudFront deep diveAmazon Web Services Japan
 
[AWSマイスターシリーズ]Amazon CloudWatch & Auto Scaling
[AWSマイスターシリーズ]Amazon CloudWatch & Auto Scaling[AWSマイスターシリーズ]Amazon CloudWatch & Auto Scaling
[AWSマイスターシリーズ]Amazon CloudWatch & Auto ScalingAmazon Web Services Japan
 
20180704 AWS Black Belt Online Seminar Amazon Elastic File System (Amazon EFS...
20180704 AWS Black Belt Online Seminar Amazon Elastic File System (Amazon EFS...20180704 AWS Black Belt Online Seminar Amazon Elastic File System (Amazon EFS...
20180704 AWS Black Belt Online Seminar Amazon Elastic File System (Amazon EFS...Amazon Web Services Japan
 
20190206 AWS Black Belt Online Seminar Amazon SageMaker Basic Session
20190206 AWS Black Belt Online Seminar Amazon SageMaker Basic Session20190206 AWS Black Belt Online Seminar Amazon SageMaker Basic Session
20190206 AWS Black Belt Online Seminar Amazon SageMaker Basic SessionAmazon Web Services Japan
 
AWS EC2 Eメール制限解除 - 逆引き(rDNS)設定 申請手順
AWS EC2 Eメール制限解除 - 逆引き(rDNS)設定 申請手順AWS EC2 Eメール制限解除 - 逆引き(rDNS)設定 申請手順
AWS EC2 Eメール制限解除 - 逆引き(rDNS)設定 申請手順Amazon Web Services Japan
 
20190522 AWS Black Belt Online Seminar AWS Step Functions
20190522 AWS Black Belt Online Seminar AWS Step Functions20190522 AWS Black Belt Online Seminar AWS Step Functions
20190522 AWS Black Belt Online Seminar AWS Step FunctionsAmazon Web Services Japan
 

What's hot (20)

20190730 AWS Black Belt Online Seminar Amazon CloudFrontの概要
20190730 AWS Black Belt Online Seminar Amazon CloudFrontの概要20190730 AWS Black Belt Online Seminar Amazon CloudFrontの概要
20190730 AWS Black Belt Online Seminar Amazon CloudFrontの概要
 
AWS Instance Schedulerは、ぜひ使うべきなのか?
AWS Instance Schedulerは、ぜひ使うべきなのか?AWS Instance Schedulerは、ぜひ使うべきなのか?
AWS Instance Schedulerは、ぜひ使うべきなのか?
 
20190514 AWS Black Belt Online Seminar Amazon API Gateway
20190514 AWS Black Belt Online Seminar Amazon API Gateway 20190514 AWS Black Belt Online Seminar Amazon API Gateway
20190514 AWS Black Belt Online Seminar Amazon API Gateway
 
AWS Black Belt Online Seminar 2016 Amazon ElastiCache
AWS Black Belt Online Seminar 2016 Amazon ElastiCacheAWS Black Belt Online Seminar 2016 Amazon ElastiCache
AWS Black Belt Online Seminar 2016 Amazon ElastiCache
 
20190130 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...
20190130 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...20190130 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...
20190130 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...
 
20190313 AWS Black Belt Online Seminar Amazon VPC Basic
20190313 AWS Black Belt Online Seminar Amazon VPC Basic20190313 AWS Black Belt Online Seminar Amazon VPC Basic
20190313 AWS Black Belt Online Seminar Amazon VPC Basic
 
Amazon Athena 初心者向けハンズオン
Amazon Athena 初心者向けハンズオンAmazon Athena 初心者向けハンズオン
Amazon Athena 初心者向けハンズオン
 
20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...
20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...
20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...
 
202110 AWS Black Belt Online Seminar AWS Site-to-Site VPN
202110 AWS Black Belt Online Seminar AWS Site-to-Site VPN202110 AWS Black Belt Online Seminar AWS Site-to-Site VPN
202110 AWS Black Belt Online Seminar AWS Site-to-Site VPN
 
[AWSマイスターシリーズ] AWS Billingについて
[AWSマイスターシリーズ] AWS Billingについて[AWSマイスターシリーズ] AWS Billingについて
[AWSマイスターシリーズ] AWS Billingについて
 
20190424 AWS Black Belt Online Seminar Amazon Aurora MySQL
20190424 AWS Black Belt Online Seminar Amazon Aurora MySQL20190424 AWS Black Belt Online Seminar Amazon Aurora MySQL
20190424 AWS Black Belt Online Seminar Amazon Aurora MySQL
 
AWS Black Belt Online Seminar 2017 AWS Shield
AWS Black Belt Online Seminar 2017 AWS ShieldAWS Black Belt Online Seminar 2017 AWS Shield
AWS Black Belt Online Seminar 2017 AWS Shield
 
20210316 AWS Black Belt Online Seminar AWS DataSync
20210316 AWS Black Belt Online Seminar AWS DataSync20210316 AWS Black Belt Online Seminar AWS DataSync
20210316 AWS Black Belt Online Seminar AWS DataSync
 
20201028 AWS Black Belt Online Seminar Amazon CloudFront deep dive
20201028 AWS Black Belt Online Seminar Amazon CloudFront deep dive20201028 AWS Black Belt Online Seminar Amazon CloudFront deep dive
20201028 AWS Black Belt Online Seminar Amazon CloudFront deep dive
 
[AWSマイスターシリーズ]Amazon CloudWatch & Auto Scaling
[AWSマイスターシリーズ]Amazon CloudWatch & Auto Scaling[AWSマイスターシリーズ]Amazon CloudWatch & Auto Scaling
[AWSマイスターシリーズ]Amazon CloudWatch & Auto Scaling
 
20180704 AWS Black Belt Online Seminar Amazon Elastic File System (Amazon EFS...
20180704 AWS Black Belt Online Seminar Amazon Elastic File System (Amazon EFS...20180704 AWS Black Belt Online Seminar Amazon Elastic File System (Amazon EFS...
20180704 AWS Black Belt Online Seminar Amazon Elastic File System (Amazon EFS...
 
20190206 AWS Black Belt Online Seminar Amazon SageMaker Basic Session
20190206 AWS Black Belt Online Seminar Amazon SageMaker Basic Session20190206 AWS Black Belt Online Seminar Amazon SageMaker Basic Session
20190206 AWS Black Belt Online Seminar Amazon SageMaker Basic Session
 
AWS EC2 Eメール制限解除 - 逆引き(rDNS)設定 申請手順
AWS EC2 Eメール制限解除 - 逆引き(rDNS)設定 申請手順AWS EC2 Eメール制限解除 - 逆引き(rDNS)設定 申請手順
AWS EC2 Eメール制限解除 - 逆引き(rDNS)設定 申請手順
 
20190522 AWS Black Belt Online Seminar AWS Step Functions
20190522 AWS Black Belt Online Seminar AWS Step Functions20190522 AWS Black Belt Online Seminar AWS Step Functions
20190522 AWS Black Belt Online Seminar AWS Step Functions
 
AWS Blackbelt 2015シリーズ RDS
AWS Blackbelt 2015シリーズ RDSAWS Blackbelt 2015シリーズ RDS
AWS Blackbelt 2015シリーズ RDS
 

Similar to [AWSマイスターシリーズ] リザーブドインスタンス&スポットインスタンス

[AWSマイスターシリーズ] リザーブドインスタンス&スポットインスタンス
[AWSマイスターシリーズ] リザーブドインスタンス&スポットインスタンス[AWSマイスターシリーズ] リザーブドインスタンス&スポットインスタンス
[AWSマイスターシリーズ] リザーブドインスタンス&スポットインスタンスAmazon Web Services Japan
 
はじめてのアマゾンウェブサービス @ JAWS DAYS 2014
はじめてのアマゾンウェブサービス @ JAWS DAYS 2014はじめてのアマゾンウェブサービス @ JAWS DAYS 2014
はじめてのアマゾンウェブサービス @ JAWS DAYS 2014Yasuhiro Horiuchi
 
20191115_Cloud Front
20191115_Cloud Front20191115_Cloud Front
20191115_Cloud Frontyamamotomsc
 
DeNAのQCTマネジメント IaaS利用のベストプラクティス [AWS Summit Tokyo 2019]
DeNAのQCTマネジメント IaaS利用のベストプラクティス [AWS Summit Tokyo 2019]DeNAのQCTマネジメント IaaS利用のベストプラクティス [AWS Summit Tokyo 2019]
DeNAのQCTマネジメント IaaS利用のベストプラクティス [AWS Summit Tokyo 2019]DeNA
 
AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)
AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)
AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)Amazon Web Services Japan
 
20180522 AWS Black Belt Online Seminar 失敗例を成功に変えるアンチパターン
20180522 AWS Black Belt Online Seminar 失敗例を成功に変えるアンチパターン20180522 AWS Black Belt Online Seminar 失敗例を成功に変えるアンチパターン
20180522 AWS Black Belt Online Seminar 失敗例を成功に変えるアンチパターンAmazon Web Services Japan
 
[AWSマイスターシリーズ] Amazon CloudFront / Amazon Elastic Transcoderによるコンテンツ配信
[AWSマイスターシリーズ] Amazon CloudFront / Amazon Elastic Transcoderによるコンテンツ配信[AWSマイスターシリーズ] Amazon CloudFront / Amazon Elastic Transcoderによるコンテンツ配信
[AWSマイスターシリーズ] Amazon CloudFront / Amazon Elastic Transcoderによるコンテンツ配信Amazon Web Services Japan
 
[CTO Night & Day 2019] AWS のコスト最適化 #ctonight
[CTO Night & Day 2019] AWS のコスト最適化 #ctonight[CTO Night & Day 2019] AWS のコスト最適化 #ctonight
[CTO Night & Day 2019] AWS のコスト最適化 #ctonightAmazon Web Services Japan
 
Windowsシステムの AWS移行とMulti-AZ化 - JAWS DAYS 2015
WindowsシステムのAWS移行とMulti-AZ化 - JAWS DAYS 2015 WindowsシステムのAWS移行とMulti-AZ化 - JAWS DAYS 2015
Windowsシステムの AWS移行とMulti-AZ化 - JAWS DAYS 2015 Takayuki Enomoto
 
いまさら聞けない Amazon EC2
いまさら聞けない Amazon EC2いまさら聞けない Amazon EC2
いまさら聞けない Amazon EC2Yasuhiro Matsuo
 
[AWSマイスターシリーズ] AWS OpsWorks
[AWSマイスターシリーズ] AWS OpsWorks[AWSマイスターシリーズ] AWS OpsWorks
[AWSマイスターシリーズ] AWS OpsWorksAmazon Web Services Japan
 
クラウドファースト時代のAWS活用事例と今後の展望 - AWS Cloud Storage & DB Day 2014
クラウドファースト時代のAWS活用事例と今後の展望 - AWS Cloud Storage & DB Day 2014 クラウドファースト時代のAWS活用事例と今後の展望 - AWS Cloud Storage & DB Day 2014
クラウドファースト時代のAWS活用事例と今後の展望 - AWS Cloud Storage & DB Day 2014 Takayuki Enomoto
 
人気ゲームアプリ「クラッシュフィーバー」におけるAWS活用
人気ゲームアプリ「クラッシュフィーバー」におけるAWS活用人気ゲームアプリ「クラッシュフィーバー」におけるAWS活用
人気ゲームアプリ「クラッシュフィーバー」におけるAWS活用Tomotsune Murata
 
20130410 jaws ug sapporo spot instance利用のすゝめ
20130410 jaws ug sapporo spot instance利用のすゝめ20130410 jaws ug sapporo spot instance利用のすゝめ
20130410 jaws ug sapporo spot instance利用のすゝめMachie Atarashi
 
Spot instance利用のすゝめ
Spot instance利用のすゝめSpot instance利用のすゝめ
Spot instance利用のすゝめMachie Atarashi
 
[AWSマイスターシリーズ] AWS CloudFormation
[AWSマイスターシリーズ] AWS CloudFormation[AWSマイスターシリーズ] AWS CloudFormation
[AWSマイスターシリーズ] AWS CloudFormationAmazon Web Services Japan
 
SAP on AWS最新情報とデジタルトランスフォーメーションに関する取組み
SAP on AWS最新情報とデジタルトランスフォーメーションに関する取組みSAP on AWS最新情報とデジタルトランスフォーメーションに関する取組み
SAP on AWS最新情報とデジタルトランスフォーメーションに関する取組みBeeX.inc
 
[SA-3-1] The anti pattern (ジ・アンチパターン)
 [SA-3-1]  The anti pattern (ジ・アンチパターン) [SA-3-1]  The anti pattern (ジ・アンチパターン)
[SA-3-1] The anti pattern (ジ・アンチパターン)Eiji Yamamoto
 
[よくわかるクラウドデータベース] CassandraからAmazon DynamoDBへの移行事例
[よくわかるクラウドデータベース] CassandraからAmazon DynamoDBへの移行事例[よくわかるクラウドデータベース] CassandraからAmazon DynamoDBへの移行事例
[よくわかるクラウドデータベース] CassandraからAmazon DynamoDBへの移行事例Amazon Web Services Japan
 

Similar to [AWSマイスターシリーズ] リザーブドインスタンス&スポットインスタンス (20)

[AWSマイスターシリーズ] リザーブドインスタンス&スポットインスタンス
[AWSマイスターシリーズ] リザーブドインスタンス&スポットインスタンス[AWSマイスターシリーズ] リザーブドインスタンス&スポットインスタンス
[AWSマイスターシリーズ] リザーブドインスタンス&スポットインスタンス
 
はじめてのアマゾンウェブサービス @ JAWS DAYS 2014
はじめてのアマゾンウェブサービス @ JAWS DAYS 2014はじめてのアマゾンウェブサービス @ JAWS DAYS 2014
はじめてのアマゾンウェブサービス @ JAWS DAYS 2014
 
20191115_Cloud Front
20191115_Cloud Front20191115_Cloud Front
20191115_Cloud Front
 
DeNAのQCTマネジメント IaaS利用のベストプラクティス [AWS Summit Tokyo 2019]
DeNAのQCTマネジメント IaaS利用のベストプラクティス [AWS Summit Tokyo 2019]DeNAのQCTマネジメント IaaS利用のベストプラクティス [AWS Summit Tokyo 2019]
DeNAのQCTマネジメント IaaS利用のベストプラクティス [AWS Summit Tokyo 2019]
 
AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)
AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)
AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)
 
20180522 AWS Black Belt Online Seminar 失敗例を成功に変えるアンチパターン
20180522 AWS Black Belt Online Seminar 失敗例を成功に変えるアンチパターン20180522 AWS Black Belt Online Seminar 失敗例を成功に変えるアンチパターン
20180522 AWS Black Belt Online Seminar 失敗例を成功に変えるアンチパターン
 
[AWSマイスターシリーズ] Amazon CloudFront / Amazon Elastic Transcoderによるコンテンツ配信
[AWSマイスターシリーズ] Amazon CloudFront / Amazon Elastic Transcoderによるコンテンツ配信[AWSマイスターシリーズ] Amazon CloudFront / Amazon Elastic Transcoderによるコンテンツ配信
[AWSマイスターシリーズ] Amazon CloudFront / Amazon Elastic Transcoderによるコンテンツ配信
 
[CTO Night & Day 2019] AWS のコスト最適化 #ctonight
[CTO Night & Day 2019] AWS のコスト最適化 #ctonight[CTO Night & Day 2019] AWS のコスト最適化 #ctonight
[CTO Night & Day 2019] AWS のコスト最適化 #ctonight
 
Windowsシステムの AWS移行とMulti-AZ化 - JAWS DAYS 2015
WindowsシステムのAWS移行とMulti-AZ化 - JAWS DAYS 2015 WindowsシステムのAWS移行とMulti-AZ化 - JAWS DAYS 2015
Windowsシステムの AWS移行とMulti-AZ化 - JAWS DAYS 2015
 
いまさら聞けない Amazon EC2
いまさら聞けない Amazon EC2いまさら聞けない Amazon EC2
いまさら聞けない Amazon EC2
 
[AWSマイスターシリーズ] AWS OpsWorks
[AWSマイスターシリーズ] AWS OpsWorks[AWSマイスターシリーズ] AWS OpsWorks
[AWSマイスターシリーズ] AWS OpsWorks
 
クラウドファースト時代のAWS活用事例と今後の展望 - AWS Cloud Storage & DB Day 2014
クラウドファースト時代のAWS活用事例と今後の展望 - AWS Cloud Storage & DB Day 2014 クラウドファースト時代のAWS活用事例と今後の展望 - AWS Cloud Storage & DB Day 2014
クラウドファースト時代のAWS活用事例と今後の展望 - AWS Cloud Storage & DB Day 2014
 
人気ゲームアプリ「クラッシュフィーバー」におけるAWS活用
人気ゲームアプリ「クラッシュフィーバー」におけるAWS活用人気ゲームアプリ「クラッシュフィーバー」におけるAWS活用
人気ゲームアプリ「クラッシュフィーバー」におけるAWS活用
 
20170621 aws-black belt-ads-sms
20170621 aws-black belt-ads-sms20170621 aws-black belt-ads-sms
20170621 aws-black belt-ads-sms
 
20130410 jaws ug sapporo spot instance利用のすゝめ
20130410 jaws ug sapporo spot instance利用のすゝめ20130410 jaws ug sapporo spot instance利用のすゝめ
20130410 jaws ug sapporo spot instance利用のすゝめ
 
Spot instance利用のすゝめ
Spot instance利用のすゝめSpot instance利用のすゝめ
Spot instance利用のすゝめ
 
[AWSマイスターシリーズ] AWS CloudFormation
[AWSマイスターシリーズ] AWS CloudFormation[AWSマイスターシリーズ] AWS CloudFormation
[AWSマイスターシリーズ] AWS CloudFormation
 
SAP on AWS最新情報とデジタルトランスフォーメーションに関する取組み
SAP on AWS最新情報とデジタルトランスフォーメーションに関する取組みSAP on AWS最新情報とデジタルトランスフォーメーションに関する取組み
SAP on AWS最新情報とデジタルトランスフォーメーションに関する取組み
 
[SA-3-1] The anti pattern (ジ・アンチパターン)
 [SA-3-1]  The anti pattern (ジ・アンチパターン) [SA-3-1]  The anti pattern (ジ・アンチパターン)
[SA-3-1] The anti pattern (ジ・アンチパターン)
 
[よくわかるクラウドデータベース] CassandraからAmazon DynamoDBへの移行事例
[よくわかるクラウドデータベース] CassandraからAmazon DynamoDBへの移行事例[よくわかるクラウドデータベース] CassandraからAmazon DynamoDBへの移行事例
[よくわかるクラウドデータベース] CassandraからAmazon DynamoDBへの移行事例
 

More from Amazon Web Services Japan

202205 AWS Black Belt Online Seminar Amazon VPC IP Address Manager (IPAM)
202205 AWS Black Belt Online Seminar Amazon VPC IP Address Manager (IPAM)202205 AWS Black Belt Online Seminar Amazon VPC IP Address Manager (IPAM)
202205 AWS Black Belt Online Seminar Amazon VPC IP Address Manager (IPAM)Amazon Web Services Japan
 
202205 AWS Black Belt Online Seminar Amazon FSx for OpenZFS
202205 AWS Black Belt Online Seminar Amazon FSx for OpenZFS202205 AWS Black Belt Online Seminar Amazon FSx for OpenZFS
202205 AWS Black Belt Online Seminar Amazon FSx for OpenZFSAmazon Web Services Japan
 
202204 AWS Black Belt Online Seminar AWS IoT Device Defender
202204 AWS Black Belt Online Seminar AWS IoT Device Defender202204 AWS Black Belt Online Seminar AWS IoT Device Defender
202204 AWS Black Belt Online Seminar AWS IoT Device DefenderAmazon Web Services Japan
 
202204 AWS Black Belt Online Seminar Amazon Connect を活用したオンコール対応の実現
202204 AWS Black Belt Online Seminar Amazon Connect を活用したオンコール対応の実現202204 AWS Black Belt Online Seminar Amazon Connect を活用したオンコール対応の実現
202204 AWS Black Belt Online Seminar Amazon Connect を活用したオンコール対応の実現Amazon Web Services Japan
 
202204 AWS Black Belt Online Seminar Amazon Connect Salesforce連携(第1回 CTI Adap...
202204 AWS Black Belt Online Seminar Amazon Connect Salesforce連携(第1回 CTI Adap...202204 AWS Black Belt Online Seminar Amazon Connect Salesforce連携(第1回 CTI Adap...
202204 AWS Black Belt Online Seminar Amazon Connect Salesforce連携(第1回 CTI Adap...Amazon Web Services Japan
 
Amazon Game Tech Night #25 ゲーム業界向け機械学習最新状況アップデート
Amazon Game Tech Night #25 ゲーム業界向け機械学習最新状況アップデートAmazon Game Tech Night #25 ゲーム業界向け機械学習最新状況アップデート
Amazon Game Tech Night #25 ゲーム業界向け機械学習最新状況アップデートAmazon Web Services Japan
 
20220409 AWS BLEA 開発にあたって検討したこと
20220409 AWS BLEA 開発にあたって検討したこと20220409 AWS BLEA 開発にあたって検討したこと
20220409 AWS BLEA 開発にあたって検討したことAmazon Web Services Japan
 
202202 AWS Black Belt Online Seminar AWS Managed Rules for AWS WAF の活用
202202 AWS Black Belt Online Seminar AWS Managed Rules for AWS WAF の活用202202 AWS Black Belt Online Seminar AWS Managed Rules for AWS WAF の活用
202202 AWS Black Belt Online Seminar AWS Managed Rules for AWS WAF の活用Amazon Web Services Japan
 
202203 AWS Black Belt Online Seminar Amazon Connect Tasks.pdf
202203 AWS Black Belt Online Seminar Amazon Connect Tasks.pdf202203 AWS Black Belt Online Seminar Amazon Connect Tasks.pdf
202203 AWS Black Belt Online Seminar Amazon Connect Tasks.pdfAmazon Web Services Japan
 
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介Amazon Web Services Japan
 
Amazon QuickSight の組み込み方法をちょっぴりDD
Amazon QuickSight の組み込み方法をちょっぴりDDAmazon QuickSight の組み込み方法をちょっぴりDD
Amazon QuickSight の組み込み方法をちょっぴりDDAmazon Web Services Japan
 
マルチテナント化で知っておきたいデータベースのこと
マルチテナント化で知っておきたいデータベースのことマルチテナント化で知っておきたいデータベースのこと
マルチテナント化で知っておきたいデータベースのことAmazon Web Services Japan
 
機密データとSaaSは共存しうるのか!?セキュリティー重視のユーザー層を取り込む為のネットワーク通信のアプローチ
機密データとSaaSは共存しうるのか!?セキュリティー重視のユーザー層を取り込む為のネットワーク通信のアプローチ機密データとSaaSは共存しうるのか!?セキュリティー重視のユーザー層を取り込む為のネットワーク通信のアプローチ
機密データとSaaSは共存しうるのか!?セキュリティー重視のユーザー層を取り込む為のネットワーク通信のアプローチAmazon Web Services Japan
 
パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介
パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介
パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介Amazon Web Services Japan
 
202202 AWS Black Belt Online Seminar Amazon Connect Customer Profiles
202202 AWS Black Belt Online Seminar Amazon Connect Customer Profiles202202 AWS Black Belt Online Seminar Amazon Connect Customer Profiles
202202 AWS Black Belt Online Seminar Amazon Connect Customer ProfilesAmazon Web Services Japan
 
Amazon Game Tech Night #24 KPIダッシュボードを最速で用意するために
Amazon Game Tech Night #24 KPIダッシュボードを最速で用意するためにAmazon Game Tech Night #24 KPIダッシュボードを最速で用意するために
Amazon Game Tech Night #24 KPIダッシュボードを最速で用意するためにAmazon Web Services Japan
 
202202 AWS Black Belt Online Seminar AWS SaaS Boost で始めるSaaS開発⼊⾨
202202 AWS Black Belt Online Seminar AWS SaaS Boost で始めるSaaS開発⼊⾨202202 AWS Black Belt Online Seminar AWS SaaS Boost で始めるSaaS開発⼊⾨
202202 AWS Black Belt Online Seminar AWS SaaS Boost で始めるSaaS開発⼊⾨Amazon Web Services Japan
 
[20220126] JAWS-UG 2022初頭までに葬ったAWSアンチパターン大紹介
[20220126] JAWS-UG 2022初頭までに葬ったAWSアンチパターン大紹介[20220126] JAWS-UG 2022初頭までに葬ったAWSアンチパターン大紹介
[20220126] JAWS-UG 2022初頭までに葬ったAWSアンチパターン大紹介Amazon Web Services Japan
 
202111 AWS Black Belt Online Seminar AWSで構築するSmart Mirrorのご紹介
202111 AWS Black Belt Online Seminar AWSで構築するSmart Mirrorのご紹介202111 AWS Black Belt Online Seminar AWSで構築するSmart Mirrorのご紹介
202111 AWS Black Belt Online Seminar AWSで構築するSmart Mirrorのご紹介Amazon Web Services Japan
 

More from Amazon Web Services Japan (20)

202205 AWS Black Belt Online Seminar Amazon VPC IP Address Manager (IPAM)
202205 AWS Black Belt Online Seminar Amazon VPC IP Address Manager (IPAM)202205 AWS Black Belt Online Seminar Amazon VPC IP Address Manager (IPAM)
202205 AWS Black Belt Online Seminar Amazon VPC IP Address Manager (IPAM)
 
202205 AWS Black Belt Online Seminar Amazon FSx for OpenZFS
202205 AWS Black Belt Online Seminar Amazon FSx for OpenZFS202205 AWS Black Belt Online Seminar Amazon FSx for OpenZFS
202205 AWS Black Belt Online Seminar Amazon FSx for OpenZFS
 
202204 AWS Black Belt Online Seminar AWS IoT Device Defender
202204 AWS Black Belt Online Seminar AWS IoT Device Defender202204 AWS Black Belt Online Seminar AWS IoT Device Defender
202204 AWS Black Belt Online Seminar AWS IoT Device Defender
 
Infrastructure as Code (IaC) 談義 2022
Infrastructure as Code (IaC) 談義 2022Infrastructure as Code (IaC) 談義 2022
Infrastructure as Code (IaC) 談義 2022
 
202204 AWS Black Belt Online Seminar Amazon Connect を活用したオンコール対応の実現
202204 AWS Black Belt Online Seminar Amazon Connect を活用したオンコール対応の実現202204 AWS Black Belt Online Seminar Amazon Connect を活用したオンコール対応の実現
202204 AWS Black Belt Online Seminar Amazon Connect を活用したオンコール対応の実現
 
202204 AWS Black Belt Online Seminar Amazon Connect Salesforce連携(第1回 CTI Adap...
202204 AWS Black Belt Online Seminar Amazon Connect Salesforce連携(第1回 CTI Adap...202204 AWS Black Belt Online Seminar Amazon Connect Salesforce連携(第1回 CTI Adap...
202204 AWS Black Belt Online Seminar Amazon Connect Salesforce連携(第1回 CTI Adap...
 
Amazon Game Tech Night #25 ゲーム業界向け機械学習最新状況アップデート
Amazon Game Tech Night #25 ゲーム業界向け機械学習最新状況アップデートAmazon Game Tech Night #25 ゲーム業界向け機械学習最新状況アップデート
Amazon Game Tech Night #25 ゲーム業界向け機械学習最新状況アップデート
 
20220409 AWS BLEA 開発にあたって検討したこと
20220409 AWS BLEA 開発にあたって検討したこと20220409 AWS BLEA 開発にあたって検討したこと
20220409 AWS BLEA 開発にあたって検討したこと
 
202202 AWS Black Belt Online Seminar AWS Managed Rules for AWS WAF の活用
202202 AWS Black Belt Online Seminar AWS Managed Rules for AWS WAF の活用202202 AWS Black Belt Online Seminar AWS Managed Rules for AWS WAF の活用
202202 AWS Black Belt Online Seminar AWS Managed Rules for AWS WAF の活用
 
202203 AWS Black Belt Online Seminar Amazon Connect Tasks.pdf
202203 AWS Black Belt Online Seminar Amazon Connect Tasks.pdf202203 AWS Black Belt Online Seminar Amazon Connect Tasks.pdf
202203 AWS Black Belt Online Seminar Amazon Connect Tasks.pdf
 
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介
 
Amazon QuickSight の組み込み方法をちょっぴりDD
Amazon QuickSight の組み込み方法をちょっぴりDDAmazon QuickSight の組み込み方法をちょっぴりDD
Amazon QuickSight の組み込み方法をちょっぴりDD
 
マルチテナント化で知っておきたいデータベースのこと
マルチテナント化で知っておきたいデータベースのことマルチテナント化で知っておきたいデータベースのこと
マルチテナント化で知っておきたいデータベースのこと
 
機密データとSaaSは共存しうるのか!?セキュリティー重視のユーザー層を取り込む為のネットワーク通信のアプローチ
機密データとSaaSは共存しうるのか!?セキュリティー重視のユーザー層を取り込む為のネットワーク通信のアプローチ機密データとSaaSは共存しうるのか!?セキュリティー重視のユーザー層を取り込む為のネットワーク通信のアプローチ
機密データとSaaSは共存しうるのか!?セキュリティー重視のユーザー層を取り込む為のネットワーク通信のアプローチ
 
パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介
パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介
パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介
 
202202 AWS Black Belt Online Seminar Amazon Connect Customer Profiles
202202 AWS Black Belt Online Seminar Amazon Connect Customer Profiles202202 AWS Black Belt Online Seminar Amazon Connect Customer Profiles
202202 AWS Black Belt Online Seminar Amazon Connect Customer Profiles
 
Amazon Game Tech Night #24 KPIダッシュボードを最速で用意するために
Amazon Game Tech Night #24 KPIダッシュボードを最速で用意するためにAmazon Game Tech Night #24 KPIダッシュボードを最速で用意するために
Amazon Game Tech Night #24 KPIダッシュボードを最速で用意するために
 
202202 AWS Black Belt Online Seminar AWS SaaS Boost で始めるSaaS開発⼊⾨
202202 AWS Black Belt Online Seminar AWS SaaS Boost で始めるSaaS開発⼊⾨202202 AWS Black Belt Online Seminar AWS SaaS Boost で始めるSaaS開発⼊⾨
202202 AWS Black Belt Online Seminar AWS SaaS Boost で始めるSaaS開発⼊⾨
 
[20220126] JAWS-UG 2022初頭までに葬ったAWSアンチパターン大紹介
[20220126] JAWS-UG 2022初頭までに葬ったAWSアンチパターン大紹介[20220126] JAWS-UG 2022初頭までに葬ったAWSアンチパターン大紹介
[20220126] JAWS-UG 2022初頭までに葬ったAWSアンチパターン大紹介
 
202111 AWS Black Belt Online Seminar AWSで構築するSmart Mirrorのご紹介
202111 AWS Black Belt Online Seminar AWSで構築するSmart Mirrorのご紹介202111 AWS Black Belt Online Seminar AWSで構築するSmart Mirrorのご紹介
202111 AWS Black Belt Online Seminar AWSで構築するSmart Mirrorのご紹介
 

[AWSマイスターシリーズ] リザーブドインスタンス&スポットインスタンス

  • 1. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. AWSマイスターシリーズ リザーブドインスタンス& スポットインスタンス編 2013.10.23(2014.4.14改訂) 髙山 博史 安川 健太
  • 2. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 2 Agenda はじめに • AWSの割引の仕組み • 時間課金系サービスのご利用オプション オンデマンドインスタンス リザーブドインスタンス リザーブドインスタンスアップデート[NEW] スポットインスタンス まとめ
  • 3. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 3 はじめに…
  • 4. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 4 AWSでのコスト削減 前提として…
  • 5. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 5 AWSでのコスト削減って? よりクラウドネイティブな設計 ・EC2以外のAWSサービス積極的に活用 ・インスタンスタイプの最適化 ・スタンバイ機の見直し ・運用自動化 割引オプションの活用 ・リザーブド・インスタンス ・スポット・インスタンス ・Cloudfrontの予約容量 ・DynamoDBの予約容量等々… その他のリソースの無駄チェック ・EBS, Snapshot, EIP等々… 効果大 効果小 運用コスト削減も 構成は変えずに
  • 6. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 6 AWSでのコスト削減って? よりクラウドネイティブな設計 ・EC2以外のAWSサービス積極的に活用 ・インスタンスタイプの最適化 ・スタンバイ機の見直し ・運用自動化 割引オプションの活用 ・リザーブド・インスタンス ・スポット・インスタンス ・Cloudfrontの予約容量 ・DynamoDBの予約量等々… その他のリソースの無駄チェック ・EBS, Snapshot, EIP等々… 効果大 効果小 運用コスト削減も 構成は変えずに 既存オンプレミス構成を そのままAWSで再現している場合などは、 「構成の見直し」もご検討ください (AWSのSales/SAにご相談ください) [お問い合わせフォーム] http://aws.amazon.com/jp/contact-us/aws-sales/
  • 7. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 7 AWSの割引の仕組み 前提を踏まえた上で…
  • 8. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 8 AWSの割引の仕組み① ご利用オプションによる割引 ①リザーブド・インスタンス →EC2(・RDS・ElastiCashe) ②スポット・インスタンス →EC2(・ElasticMapRuduce) ご利用が増えると自動的に単価が安くなるもの →データ転送量やS3ストレージ料金など 本資料で説明
  • 9. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 9 AWSの割引の仕組み② Cloudfrontの予約容量 →リージョンごとに10TB/月から 数TB配信される場合は、ご相談ください 随時行われる価格改定 →規模の経済・運用効率化による サービス開始から40回以上の値下げ実績あり
  • 10. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 10 “インスタンスの時間単価”の削減は効果的 月々のAWSご利用料金の中で、EC2やRDSなど の時間課金サービスが占める割合が大きいことが 多い! データ転送料金の割合が多い場合は、Cloudfrontの予約容量もご検討ください コスト削減に 効果的!EC2 RDS データ転送量 その他 AWSご利用料金 内訳例
  • 11. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 11 用途に合わせて選べる AWSのご利用オプション オンデマンド・インスタンス(デフォルト) • 初期費用ゼロ・コミットなし・時間課金 リザーブド・インスタンス(オプション) • 予約金の支払いで、時間単価の割引・キャパシティの予約 • 年間を通して大幅な費用削減が可能 スポット・インスタンス(オプション) • 初期費用ゼロ • スポット価格(需要と供給によりリアルタイムに変動)で課金 • 最大で払ってもいい額を決定して「入札」 • 「入札額 >= スポット価格」 インスタンスが利用可 • 「入札額<スポット価格」インスタンスがターミネート
  • 12. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 12 オンデマンド以外オプションの用途 リザーブド・インスタンス • 稼働率の高い(多くの時間起動している)インスタンス • 常時稼動のDBサーバ • 最低限必要なWeb/APサーバ等 スポット・インスタンス • 時間の制約がなく、中断しても支障のないタスクを実 行するインスタンス • Webクローラ • 分散処理のタスクノード等 システム内に上記のようなインスタンスが あればコスト削減の可能性あり
  • 13. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 13 オンデマンド・インスタンス まずは基本の
  • 14. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 14 オンデマンド・インスタンス オンデマンド・インスタンス(デフォルト) • 初期費用ゼロ • 時間課金 • 長期コミットメントなし
  • 15. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 15 オンデマンド・インスタンス オンデマンド インスタンス 積算料金 期間初期費用0
  • 16. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 16 オンデマンド・インスタンスの使いどころ 1年間のうち、40%未満しか使わない場合 *m3.largeインスタンスの場合 インスタンスファミリーにより異なる(詳細は後述) 一時的/一定期間必要なインスタンス • ピーク対応で増減するサーバ • キャンペーンサイト • 開発検証サーバ(スポットも検討)…etc それ以外は、リザーブド・インスタンスも検討ください
  • 17. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 17 リザーブド・インスタンス
  • 18. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 18 リザーブド・インスタンス よくある勘違い リザーブド・インスタンスは、1年/3年の利用料前 払いである リザーブド・インスタンスを購入したら、1年/3年 の”縛り”がある(必ず使用しないといけない) インスタンスタイプを変更すると、割引が適用され ない エンタープライズ向けであり、スタートアップには 適さない
  • 19. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 19 リザーブド・インスタンス よくある勘違い リザーブド・インスタンスは、1年/3年の利用料前 払いである リザーブド・インスタンスを購入したら、1年/3年 の”縛り”がある(必ず使用しないといけない) インスタンスタイプを変更すると、割引が適用され ない エンタープライズ向けであり、スタートアップには 適さない × × × △
  • 20. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 20 リザーブド・インスタンス オンデマンド インスタンス リザーブド インスタンス 積算料金 期間 予約金 (キャパシティ予約、 時間単価割引確定) 1年/3年 長期間ご利用の場合、 大幅にお安く
  • 21. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 21 リザーブド・インスタンス リザーブド・インスタンス(以下、RI) • 予約金お支払いによる、1年間/3年間の時間課金の割引 →一時金のお支払で、時間単価が安くなる仕組み • 月額費用は割引単価での時間課金 *後述の「重度使用」のみ、RI期間中は起動時間にかかわらず、 毎月100%起動したものとして月額課金 • 該当キャパシティを予約 (該当AZに該当インスタンスタイプ)
  • 22. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 22 キャパシティ予約 該当AWSアカウント用に、キャパシティを予約 • 条件(AZ/インスタンスタイプ等)に合致するインスタン スを予約することで、予約した数のインスタンスは、 必要になったときにいつでも起動できるという安心感 AWSは随時リソースを追加し続けています!
  • 23. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 23 リザーブド・インスタンスは、1年/3年の利用料前 払いである リザーブド・インスタンスを購入したら、1年/3年 の”縛り”がある(必ず使用しないといけない) インスタンスタイプを変更すると、割引が適用され ない エンタープライズ向けであり、スタートアップには 適さない × リザーブド・インスタンス よくある勘違い
  • 24. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 24 リザーブド・インスタンス オンデマンド インスタンス リザーブド インスタンス 積算料金 期間 予約金 (キャパシティ予約、 時間単価割引確定) 1年/3年 長期間ご利用の場合、 大幅にお安く
  • 25. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 25 リザーブド・インスタンスのポイント 必ずしも1年間使用し続ける必要はない • ただし使用しない場合でも初期費用の返金はなし *後述の「重度使用」のみ、リザーブ期間中は起動時間にかかわらず、 毎月100%起動したものとして月額課金
  • 26. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 26 リザーブド・インスタンスのポイント 必ずしも1年間使用し続ける必要はない • ただし使用しない場合でも初期費用の返金はなし *後述の「重度使用」のみ、リザーブ期間中は起動時間にかかわらず、 毎月100%起動したものとして月額課金 オンデマンド インスタンス リザーブド インスタンス 積算料金 期間 予約金 途中で使用を止めたり、 24時間起動しなくても お得な場合も *RIタイプ(後述)により異なる 例:6か月分
  • 27. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 27 リザーブド・インスタンスは、1年/3年の利用料前 払いである リザーブド・インスタンスを購入したら、1年/3年 の”縛り”がある(必ず使用しないといけない) インスタンスタイプを変更すると、割引が適用され ない エンタープライズ向けであり、スタートアップには 適さない × リザーブド・インスタンス よくある勘違い
  • 28. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 28 リザーブド・インスタンス(RI)のタイプ Light Utilization(軽度使用) Medium Utilization(中度使用) Heavy Utilization(重度使用) 初期費用 少ない 初期費用 多い 時間課金 割引小さい 時間課金 割引大きい *ただし重度使用のみ、RI期間中は起動時間にかかわらず、 毎月100%起動したものとして課金(月初に24時間×日数分を月額費用に計上) ご利用用途に合わせたタイプの選択が必要 RIタイプは「初期費用/時間単価」の組み合わせで3種類
  • 29. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 29 EC2のRIタイプ別比較(1年) m3.large 各タイプの削減効果・損益分岐点・スイートスポット(目安) 年間100%利用した 場合の削減効果 (対オンデマンド インスタンス) オンデマンド インスタンスとの 損益分岐点 (これ以上ご利用ならお得) 年間利用率の スイートスポット (年間何%利用の場合、 このタイプがお得か?) Medium (中度使用) 35% 40% 40%~82% Heavy (重度使用) 43% 58% 83%~100% *Tokyoリージョンでm3.large(Linux)利用の場合で算出 (インスタンスタイプにより異なる) 2014年4月9日現在
  • 30. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 30 EC2のRIタイプ別比較(1年) c3.large 年間100%利用した 場合の削減効果 (対オンデマンド インスタンス) オンデマンド インスタンスとの 損益分岐点 (これ以上ご利用ならお得) 年間利用率の スイートスポット (年間何%利用の場合、 このタイプがお得か?) Medium (中度使用) 25% 52% 52%~87% Heavy (重度使用) 31% 69% 88%~100% *Tokyoリージョンでc3.large(Linux)利用の場合で算出 (インスタンスタイプにより異なる) 2014年4月9日現在 各タイプの削減効果・損益分岐点・スイートスポット(目安)
  • 31. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 31 EC2のRIタイプ別比較(1年) r3.large 年間100%利用した 場合の削減効果 (対オンデマンド インスタンス) オンデマンド インスタンスとの 損益分岐点 (これ以上ご利用ならお得) 年間利用率の スイートスポット (年間何%利用の場合、 このタイプがお得か?) Medium (中度使用) 30% 57% 57%~83% Heavy (重度使用) 35% 66% 84%~100% *Tokyoリージョンでr3.large(Linux)利用の場合で算出 (インスタンスタイプにより異なる) 2014年4月9日現在 各タイプの削減効果・損益分岐点・スイートスポット(目安)
  • 32. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 32 EC2のRIタイプ別比較(1年) 参考:m1.large 年間100%利用した 場合の削減効果 (対オンデマンド インスタンス) オンデマンド インスタンスとの 損益分岐点 (これ以上ご利用ならお得) 年間利用率の スイートスポット (年間何%利用の場合、 このタイプがお得か?) Medium (中度使用) 39% 36% 36%~82% Heavy (重度使用) 46% 55% 83%~100% *Tokyoリージョンでm1.large(Linux)利用の場合で算出 (インスタンスタイプにより異なる) 2014年4月9日現在 各タイプの削減効果・損益分岐点・スイートスポット(目安)
  • 33. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 33 EC2のRIタイプ別比較(1年) 参考:m2.xlarge 年間100%利用した 場合の削減効果 (対オンデマンド インスタンス) オンデマンド インスタンスとの 損益分岐点 (これ以上ご利用ならお得) 年間利用率の スイートスポット (年間何%利用の場合、 このタイプがお得か?) Medium (中度使用) 51% 25% 25%~89% Heavy (重度使用) 55% 46% 89%~100% *Tokyoリージョンでm2.xlarge(Linux)利用の場合で算出 (インスタンスタイプにより異なる) 2014年4月9日現在 各タイプの削減効果・損益分岐点・スイートスポット(目安)
  • 34. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 34 EC2のRI割引適用条件 購入時に以下の条件を指定 ①ネットワークプラットフォーム「Classic/VPC」(*)や 「OS(ライセンス料込か?)」 ②インスタンスタイプ「Small, Large」など ③アベイラビリティーゾーン(AZ)「ap-northeast-1a」など ④期間「1年または3年」 ⑤タイプ(重度・中度・軽度) ⑥VPCの場合のみ「占有インスタンスか否か?」 *EC2-Classic(非VPC)が有効な場合のみ選択 後から変更できるようになりました(後述)
  • 35. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 35 EC2のRI適用例 割引の権利は“AWSアカウント単位”で管理 • インスタンスIDとの紐づけは無し 料金計算イメージ: ・RI権利 :Small*1インスタンス分 ・稼働中 :Small*3インスタンス Small割引料金×1 Small通常料金×2 *適用にはインスタンスタイプ以外の 各条件も合致していること割引 通常 通常
  • 36. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 36 1インスタンスをスケールアップした場合 料金計算イメージ: ・RI権利 :Small*1インスタンス分 ・稼働中 :Small*3インスタンス ・RI権利 :Small*1インスタンス分 ・稼働中 :Small*2インスタンス :Large*1インスタンス *適用にはインスタンスタイプ以外の 各条件も合致していること Small割引料金×1 Small通常料金×2 Small割引料金×1 Small通常料金×1 Large通常料金×1 割引 通常 通常 通常 割引 通常
  • 37. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 37 リザーブド・インスタンスは、1年/3年の利用料前 払いである リザーブド・インスタンスを購入したら、1年/3年 の”縛り”がある(必ず使用しないといけない) インスタンスタイプを変更すると、割引が適用され ない エンタープライズ向けであり、スタートアップには 適さない △ リザーブド・インスタンス よくある勘違い
  • 38. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 38 RIの使いどころ(例)① 常に起動しているDBやキャッシュサーバなど →今後スケールアップの可能性がある場合は、 Mediumタイプがオススメ
  • 39. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 39 RIの使いどころ(例)② 常に起動している分のWeb/Appサーバ →スケールアウトする分はオンデマンドで 平常時 ピーク時 RI RI オンデマンド
  • 40. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 40 RIの導入フロー まずはオンデマンドタイプの利用で「インスタン スタイプ」の検討と「利用率」を算出 以下のようなインスタンスについてRIを購入 • 定常的に同一インスタンスタイプで起動しているサーバ • 一定の利用率がありそうなサーバ (Mediumタイプなどを) →権利の購入なので、無停止でRIに切り替え可
  • 41. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 41 リザーブド・インスタンスは、1年/3年の利用料前 払いである リザーブド・インスタンスを購入したら、1年/3年 の”縛り”がある(必ず使用しないといけない) インスタンスタイプを変更すると、割引が適用され ない エンタープライズ向けであり、スタートアップには 適さない× リザーブド・インスタンス よくある勘違い
  • 42. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 42 リザーブド・インスタンス よくある勘違い リザーブド・インスタンスは、1年/3年の利用料前 払いである リザーブド・インスタンスを購入したら、1年/3年 の”縛り”がある(必ず使用しないといけない) インスタンスタイプを変更すると、割引が適用され ない エンタープライズ向けであり、スタートアップには 適さない × × × △
  • 43. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 43 RI購入のタイミングで決済されます (月々のご利用には合算されません) クレジットカードの限度額に ご注意ください [営業お問い合わせフォーム] http://aws.amazon.com/jp/contact-us/aws-sales/ RIの購入時のご注意
  • 44. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 44 リザーブド・インスタンス アップデート
  • 45. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 45 あとからAZおよび、ネットワークプラットフォーム 「Classic/VPC(*)」 が、変更可能になりました ①EC2 RIの予約内容(AZ・Classic/VPC)を 変更できるようになりました *EC2-Classic(非VPC)が有効な場合のみ変更可能
  • 46. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 46 ただし変更できない場合もあるので注意(必ず出来 るわけではない) 特に変更成功/失敗の通知は無いので、しばらくし てからステータスを確認する必要があります →AZ変更失敗の場合、元AZでactiveになります ①EC2 RIの予約内容(AZ・Classic/VPC)を 変更できるようになりました
  • 47. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 47 ②EC2 RIの予約内容(インタンスタイプ)が 変更できるようになりました 同じインタンスファミリー(m1,m2,m3,c1)内で のアップグレート(統合)とダウングレード(分解) が可能に Small Small Large アップ グレード ダウン グレード Medium Medium Small Small Small Large
  • 48. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 48 ②EC2 RIの予約内容(インタンスタイプ)が 変更できるようになりました 同じインスタンスファミリーで、合計ユニット数 が同じになるようにアップグレード/ダウングレー ド インスタンス タイプ small medium large xlarge 2xlarge 4xlarge 8xlarge ユニット 1 2 4 8 16 32 64 Small 1 Small Large 4 アップ グレード ダウン グレード Medium 2 Medium 2 Small 1 Small 1 Small 1 Large 4
  • 49. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 49 ②EC2 RIの予約内容(インタンスタイプ)が 変更できるようになりました アップグレード(RIをまとめる)が出来る条件は… ①リージョン ②インスタンスファミリー(m1,m2,m3,c1) ③プラットフォーム(OS等) *Windows+SQL Serverは対象外 ④タイプ(軽度・中度・重度) ⑤共有/占有の種別 ⑥終了日時 が同一なこと →別々のタイミングで購入したRIを統合することは出来ない http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modification-instancemove.html
  • 50. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 50 ②EC2 RIの予約内容(インタンスタイプ)が 変更できるようになりました こちらも特に変更成功/失敗の通知は無いので、 しばらくしてからステータスを確認する必要があ ります
  • 51. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 51 RIの可用性は絶えず変化します。そのため、各変 更のリクエストは、それにより成功することも失 敗することもあります。特定のリクエストが失敗 しても、時間を置いてやり直すことで成功する場 合があります。 リクエストするAZと、ネットワークプラット フォーム(Classic/VPC)はアカウントで利用可能 なものである必要があります。 RI予約内容変更のご注意
  • 52. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 52 ご参考:Consolidated Billing(一括決済)とRI 一括決済とは? →AWSの費用請求をまとめられるサービス 複数アカウントの費用を、1つにまとめて支払える アカウント間でRIの融通が可能 参考:AWSマイスターシリーズ Reloaded AWS Billing編 http://slidesha.re/Q7tAMf 使われていない リザーブドインスタンス 条件が合えば こちらのアカウントに割引適用
  • 53. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 53 ご参考:Trusted Advisor お客様のAWS環境を精査し、コスト削 減等の推奨事項をお知らせする機能 サポートレベルが「ビジネス」または 「エンタープライズ」の場合に、サ ポートセンター経由でアクセス可能 RI, EC2インスタンス、EBS等100 個を超えるチェック項目を持つ 多くのお客様にAWSのサービスを適用 してきたベストプラクティスが適用さ れている 参考:AWS Trusted Advisor https://aws.amazon.com/jp/premiumsupport/trustedadvisor/
  • 54. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 54 ベーシック デベロッパー ビジネス エンタープライズ フォーラム 利用可能 利用可能 利用可能 利用可能 サポートへの コンタクト EC2の 健全性エラーが 発生した場合 コンタクト フォーム 電話、チャット コンタクト フォーム 電話、チャット コンタクト フォーム 初回応答時間 不可 12時間 (営業時間内) 1時間 15分 連絡先登録 - 1 5 無制限 24/365対応 なし なし あり あり Trusted Advisor なし なし あり あり 専任スタッフ なし なし なし あり 特別サポート なし なし なし あり 料金(月額) 無料 $49 AWS利用総額の $0~$10K: 10% $10K~$80K: 7% $80K~$250K: 5% $250K~: 3% (最低$100) AWS利用総額の10% (最低$15000) ご参考:AWSサポート 日本語での技術サポートをご提供 参考:AWS サポート https://aws.amazon.com/jp/premiumsupport/
  • 55. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 55 スポット・インスタンス
  • 56. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 56 スポットインスタンスとは? 需要と供給の関係に基づいてリアルタイムで変動する 「スポット価格」が割当てられたインスタンス AWS Cloud Availability Zone Availability Zone 55% off 40% off 59% off 59% off
  • 57. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 57 スポットインスタンスとは? 需要と供給の関係に基づいてリアルタイムで変動する 「スポット価格」が割当てられたインスタンス AWS Cloud Availability Zone Availability Zone 55% off 40% off 59% off 59% off • オンデマンドインスタンスや リザーブドインスタンスの価格モデルを補完 • 時間の制約がなく、中断可能なタスクの 計算コストを大幅に削減
  • 58. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 58 スポット価格と入札 スポット価格: AZごとのEC2インスタンスの需要と供給により、AZごとに価格が変動 入札によるインスタンス利用 • 「入札額 >= スポット価格」なら指定したインスタンスが起動 • 「入札額 < スポット価格」となるとインスタンスがターミネートされる $9で入札 $8で入札 $7で入札 ユーザA ユーザB ユーザC $9で入札 $8で入札 $10で入札 ユーザA ユーザB ユーザC スポット価格=$7.5 スポット価格=$8.5
  • 59. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 59 スポットリクエストとインスタンス スポットリクエスト:入札条件を指定したインスタンス起動要求 • 最大で”払っても良い”金額(実際の課金はスポット価格) • インスタンスタイプ等 インスタンスの起動と終了 • 起動のタイミング: • スポットリクエストの条件が満たされた時点 (オンデマンドやリザーブドはリクエスト後すぐ) • 終了のタイミング: • ユーザが終了命令を出した時点 • スポット価格がスポットリクエストで指定した価格を上回った時点 課金について • インスタンス起動時から1時間毎にスポット価格にて課金 • インスタンスが強制終了された場合、1時間未満の時間に対しては課金されない
  • 60. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 60 スポットリクエストと課金 入札額>スポット価格 となったので インスタンス起動 単価 時間 入札額<スポット価格 となったので インスタンス終了 入札額 > スポット価格 となったので インスタンス起動 スポットリクエスト投入 1h 1h 1h <1h スポット価格 入札額 課金額 強制終了時の 1時間未満の 利用分は非課金
  • 61. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 61 時間の制約がなく、 中断しても支障のない タスクを省コストで 代表的なユースケース 複雑な解析や シミュレーション ビックデータ解析 金融モデリングや 経済分析 地理空間 情報の解析 メディア プロセッシング 科学演算 Webクローリング開発や検証
  • 62. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 62 時間の制約がなく、 中断しても支障のない タスクを省コストで 顧客事例
  • 63. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 63 顧客事例(抜粋) ビックデータ解析 メディアプロセッシング 300万/日の”チェックイン”のデータを解析するためにElastic Map Reduceを使用する中で、スポットインスタンスを活用 毎日たまるインターネットサービスのログを解析する中でスポッ トインスタンスを活用し、50%のコスト削減を実現 広告メール等、画像を多用したEメールが各種クライアントでど う表示されるか解析するサービスでスポットインスタンスを活用 し、57%のコスト削減を実現 Webクローリング オンライン上のやり取りを観測して企業のイメージ調査を助ける サービスにてスポットインスタンスを活用し、66%のコスト削減
  • 64. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 64 Elastic MapReduce (EMR)に スポットインスタンス EMR = AWS上のマネージドHadoopサービス 利用シナリオ: ジョブのランニングコストを抑えたい • オンデマンドのm2.xlarge 4ノードで開始 • 処理の高速化のためスポットインスタンスで5ノード追加 4ノードで 起動 Spot 5ノード 追加 Job Flow 残り時間 14時間 残り時間 Job Flow 7時間 スポットなしのコスト 4 instances *14 hrs * $0.50 = $28 スポットありのコスト 4 instances *7 hrs * $0.50 = $13 + 5 instances * 7 hrs * $0.25 = $8.75 Total = $21.75 時間の削減効果: 50% コスト削減効果: ~22% 参考:AWSマイスターシリーズ EMR編 http://slidesha.re/GZ6kmf
  • 65. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 65 EMR+Spotの使いどころ ユースケース Master Instance Group Core Instance Group Task Instance Group 長時間稼働の ジョブフローの高速化 オンデマンド オンデマンド Spot 低コストで 実行したいジョブ Spot Spot Spot クリティカルデータを 扱うジョブ オンデマンド オンデマンド Spot アプリケーションの テスト Spot Spot Spot
  • 66. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 66 Autoscalingにスポットインスタンス Autoscaling = 負荷に合わせて動的にインスタンスを 水平スケールさせるAWSの機能 Autoscalingのローンチコンフィグを作成時に”— spot-price”オプションを設定 > as-create-launch-config spotlc-5cents --image-id ami-XXXXXX --instance-type m1.small --spot-price "0.05" インスタンスがTerminateされても Desired Capacityを満たすよう継続的 に入札が行われる スポット価格が入札額を上回っている場 合はDesired Capacityを満たせない Scale Outパターン http://aws.clouddesignpattern.org 参考:AWSマイスターシリーズ CloudWatch & Auto Scaling編 http://slidesha.re/17DSmC2
  • 67. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 67 日本での最新お客様事例
  • 68. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 68 日本でのお客様事例(PIXTA様) AWS Cloud Strage Day(2013/9/13):PIXTA様の講演資料より抜粋 http://csd.awseventsjapan.com/docs/B02-pixta.pdf SQSと組み合わせて、画像変換でのワーカーとして Spotをご利用
  • 69. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 69 日本でのお客様事例(HDE様) SQSと組み合わせて、解析/インデックスでのワーカー としてSpotをご利用 AWS Cloud Strage Day(2013/9/13):HDE様の講演資料より抜粋 http://csd.awseventsjapan.com/docs/B03-HDE.pdf
  • 70. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 70 大規模Webサイトでの活用事例 Webサーバのインスタンス利用状況 Auto Scale採用によるインスタンス数の効率化 Auto Scale採用によるランニングコスト 用途に合わせた価格モデル採用によるコスト削減
  • 71. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 71 アンチパターン 停止が許されないインスタンスでの利用 • DBやファイルサーバ等 遅延が許されないタスクでの利用 • スポットリクエストは満たされるとは限らない 止まってはいけないサービスを少数のインスタンスで 実行している場合 • 数台のインスタンスで運用される小さめのWebサイト等 • インスタンス終了時のキャパシティへの影響が大きい
  • 72. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 72 入札戦略 1. コスト最小型 • 最低価格で入札 • インスタンス停止にはアーキテクチャで対応 2. 価格履歴順応型 • 直近の価格を観測してそれより少し高い額で入札 • オンデマンド価格より低く設定した閾値以上は入札しない 3. オンデマンドに比べて節約型 • オンデマンドの価格付近に入札 • オンデマンドより高くなったらオンデマンドに切り替え 4. 割り込みリスク最小型 • オンデマンドよりも高く入札 課金額増大リスク  小 インスタンス終了リスク  大 課金額増大リスク  大 インスタンス終了リスク  小
  • 73. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 73 入札戦略:コスト最小型 最低価格で入札 アプリケーション側の工夫でインスタンス停止に対応 • 例:ジョブ管理をインスタンス外のキューやDBにて行い、新 たに起動したインスタンスがジョブを引き継ぐ、など 処理時間よりもコストを重視する場合に 再開後にジョブ を継続 1時間毎の課金スロット のうち、Terminateさ れたスロットは課金さ れない
  • 74. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 74 入札戦略:価格履歴順応型 直近の価格を観測してそれより少し高い額で入札 オンデマンド価格より低く設定した閾値以上は入札し ない SDKやCLIを利用した自動化で実現 価格履歴から 決定する入札額 オンデマンドの 価格より 低く設定した閾値 Vimeoは この戦略で月に よっては50%の コスト節減を実現 (参考資料)
  • 75. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 75 入札戦略:オンデマンドに比べて節約型 オンデマンドの価格付近に入札 オンデマンドより高くなったらオンデマンドに切り替え • システムのキャパシティを維持しつつコストを節約 緑で示した部分が オンデマンドに 比べた節約分に相当 オンデマンド価格。 ここを超えたら オンデマンドで起動
  • 76. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 76 入札戦略:割り込みリスク最小型 オンデマンドよりも高く入札 • 課金額がオンデマンドを超えるリスクを取りつつ • 平均的にはコストを節約 • インスタンスは高い確率で継続稼働 (スポット入札額には上限があります) http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-limits.html 一時的に オンデマンドを 超える課金も 平均的には 大きくコスト を節約 Litmusは この戦略で57%の コスト節減を実現
  • 77. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 77 まとめ
  • 78. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 78 用途に合わせて選べる AWSのご利用オプション オンデマンド・インスタンス(デフォルト) • 初期費用ゼロ・コミットなし・時間課金 リザーブド・インスタンス(オプション) • 予約金の支払いで、時間単価の割引・キャパシティの予約 • 年間を通して大幅な費用削減が可能 スポット・インスタンス(オプション) • 初期費用ゼロ • スポット価格(需要と供給によりリアルタイムに変動)で課金 • 最大で払ってもいい額を決定して「入札」 • 「入札額 >= スポット価格」 インスタンスが利用可 • 「入札額<スポット価格」インスタンスがターミネート
  • 79. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 79 オンデマンド・インスタンスの使いどころ 1年間のうち、40%未満しか使わない場合 *m3.largeインスタンスの場合 インスタンスファミリーにより異なる(詳細は後述) 一時的/一定期間必要なインスタンス • ピーク対応で増減するサーバ • キャンペーンサイト • 開発検証サーバ(スポットも検討)…etc それ以外は、リザーブド・インスタンスも検討ください
  • 80. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 80 オンデマンド以外オプションの用途 リザーブド・インスタンス • 年間通して多くの時間起動しているインスタンス • 常時稼動のDBサーバ • 最低限必要なWeb/APサーバ等 スポット・インスタンス • 時間の制約がなく、中断しても支障のないタスク を実行するインスタンス • Webクローラ • 分散処理のタスクノード等 用途に合わせたオプションの利用でコストの最適化を!
  • 81. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 81
  • 82. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 82 Appendix: 参考資料
  • 83. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 83 Appendix 参考資料 • サービス別リザーブドインスタンス価格表 • EC2 – http://aws.amazon.com/jp/ec2/reserved-instances/ • RDS – http://aws.amazon.com/jp/rds/reserved-instances/ • ElastiCache – http://aws.amazon.com/jp/elasticache/reserved-cache- nodes/ • スポットインスタンス • http://aws.amazon.com/jp/ec2/spot-instances/ • AWSマイスターシリーズ Reloaded AWS Billing編 • http://www.slideshare.net/AmazonWebServicesJapan/ awsaws-billing
  • 84. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 84 Appendix: リザーブド・インスタンスの購入方法
  • 85. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 85 RIの購入方法 AWS Management Consoleにて購入 デフォルトでは月間20インスタンスまで購入可能 [制限増加申請フォーム] http://aws.amazon.com/jp/contact-us/reserved-instances-limit-request/
  • 86. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 86 RIの購入方法 Purchase Reserved Instancesを選択
  • 87. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 87 RIの購入方法 条件を選択して検索
  • 88. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 88 条件に合うRIをカートに追加し購入 Sellerが「AWS」のものが、AWSが販売しているRIです。 Sellerが「3rd Party」のものは、AWS以外が販売しているRIです。 RIの購入方法 予約金 時間単価 予約金含む 時間単価
  • 89. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 89 RI権利を売買できます (米国の銀行口座必要) RI Marketplace →使わなくなったRIの権利を売買できる! ただし売却には米国の銀行口座が必要
  • 90. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 90 Appendix: スポット・インスタンスの利用方法
  • 91. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 91 スポット・インスタンスの利用方法 ~AWSコンソールから
  • 92. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 92 スポット・インスタンスの利用方法 ~AWSコンソールから Request Spot Instancesにてリクエストを作 成 価格の履歴も確認できる
  • 93. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 93 AMI選択後、各種パラメータを設定してスポットリクエストを作成 スポット・インスタンスの利用方法 ~AWSコンソールから 現在の スポット価格 入札額 ローンチグループを設定(任意) ローンチグループを指定されたイ ンスタンスは、同一グループ内の 全スポットリクエストが満たされ た時にのみ起動する。クラスタの 構成等で有用 AZグループを設定(任意) AZグループを指定されたインスタン スは単一のAZでグループ内の全ス ポットリクエストが満たされる場合 にのみ起動する ※AZグループ、ローンチグループ等を指定すると 無指定に比べてリクエストが満たされる可能性は下がる リクエストの有効期 間を指定 (任意) インスタンスが Terminateされた後に再 入札するか否か
  • 94. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 94 スポット・インスタンスの利用方法 ~AWSコンソールから インスタンスタ イプを選択 OSタイプ を選択 Pricing Historyの確認
  • 95. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 95 スポット リクエストの ライフサイクル 開発者向けドキュメント より http://docs.aws.amazo n.com/AWSEC2/latest/ UserGuide/using-spot- instances-bid- status.html
  • 96. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 96 スポットリクエストの状態確認
  • 97. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 97 スポット・インスタンスの利用方法 ~コマンドラインから Task CLI スポット価格の履歴を取得 ec2 describe-spot-price-history スポットリクエストの一覧を取得 ec2 describe-spot-instance-requests スポットインスタンスの入札をリクエスト ec2 request-spot-instances スポットインスタンスの入札をキャンセル ec2 cancel-spot-instance-requests aws ec2 request-spot-instances [--dry-run | --no-dry-run] --spot-price <value> [--instance-count <value>] [--type <value>] [--valid-from <value>] [--valid-until <value>] [--launch-group <value>] [--availability-zone-group <value>] [--launch-specification <value>]
  • 98. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 98 スポット・インスタンスの利用方法 ~各種プログラミング言語から Task API スポット価格の履歴を取得 DescribeSpotPriceHistory スポットリクエストの一覧を取得 DescribeSpotInstanceRequests スポットインスタンスの入札をリクエスト RequestSpotInstances スポットインスタンスの入札をキャンセル CancelSpotInstanceRequests // AmazonEC2Client オブジェクトを作成 AmazonEC2 ec2 = new AmazonEC2Client(); // スポットリクエストを初期化 RequestSpotInstancesRequest requestRequest = new RequestSpotInstancesRequest(); // 入札額を$0.03に設定 requestRequest.setSpotPrice("0.03"); … 中略 …. // RequestSpotInstance APIを呼ぶ RequestSpotInstancesResult requestResult = ec2.requestSpotInstances(requestRequest); Javaの例:
  • 99. © 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 99