SlideShare a Scribd company logo
1 of 57
Download to read offline
© 2012 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マイスターシリーズ
CloudWatch & Auto Scaling
2013.6.26
アマゾンデータサービスジャパン株式会社
ソリューション アーキテクト
今井 雄太
© 2012 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
1. CloudWatch
2. Auto Scaling
アジェンダ
© 2012 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
CloudWatch
© 2012 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.
Copyright © 2012 Amazon Web Services
AWSの各種リソースをモニタリングするためのWebサービス
Amazon CloudWatchとは?
CloudWatch
状況を
レポート
© 2012 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
Amazon CloudWatchの特徴
 サービスごとに定義されたメトリクス(=監視項目)
 メトリクスをベースにアラームを設定可能
EC2 ELB RDS
© 2012 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
Amazon CloudWatchのアラーム設定
WebサーバインスタンスのCPU利用率に対するアラームを作成
• “Create Alarm”をクリック
© 2012 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
Amazon CloudWatchのアラーム設定
アラームが発動する条件を設定
© 2012 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
Amazon CloudWatchのアラーム設定
アラームが発動した際のアクションを指定
• Send Notification  Create New Email Topic
© 2012 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
アラーム時に取れるアクション
通知を送る
• Simple Notification Service (SNS)を使った通知を送る
• 例: Emailの送信、HTTPのAPIを呼ぶ、などが可能
Auto Scaling Policyをトリガーする
インスタンスをStop/Terminateする -- New!
• 例:
• 利用率の低いインスタンスをStopしてコスト削減
• ステータスチェックが失敗したインスタンスをTerminate
© 2012 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クラウドの利用料金を監視・通知できるように
US EastでしかAlarmが作
れないが、全リージョンの
合計金額で監視可能
© 2012 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
請求通知機能(ビリングアラート)
$400の利用料金を超えるとこんな通知メールがきます
©2011 Amazon Web Services May not be reused or redistributed without permission
© 2012 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
カスタムメトリクス
独自のメトリクスを保存し、モニタリング、グラフ化できる
“mon-put-data”コマンドラインツール
“PutMetricData”もしくは、API コール
“mon-list-metrics”でデータを参照
サイズは最大8KB - HTTP GET
40KB for - HTTP POST
$ mon-put-data –metric-name RequestLatency
--namespace "GetStarted“
--timestamp 2010-10-29T20:30:00Z
--value 87 
--unit Milliseconds
GetStartedという架空の
アプリケーションの指定し
た時刻のRequest
Latencyを登録する例
© 2012 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
カスタムメトリクス値の登録例
前頁と同様の例(引数に省略形)
単一のデータポイントではなく統計値を登録する例
$ mon-put-data -m RequestLatency -n "GetStarted" -t 2010-10-29T20:30:00Z
-v 87 -u Milliseconds
$ mon-put-data -m RequestLatency -n "GetStarted" -t 2010-10-29T21:30:00Z
-s "Sum=577,Minimum=65,Maximum=189,SampleCount=5" -u Milliseconds
注: タイムスタンプを省略すれば現時点のデータとして登録される
© 2012 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
カスタムメトリクスの統計値取得
mon-get-statsで統計値を取得可能
もちろんマネージメントコンソールでも
$ mon-get-stats -n GetStarted -m RequestLatency -s “Average” …
© 2012 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
インスタンス監視用サンプルスクリプト
OSでしか取れない情報をカスタムメトリクスとして
CloudWatchに登録
• メモリ利用率、ディスク利用率、などなど
• Cronなどで実行可
• 5分おきにメモリ利用率とディスク利用率を登録するcronの設定例
LinuxとWindows向けに提供
• Linux: http://aws.amazon.com/code/8720044071969977
• Windows: http://aws.amazon.com/code/7932034889155460
*/5 * * * * ~/aws-scripts-mon/mon-put-instance-data.pl --mem-util --disk-space-
util --disk-path=/ --from-cron
© 2012 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
監視をEC2起動時に自動設定する(Linux) 1/2
前頁で紹介したサンプルスクリプト
http://aws.amazon.com/code/8720044071969977
例えば mon-put-instance-data.pl --mem-util と起動す
るとメモリ利用率をCloudWatchにカスタムメトリクスと
してputしてくれる。
Namespace: Sysmte/Linux,
MetricName: MemoryUtilization,
Dimension: InstanceId
© 2012 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
監視をEC2起動時に自動設定する(Linux) 2/2
IAM Roleで認証できるので、CloudWatchのput権限を
持ったRole付けて下記のようなUser Data渡して起動すれ
ば自動的にメモリとディスク利用率をCloudWatchで監視
できる。
#!/bin/sh
cd /home/ec2-user
wget http://ec2-downloads.s3.amazonaws.com/cloudwatch-
samples/CloudWatchMonitoringScripts-v1.1.0.zip
unzip CloudWatchMonitoringScripts-v1.1.0.zip
rm CloudWatchMonitoringScripts-v1.1.0.zip
chown ec2-user:ec2-user aws-scripts-mon
echo "*/5 * * * * ec2-user /home/ec2-user/aws-scripts-mon/mon-put-instance-data.pl --
mem-util --disk-space-util --disk-path=/ --from-cron" >> /etc/crontab
© 2012 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
CloudWatchの料金
もちろん初期費用無しの従量課金
標準の監視は無料
• EC2インスタンスの標準監視(5分間隔)含
 ELB、RDSは1分間隔が無料
課金対象及び料金(2013年6月現在 Tokyoリージョン)
• カスタムメトリクス 1つにつき
• $0.525/月
• アラーム1つにつき
• $0.10/月
• APIリクエスト1000回につき
• $0.0105(Get, List, Putごとに)
• EC2インスタンスの詳細監視(1分間隔)
• $3.675 (インスタンスごとに)
最新の料金詳細は、こちら:
http://aws.amazon.com/jp/cloudwatch/
© 2012 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
CloudWatchの制約
メトリクスの保存は2週間まで
EC2インスタンスのOS内の情報取得にはカスタムメト
リクス登録が必要
データポイントは最短で1分間隔
© 2012 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
必要に応じて他の監視ツールによる補完
ソフトウェア
• Pros: 導入しやすく低コスト
• Cons: 但し運用は自分で
• 例:
• Nagios
• Cacti
• Zabbix
• Munin
監視のサービス
• Pros: 導入しやすく運用コストも不要
• Cons: お任せする分、費用はかかる場合も
• 例:
• New Relic
• satelliz
© 2012 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.
CloudWatchのTIPS
© 2012 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.
APIコールは少しばらつきをもたせる
• カスタムメトリクスの登録や、別のシステムからの状態の取得
などにおいて、同時APIコール数が多くなってくるとスロットリ
ングが発生する。
• APIコール時に数秒のジッタを挟むなどして対応する。
CloudWatchのTips
© 2012 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
Auto Scaling
© 2012 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.
Auto Scalingとは?定義した設定に従って自動でAmazon EC2の台数を増減させるメカニ
ズム
 需要が増加した時はシームレスに増やしてパフォーマンスを維持
 需要が減少した時には自動的に減らしてコスト削減
Auto Scalingとは
Auto scaling GroupCloudWatch
Alarm
Auto Scaling
Elastic
Load Balancing
© 2012 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.
Auto ScalingはELB以外の
環境でも利用できる
Elastic
Load Balancing
Simple Queue Service
© 2012 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.
Netflixの実例
リクエスト数の推移
インスタンス数の推移
CPU利用率
Netflix techblogより:
http://techblog.netflix.com/2012/01/aut
o-scaling-in-amazon-cloud.html
© 2012 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.
サーバの増減に必要な情報
Amazon EC2インスタンスの起動に必要な情報
• AMIは?
• セキュリティグループは?
• キーペアは?
何台インスタンスを起動すべきか
• どのELB配下に?
• どのAZに?
• 最低何台?最大何台?
どういうルールで増やすか(減らすか)
• 例1: 2台増やす(2台減らす)
• 例2: 50%増やす(50%減らす)
Launch Configuration
Autoscaling Group
Autoscaling Policy
© 2012 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.
Auto Scalingの
各コンポーネントと動作
LaunchConfiguration
• AMI ID
• Security Group
• Key pair
• …
Auto scaling
Group
• Min: X
• Max: Y
• ELB: elb-xxx
Autoscaling
Policy
1台増やす
Autoscaling
Policy
1台減らす
has-a
1. アラーム発動
2. アラームに対応
するAuto Scaling
Policy駆動
3. Auto Scalingが
LaunchConfiguration
に従ってインスタンスを
グループに追加
© 2012 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.
Launch Configuration詳細
インスタンスの起動設定を記述必須
• AMI
• インスタンスタイプ
• Security group(s)
任意
• Keypair名
• IAM Profile
• kernel id
• RAMDISK ID
• Spot Price
• Block Device Mappings
• user-data
• ebs-optimized
• Detailed Monitoring
Auto scaling Group
Launch Configuration
Add!
Auto Scaling
どのAMIからどんな設定
で起動するかを決める
インスタンス起動時の設定
© 2012 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.
Auto Scaling Group
Auto scaling Group
Add!
Auto Scaling
起動しているインスタン
スグループの設定
必須
• Launch Configuration
• インスタンス最大数
• インスタンス最小数
• Availability Zones
任意
• Tag
• VPC
• Termination Policy
• Health Check Type
• Desired Capacity
• Health Check Grace Period
• Load Balancer
起動するインスタンス数などの設定
min max
Desired
capacity
© 2012 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.
Auto Scaling Policy
Auto scaling Group
Add!
Auto Scaling
インスタンス追加/削除
時の挙動の設定
Auto Scaling Group辺り25個まで
Adjustする台数
最小Adjust台数
Adjust Type
• ChangeInCapacity: X台増減
• ExactCapacity: X台に指定
• PercentChangeInCapacity: 現キャパシティに対してX%増減
スケール時の動作設定
© 2012 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.
Auto Scalingの設定手順(1/3)
Auto ScalingのCLIツールを取得しておく
• http://aws.amazon.com/developertools/2535
• AWSの新CLIでも実施可能ですが、現状(2013/6)まだド
キュメントが揃っていないのでこちらのツールでご案内しま
す。
まずはLaunch Configを作る
$ as-create-launch-config LAUNCH_CONFIG_NAME
--image-id hogehoge #AMIのID
--instance-type c1.mediuma #インスタンスタイプ
--group fugafuga #セキュリティグループ名
--key foo #keypair名
© 2012 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.
Auto Scalingの設定手順(2/3)
次はAuto Scaling Group作る
• これが完了した時点でAuto Scaling Groupの設定に基いて
インスタンス群が立ち上がってくる
Auto Scaling Policy作る
$ as-create-auto-scaling-group AUTO_SCALING_GROUP_NAME
--launch-configuration LAUNCH_CONFIG_NAME # launch config名
--min-size 4 # 最小台数
--max-size 8 # 最大台数
$ as-put-scaling-policy POLICY_NAME
--type ChangeInCapacity #Scaling Type
--auto-scaling-group AUTO_SCALING_GROUP_NAME #ASG名
--adjustment 3 #スケールアクションごとのアジャスト値
© 2012 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.
最後にCloudWatchのアラームを
Auto Scaling Policyに設定する
Auto Scalingの設定手順(3/3)
© 2012 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.
Auto Scalingの設定手順
次はAuto Scaling Group作る
• これが完了した時点でAuto Scaling Groupの設定に基いて
インスタンス群が立ち上がってくる
Auto Scaling Policy作る
$ as-create-auto-scaling-group AUTO_SCALING_GROUP_NAME
--launch-configuration LAUNCH_CONFIG_NAME # launch config名
--min-size 4 # 最小台数
--max-size 8 # 最大台数
$ as-put-scaling-policy POLICY_NAME
--type ChangeInCapacity #Scaling Type
--auto-scaling-group AUTO_SCALING_GROUP_NAME #ASG名
--adjustment 3 #スケールアクションごとのアジャスト値
© 2012 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.
Scaleしなくても Auto Scaling
Auto Healingとして利用
• Min N, Max Nとして設定すればN台のHealthyなインスタンス
をキープ
Auto Scaling Groupをまとめて監視
min
max
Desired
capacity
© 2012 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.
オンデマンドでAuto Scaling
Auto Scaling Groupのdesired capacityを利用するとある程
度手動でEC2の台数をコントロールできる
Desired Capacityとは、「いま起動しておいてほしい台数」
Auto Scaling Groupの最小台数と最大台数の間で設定可能。
上記のコマンドだと、一旦5台起動している状態になるが、
その後はポリシーに沿ってスケールアウト/インする。
$ as-set-desired-capacity AUTOSCALING_GROUP_NAME --desired-capacity 5
min max
Desired
capacity
© 2012 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.
スケジュールに従ってAuto Scaling
Auto Scalingはスケジュールベースでも設定可能
$ as-put-scheduled-update-group-action ScaleUp 
--auto-scaling-group AUTO_SCALING_GROUP 
--start-time "2013-05-12T08:00:00Z" 
--desired-capacity 3
$ as-put-scheduled-update-group-action scaleup-schedule-year 
--auto-scaling-group AUTO_SCALING_GROUP 
--recurrence “30 0 1 1,6,12 0” 
--desired-capacity 3
Auto Scaling Groupに単発スケジュールを追加
Auto Scaling Groupに再帰的スケジュールを追加
Auto Scaling Groupには複数のスケジュールを追加できる
下記のコマンドで現在の設定を確認できる
$ as-describe-scheduled-actions --auto-scaling-group AUTO_SCALING_GROUP
--headers
詳細
http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/schedule_time.html
© 2012 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.
負荷ベースと
スケジュールベースの使い分け
予測できる負荷はスケジュールベースで対応
• バッチ処理
• 予定されたメディア露出
予測不可な負荷については負荷ベースのスケーリングで
保険をかける
• 必要に応じてスケジュールベースのスケールをしかけた上で、
突発的な負荷に対する対策として負荷ベースの設定をしておく
© 2012 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.
Auto Scalingの高度な操作
Auto Scaling Group内のインスタンスのHealthyステー
タスを外部から制御
• 例:他の監視ツールやインスタンス自身のヘルスチェック結果
をAuto Scalingに反映させる場合など
一時的にAuto Scalingの動きを止める
• 例:不具合インスタンスの調査を行う時など
$ as-set-instance-health i-123abc45d –-status Unhealthy
$ as-suspend-processes MyAutoScalingGroup
© 2012 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.
ELBのヘルスチェックと連携
ELBが行ったヘルスチェックの結果に基づいてAuto
Scalingを駆動
• 例:アプリケーションレベルのヘルスチェック結果を反映した
インスタンスの健全性維持
Grace Periodとは?
• Auto ScalingがELBのヘルスチェックの結果を無視する期間
• 起動直後でELBから見たStatusがOutOfServiceの場合など
• 上記の例ではインスタンス起動後300秒間はAuto Scalingは
Unhealthyと見なさない
$ as-update-auto-scaling-group my-test-asg-lbs –-health-check-type ELB
–-grace-period 300
© 2012 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.
Terminateするインスタンスの選択
標準では以下の手順
1. (Terminationを行うAZの中で)最も古いLaunch
Configurationを使うインスタンスを選択
2. 同条件のインスタンスが複数いたら次の課金が始ま
るタイミングが最も近いインスタンスを選択
3. さらに同条件のインスタンスが複数いたらランダム
に選択してTerminate
カスタムポリシーも選択可(次ページ)
© 2012 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.
カスタムTermination Policy
下記のポリシーを1つまたは複数指定可
• OldestInstance / NewestInstance — インスタンスの起動時刻を
参照して、最も古い / 新しいインスタンスを優先的にTerminate
• OldestLaunchConfiguration — 最も古いLaunch Configuration
を使うインスタンスを優先的にTerminate
• ClosestToNextInstanceHour — 次の課金が始まる時刻が最も近
いインスタンスを優先的にTerminate
• Default --- 標準動作
複数指定した場合は指定順で適用
全ポリシーを適用しても複数インスタンスが候補になったらラ
ンダムに選択
© 2012 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
Autoscalingに
スポットインスタンス
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
スポットインスタンスに関するマイスターWebinarのリンク:
http://www.slideshare.net/AmazonWebServicesJapan/aws-16524731
© 2012 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.
ElasticBeanstalkのWeb UI
45
Autoscalingの閾値を設定
変更  CPUUtilization
変更  Percent
Click
変更  70
変更  30
© 2012 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.
ASGARD by Netflix
https://github.com/Netflix/asgard/wiki/Quick-Start-Guide
© 2012 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.
コードのデプロイメント
© 2012 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
Auto Scaling使うとEC2の
起動タイミングは
任意に制御できない
© 2012 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
うまく利用するにはアプリ
デプロイの自動化をしてお
く必要がある
© 2012 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
Auto Scalingでデプロイ
コード コード
新規サーバーを
デプロイ
Auto ScalingではAMIからサーバーをデプロイするところまで面倒見てくれる
AMI
AMIにコードを埋め込ん
でおけばOK?
ひとまずOK。ただし、コード
を修正するたびにAMIを新しく
する必要があるので、頻繁な
デプロイを行う際は更に対策
が必要。
© 2012 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
Auto Scalingでデプロイ
コード修正のたびにAMIを新しくするのは手間がかかる。
PHPやRuby, node.jsなどのLLを利用しているのであれば・・
コード コード
新規サーバーを
デプロイ
AMI デプロイ時にSCMから最
新のコードを取ってくる
ようにしよう
© 2012 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
Auto Scalingでデプロイ
Launch Configurationに以下のようなuser dataを渡し
ておけば起動時にgitから最新のコードを取得してきてく
れる。
上記は前提として、コードが”/var/www/html”にあっ
て、gitで管理されている場合の話。
より柔軟なデプロイについては下記を参照
http://www.slideshare.net/AmazonWebServicesJapan/20130506-
23096544
#!/bin/sh
cd /var/www/html
sudo -u httpd-user git pull
service httpd restart
© 2012 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.
Auto ScalingのTIPS
© 2012 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.
トリガーにするメトリクスはアプリ次第。
• 一般的にはCPUが多い。
• WebSocketなどの環境ではメモリや接続数も重要。
しきい値もアプリ次第だが、最初は厳し目に設定してお
いて、様子を見ながらゆるくしていくのがベター。
AZのキャパシティは均等に
• 利用するAZの倍数で増やし、減らす、等
© 2012 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.
Auto Scalingの発動はSNSでキャッチできる
• as-put-notification-configuration コマンドを利用することに
より、既存のSNSトピックに対してオートスケーリングイベン
トが発生したときに通知を出すように設定ができる
Auto Scalingは時間がかかる
• 基本的には、オートスケーリングは1台ずつのEC2増減をイテ
レーションで実行していく。
• 3台増やす際には、1台増やして、cool down periodを待って、2
台目増やして・・・という具合
• as-set-desired-capacityを--no-honor-cooldownオプション
付けて発行すると、一度に複数台の増減をすることも可能。
© 2012 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.
増やす時は速く
• サービスのレスポンスを落とさずに
減らす時はゆっくり
それって本当にAuto Scaling必要か?ともう一度確認し
てみる
• Auto Scalingは銀の弾丸ではないので、どんなユースケースに
もマッチするわけではない。
• デプロイや監視、しきい値設定など、それなりに手間を掛けて
育てる必要がある。
• 最初は、緩めのしきい値でアラームからメールを飛ばして対応、
から始めるのもアリ。
© 2012 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実践入門1
トレーニング
AWS実践入門2
トレーニング
Architecting
on AWS
トレーニング
AWS 認定ソリュー
ションアーキテクト-
アソシエイトレベル
認定試験
http://aws.amazon.com/jp/training/

More Related Content

What's hot

AWSのログ管理ベストプラクティス
AWSのログ管理ベストプラクティスAWSのログ管理ベストプラクティス
AWSのログ管理ベストプラクティスAkihiro Kuwano
 
動的コンテンツをオリジンとしたCloudFrontを構築してみた
動的コンテンツをオリジンとしたCloudFrontを構築してみた動的コンテンツをオリジンとしたCloudFrontを構築してみた
動的コンテンツをオリジンとしたCloudFrontを構築してみたTaiki Kawamura
 
3分でわかるAzureでのService Principal
3分でわかるAzureでのService Principal3分でわかるAzureでのService Principal
3分でわかるAzureでのService PrincipalToru Makabe
 
20190911 AWS Black Belt Online Seminar AWS Batch
20190911 AWS Black Belt Online Seminar AWS Batch20190911 AWS Black Belt Online Seminar AWS Batch
20190911 AWS Black Belt Online Seminar AWS BatchAmazon Web Services Japan
 
AWS Black Belt Online Seminar 2017 Amazon DynamoDB
AWS Black Belt Online Seminar 2017 Amazon DynamoDB AWS Black Belt Online Seminar 2017 Amazon DynamoDB
AWS Black Belt Online Seminar 2017 Amazon DynamoDB Amazon Web Services Japan
 
Amazon Aurora - Auroraの止まらない進化とその中身
Amazon Aurora - Auroraの止まらない進化とその中身Amazon Aurora - Auroraの止まらない進化とその中身
Amazon Aurora - Auroraの止まらない進化とその中身Amazon Web Services Japan
 
AWS X-Rayによるアプリケーションの分析とデバッグ
AWS X-Rayによるアプリケーションの分析とデバッグAWS X-Rayによるアプリケーションの分析とデバッグ
AWS X-Rayによるアプリケーションの分析とデバッグAmazon Web Services Japan
 
AWS Black Belt Online Seminar AWS Direct Connect
AWS Black Belt Online Seminar AWS Direct ConnectAWS Black Belt Online Seminar AWS Direct Connect
AWS Black Belt Online Seminar AWS Direct ConnectAmazon Web Services Japan
 
20210127 今日から始めるイベントドリブンアーキテクチャ AWS Expert Online #13
20210127 今日から始めるイベントドリブンアーキテクチャ AWS Expert Online #1320210127 今日から始めるイベントドリブンアーキテクチャ AWS Expert Online #13
20210127 今日から始めるイベントドリブンアーキテクチャ AWS Expert Online #13Amazon Web Services Japan
 
20200630 AWS Black Belt Online Seminar Amazon Cognito
20200630 AWS Black Belt Online Seminar Amazon Cognito20200630 AWS Black Belt Online Seminar Amazon Cognito
20200630 AWS Black Belt Online Seminar Amazon CognitoAmazon Web Services Japan
 
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
 
コンテナにおけるパフォーマンス調査でハマった話
コンテナにおけるパフォーマンス調査でハマった話コンテナにおけるパフォーマンス調査でハマった話
コンテナにおけるパフォーマンス調査でハマった話Yuta Shimada
 
20200826 AWS Black Belt Online Seminar AWS CloudFormation
20200826 AWS Black Belt Online Seminar AWS CloudFormation 20200826 AWS Black Belt Online Seminar AWS CloudFormation
20200826 AWS Black Belt Online Seminar AWS CloudFormation Amazon Web Services Japan
 
AWS Black Belt Online Seminar 2017 Auto Scaling
AWS Black Belt Online Seminar 2017 Auto ScalingAWS Black Belt Online Seminar 2017 Auto Scaling
AWS Black Belt Online Seminar 2017 Auto ScalingAmazon Web Services Japan
 
20190320 AWS Black Belt Online Seminar Amazon EBS
20190320 AWS Black Belt Online Seminar Amazon EBS20190320 AWS Black Belt Online Seminar Amazon EBS
20190320 AWS Black Belt Online Seminar Amazon EBSAmazon Web Services Japan
 
[AKIBA.AWS] VPCをネットワーク図で理解してみる
[AKIBA.AWS] VPCをネットワーク図で理解してみる[AKIBA.AWS] VPCをネットワーク図で理解してみる
[AKIBA.AWS] VPCをネットワーク図で理解してみるShuji Kikuchi
 

What's hot (20)

AWSのログ管理ベストプラクティス
AWSのログ管理ベストプラクティスAWSのログ管理ベストプラクティス
AWSのログ管理ベストプラクティス
 
動的コンテンツをオリジンとしたCloudFrontを構築してみた
動的コンテンツをオリジンとしたCloudFrontを構築してみた動的コンテンツをオリジンとしたCloudFrontを構築してみた
動的コンテンツをオリジンとしたCloudFrontを構築してみた
 
AWSからのメール送信
AWSからのメール送信AWSからのメール送信
AWSからのメール送信
 
3分でわかるAzureでのService Principal
3分でわかるAzureでのService Principal3分でわかるAzureでのService Principal
3分でわかるAzureでのService Principal
 
20190911 AWS Black Belt Online Seminar AWS Batch
20190911 AWS Black Belt Online Seminar AWS Batch20190911 AWS Black Belt Online Seminar AWS Batch
20190911 AWS Black Belt Online Seminar AWS Batch
 
AWSの課金体系
AWSの課金体系AWSの課金体系
AWSの課金体系
 
AWS Black Belt Online Seminar 2017 Amazon DynamoDB
AWS Black Belt Online Seminar 2017 Amazon DynamoDB AWS Black Belt Online Seminar 2017 Amazon DynamoDB
AWS Black Belt Online Seminar 2017 Amazon DynamoDB
 
Amazon Aurora - Auroraの止まらない進化とその中身
Amazon Aurora - Auroraの止まらない進化とその中身Amazon Aurora - Auroraの止まらない進化とその中身
Amazon Aurora - Auroraの止まらない進化とその中身
 
AWS X-Rayによるアプリケーションの分析とデバッグ
AWS X-Rayによるアプリケーションの分析とデバッグAWS X-Rayによるアプリケーションの分析とデバッグ
AWS X-Rayによるアプリケーションの分析とデバッグ
 
AWS Black Belt Online Seminar AWS Direct Connect
AWS Black Belt Online Seminar AWS Direct ConnectAWS Black Belt Online Seminar AWS Direct Connect
AWS Black Belt Online Seminar AWS Direct Connect
 
20210127 今日から始めるイベントドリブンアーキテクチャ AWS Expert Online #13
20210127 今日から始めるイベントドリブンアーキテクチャ AWS Expert Online #1320210127 今日から始めるイベントドリブンアーキテクチャ AWS Expert Online #13
20210127 今日から始めるイベントドリブンアーキテクチャ AWS Expert Online #13
 
AWS Black Belt Techシリーズ AWS IAM
AWS Black Belt Techシリーズ AWS IAMAWS Black Belt Techシリーズ AWS IAM
AWS Black Belt Techシリーズ AWS IAM
 
20200630 AWS Black Belt Online Seminar Amazon Cognito
20200630 AWS Black Belt Online Seminar Amazon Cognito20200630 AWS Black Belt Online Seminar Amazon Cognito
20200630 AWS Black Belt Online Seminar Amazon Cognito
 
Azure Key Vault
Azure Key VaultAzure Key Vault
Azure Key Vault
 
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
 
コンテナにおけるパフォーマンス調査でハマった話
コンテナにおけるパフォーマンス調査でハマった話コンテナにおけるパフォーマンス調査でハマった話
コンテナにおけるパフォーマンス調査でハマった話
 
20200826 AWS Black Belt Online Seminar AWS CloudFormation
20200826 AWS Black Belt Online Seminar AWS CloudFormation 20200826 AWS Black Belt Online Seminar AWS CloudFormation
20200826 AWS Black Belt Online Seminar AWS CloudFormation
 
AWS Black Belt Online Seminar 2017 Auto Scaling
AWS Black Belt Online Seminar 2017 Auto ScalingAWS Black Belt Online Seminar 2017 Auto Scaling
AWS Black Belt Online Seminar 2017 Auto Scaling
 
20190320 AWS Black Belt Online Seminar Amazon EBS
20190320 AWS Black Belt Online Seminar Amazon EBS20190320 AWS Black Belt Online Seminar Amazon EBS
20190320 AWS Black Belt Online Seminar Amazon EBS
 
[AKIBA.AWS] VPCをネットワーク図で理解してみる
[AKIBA.AWS] VPCをネットワーク図で理解してみる[AKIBA.AWS] VPCをネットワーク図で理解してみる
[AKIBA.AWS] VPCをネットワーク図で理解してみる
 

Similar to [AWSマイスターシリーズ]Amazon CloudWatch & Auto Scaling

はじめてのアマゾンウェブサービス @ JAWS DAYS 2014
はじめてのアマゾンウェブサービス @ JAWS DAYS 2014はじめてのアマゾンウェブサービス @ JAWS DAYS 2014
はじめてのアマゾンウェブサービス @ JAWS DAYS 2014Yasuhiro Horiuchi
 
[AWSマイスターシリーズ] AWS Billingについて
[AWSマイスターシリーズ] AWS Billingについて[AWSマイスターシリーズ] AWS Billingについて
[AWSマイスターシリーズ] AWS BillingについてAmazon Web Services Japan
 
[AWSマイスターシリーズ] Amazon Elastic Compute Cloud (EC2) Windows編
[AWSマイスターシリーズ] Amazon Elastic Compute Cloud (EC2) Windows編[AWSマイスターシリーズ] Amazon Elastic Compute Cloud (EC2) Windows編
[AWSマイスターシリーズ] Amazon Elastic Compute Cloud (EC2) Windows編Amazon Web Services Japan
 
20140924イグレックcioセミナーpublic
20140924イグレックcioセミナーpublic20140924イグレックcioセミナーpublic
20140924イグレックcioセミナーpublicjunkoy66
 
Aws st 20130617-auto_scaling
Aws st 20130617-auto_scalingAws st 20130617-auto_scaling
Aws st 20130617-auto_scalingMakoto Uehara
 
[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonight
[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonight[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonight
[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonightAmazon Web Services Japan
 
[AWSマイスターシリーズ] AWS CloudFormation
[AWSマイスターシリーズ] AWS CloudFormation[AWSマイスターシリーズ] AWS CloudFormation
[AWSマイスターシリーズ] AWS CloudFormationAmazon Web Services Japan
 
Modernizing Big Data Workload Using Amazon EMR & AWS Glue
Modernizing Big Data Workload Using Amazon EMR & AWS GlueModernizing Big Data Workload Using Amazon EMR & AWS Glue
Modernizing Big Data Workload Using Amazon EMR & AWS GlueNoritaka Sekiyama
 
AWS Black Belt Techシリーズ Amazon Elastic Compute Cloud (Amazon EC2)
AWS Black Belt Techシリーズ Amazon Elastic Compute Cloud (Amazon EC2)AWS Black Belt Techシリーズ Amazon Elastic Compute Cloud (Amazon EC2)
AWS Black Belt Techシリーズ Amazon Elastic Compute Cloud (Amazon EC2)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
 
いまさら聞けない Amazon EC2
いまさら聞けない Amazon EC2いまさら聞けない Amazon EC2
いまさら聞けない Amazon EC2Yasuhiro Matsuo
 
Introduction to New CloudWatch Agent
Introduction to New CloudWatch AgentIntroduction to New CloudWatch Agent
Introduction to New CloudWatch AgentNoritaka Sekiyama
 
AWSについて @ JAWS-UG 沖縄 CMS祭り!
AWSについて @ JAWS-UG 沖縄 CMS祭り!AWSについて @ JAWS-UG 沖縄 CMS祭り!
AWSについて @ JAWS-UG 沖縄 CMS祭り!Yasuhiro Horiuchi
 
[AWSマイスターシリーズ] AWS Elastic Beanstalk
[AWSマイスターシリーズ] AWS Elastic Beanstalk[AWSマイスターシリーズ] AWS Elastic Beanstalk
[AWSマイスターシリーズ] AWS Elastic BeanstalkAmazon Web Services Japan
 
[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonight
[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonight[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonight
[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonightAmazon Web Services Japan
 
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マイスターシリーズ] AWS Client Side SDK -Android,iOS & JavaScript-
[AWSマイスターシリーズ] AWS Client Side SDK -Android,iOS & JavaScript-[AWSマイスターシリーズ] AWS Client Side SDK -Android,iOS & JavaScript-
[AWSマイスターシリーズ] AWS Client Side SDK -Android,iOS & JavaScript-Amazon Web Services Japan
 
GoodBye AD FS - Azure Active Directory Only の認証方式へ切り替えよう!
GoodBye AD FS - Azure Active Directory Only の認証方式へ切り替えよう!GoodBye AD FS - Azure Active Directory Only の認証方式へ切り替えよう!
GoodBye AD FS - Azure Active Directory Only の認証方式へ切り替えよう!Yusuke Kodama
 
20180613 AWS Black Belt Online Seminar AWS Cloud9 入門
20180613 AWS Black Belt Online Seminar AWS Cloud9 入門20180613 AWS Black Belt Online Seminar AWS Cloud9 入門
20180613 AWS Black Belt Online Seminar AWS Cloud9 入門Amazon Web Services Japan
 
デフォルトAWS時代にインフラエンジニアはどう向き合うべきか?
デフォルトAWS時代にインフラエンジニアはどう向き合うべきか?デフォルトAWS時代にインフラエンジニアはどう向き合うべきか?
デフォルトAWS時代にインフラエンジニアはどう向き合うべきか?Yasuhiro Horiuchi
 

Similar to [AWSマイスターシリーズ]Amazon CloudWatch & Auto Scaling (20)

はじめてのアマゾンウェブサービス @ JAWS DAYS 2014
はじめてのアマゾンウェブサービス @ JAWS DAYS 2014はじめてのアマゾンウェブサービス @ JAWS DAYS 2014
はじめてのアマゾンウェブサービス @ JAWS DAYS 2014
 
[AWSマイスターシリーズ] AWS Billingについて
[AWSマイスターシリーズ] AWS Billingについて[AWSマイスターシリーズ] AWS Billingについて
[AWSマイスターシリーズ] AWS Billingについて
 
[AWSマイスターシリーズ] Amazon Elastic Compute Cloud (EC2) Windows編
[AWSマイスターシリーズ] Amazon Elastic Compute Cloud (EC2) Windows編[AWSマイスターシリーズ] Amazon Elastic Compute Cloud (EC2) Windows編
[AWSマイスターシリーズ] Amazon Elastic Compute Cloud (EC2) Windows編
 
20140924イグレックcioセミナーpublic
20140924イグレックcioセミナーpublic20140924イグレックcioセミナーpublic
20140924イグレックcioセミナーpublic
 
Aws st 20130617-auto_scaling
Aws st 20130617-auto_scalingAws st 20130617-auto_scaling
Aws st 20130617-auto_scaling
 
[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonight
[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonight[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonight
[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonight
 
[AWSマイスターシリーズ] AWS CloudFormation
[AWSマイスターシリーズ] AWS CloudFormation[AWSマイスターシリーズ] AWS CloudFormation
[AWSマイスターシリーズ] AWS CloudFormation
 
Modernizing Big Data Workload Using Amazon EMR & AWS Glue
Modernizing Big Data Workload Using Amazon EMR & AWS GlueModernizing Big Data Workload Using Amazon EMR & AWS Glue
Modernizing Big Data Workload Using Amazon EMR & AWS Glue
 
AWS Black Belt Techシリーズ Amazon Elastic Compute Cloud (Amazon EC2)
AWS Black Belt Techシリーズ Amazon Elastic Compute Cloud (Amazon EC2)AWS Black Belt Techシリーズ Amazon Elastic Compute Cloud (Amazon EC2)
AWS Black Belt Techシリーズ Amazon Elastic Compute Cloud (Amazon EC2)
 
[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 EC2
いまさら聞けない Amazon EC2いまさら聞けない Amazon EC2
いまさら聞けない Amazon EC2
 
Introduction to New CloudWatch Agent
Introduction to New CloudWatch AgentIntroduction to New CloudWatch Agent
Introduction to New CloudWatch Agent
 
AWSについて @ JAWS-UG 沖縄 CMS祭り!
AWSについて @ JAWS-UG 沖縄 CMS祭り!AWSについて @ JAWS-UG 沖縄 CMS祭り!
AWSについて @ JAWS-UG 沖縄 CMS祭り!
 
[AWSマイスターシリーズ] AWS Elastic Beanstalk
[AWSマイスターシリーズ] AWS Elastic Beanstalk[AWSマイスターシリーズ] AWS Elastic Beanstalk
[AWSマイスターシリーズ] AWS Elastic Beanstalk
 
[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonight
[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonight[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonight
[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonight
 
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マイスターシリーズ] AWS Client Side SDK -Android,iOS & JavaScript-
[AWSマイスターシリーズ] AWS Client Side SDK -Android,iOS & JavaScript-[AWSマイスターシリーズ] AWS Client Side SDK -Android,iOS & JavaScript-
[AWSマイスターシリーズ] AWS Client Side SDK -Android,iOS & JavaScript-
 
GoodBye AD FS - Azure Active Directory Only の認証方式へ切り替えよう!
GoodBye AD FS - Azure Active Directory Only の認証方式へ切り替えよう!GoodBye AD FS - Azure Active Directory Only の認証方式へ切り替えよう!
GoodBye AD FS - Azure Active Directory Only の認証方式へ切り替えよう!
 
20180613 AWS Black Belt Online Seminar AWS Cloud9 入門
20180613 AWS Black Belt Online Seminar AWS Cloud9 入門20180613 AWS Black Belt Online Seminar AWS Cloud9 入門
20180613 AWS Black Belt Online Seminar AWS Cloud9 入門
 
デフォルトAWS時代にインフラエンジニアはどう向き合うべきか?
デフォルトAWS時代にインフラエンジニアはどう向き合うべきか?デフォルトAWS時代にインフラエンジニアはどう向き合うべきか?
デフォルトAWS時代にインフラエンジニアはどう向き合うべきか?
 

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のご紹介
 

Recently uploaded

TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案sugiuralab
 
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfAWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfFumieNakayama
 
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfクラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfFumieNakayama
 
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?akihisamiyanaga1
 
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)Hiroki Ichikura
 
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)UEHARA, Tetsutaro
 
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineerYuki Kikuchi
 
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...博三 太田
 
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版) 2024年4月作成
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版) 2024年4月作成業務で生成AIを活用したい人のための生成AI入門講座(社外公開版) 2024年4月作成
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版) 2024年4月作成Hiroshi Tomioka
 

Recently uploaded (9)

TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
 
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfAWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
 
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfクラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
 
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
 
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
 
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
 
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
 
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
 
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版) 2024年4月作成
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版) 2024年4月作成業務で生成AIを活用したい人のための生成AI入門講座(社外公開版) 2024年4月作成
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版) 2024年4月作成
 

[AWSマイスターシリーズ]Amazon CloudWatch & Auto Scaling

  • 1. © 2012 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マイスターシリーズ CloudWatch & Auto Scaling 2013.6.26 アマゾンデータサービスジャパン株式会社 ソリューション アーキテクト 今井 雄太
  • 2. © 2012 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 1. CloudWatch 2. Auto Scaling アジェンダ
  • 3. © 2012 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 CloudWatch
  • 4. © 2012 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. Copyright © 2012 Amazon Web Services AWSの各種リソースをモニタリングするためのWebサービス Amazon CloudWatchとは? CloudWatch 状況を レポート
  • 5. © 2012 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 Amazon CloudWatchの特徴  サービスごとに定義されたメトリクス(=監視項目)  メトリクスをベースにアラームを設定可能 EC2 ELB RDS
  • 6. © 2012 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 Amazon CloudWatchのアラーム設定 WebサーバインスタンスのCPU利用率に対するアラームを作成 • “Create Alarm”をクリック
  • 7. © 2012 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 Amazon CloudWatchのアラーム設定 アラームが発動する条件を設定
  • 8. © 2012 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 Amazon CloudWatchのアラーム設定 アラームが発動した際のアクションを指定 • Send Notification  Create New Email Topic
  • 9. © 2012 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 アラーム時に取れるアクション 通知を送る • Simple Notification Service (SNS)を使った通知を送る • 例: Emailの送信、HTTPのAPIを呼ぶ、などが可能 Auto Scaling Policyをトリガーする インスタンスをStop/Terminateする -- New! • 例: • 利用率の低いインスタンスをStopしてコスト削減 • ステータスチェックが失敗したインスタンスをTerminate
  • 10. © 2012 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クラウドの利用料金を監視・通知できるように US EastでしかAlarmが作 れないが、全リージョンの 合計金額で監視可能
  • 11. © 2012 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 請求通知機能(ビリングアラート) $400の利用料金を超えるとこんな通知メールがきます ©2011 Amazon Web Services May not be reused or redistributed without permission
  • 12. © 2012 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 カスタムメトリクス 独自のメトリクスを保存し、モニタリング、グラフ化できる “mon-put-data”コマンドラインツール “PutMetricData”もしくは、API コール “mon-list-metrics”でデータを参照 サイズは最大8KB - HTTP GET 40KB for - HTTP POST $ mon-put-data –metric-name RequestLatency --namespace "GetStarted“ --timestamp 2010-10-29T20:30:00Z --value 87 --unit Milliseconds GetStartedという架空の アプリケーションの指定し た時刻のRequest Latencyを登録する例
  • 13. © 2012 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 カスタムメトリクス値の登録例 前頁と同様の例(引数に省略形) 単一のデータポイントではなく統計値を登録する例 $ mon-put-data -m RequestLatency -n "GetStarted" -t 2010-10-29T20:30:00Z -v 87 -u Milliseconds $ mon-put-data -m RequestLatency -n "GetStarted" -t 2010-10-29T21:30:00Z -s "Sum=577,Minimum=65,Maximum=189,SampleCount=5" -u Milliseconds 注: タイムスタンプを省略すれば現時点のデータとして登録される
  • 14. © 2012 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 カスタムメトリクスの統計値取得 mon-get-statsで統計値を取得可能 もちろんマネージメントコンソールでも $ mon-get-stats -n GetStarted -m RequestLatency -s “Average” …
  • 15. © 2012 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 インスタンス監視用サンプルスクリプト OSでしか取れない情報をカスタムメトリクスとして CloudWatchに登録 • メモリ利用率、ディスク利用率、などなど • Cronなどで実行可 • 5分おきにメモリ利用率とディスク利用率を登録するcronの設定例 LinuxとWindows向けに提供 • Linux: http://aws.amazon.com/code/8720044071969977 • Windows: http://aws.amazon.com/code/7932034889155460 */5 * * * * ~/aws-scripts-mon/mon-put-instance-data.pl --mem-util --disk-space- util --disk-path=/ --from-cron
  • 16. © 2012 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 監視をEC2起動時に自動設定する(Linux) 1/2 前頁で紹介したサンプルスクリプト http://aws.amazon.com/code/8720044071969977 例えば mon-put-instance-data.pl --mem-util と起動す るとメモリ利用率をCloudWatchにカスタムメトリクスと してputしてくれる。 Namespace: Sysmte/Linux, MetricName: MemoryUtilization, Dimension: InstanceId
  • 17. © 2012 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 監視をEC2起動時に自動設定する(Linux) 2/2 IAM Roleで認証できるので、CloudWatchのput権限を 持ったRole付けて下記のようなUser Data渡して起動すれ ば自動的にメモリとディスク利用率をCloudWatchで監視 できる。 #!/bin/sh cd /home/ec2-user wget http://ec2-downloads.s3.amazonaws.com/cloudwatch- samples/CloudWatchMonitoringScripts-v1.1.0.zip unzip CloudWatchMonitoringScripts-v1.1.0.zip rm CloudWatchMonitoringScripts-v1.1.0.zip chown ec2-user:ec2-user aws-scripts-mon echo "*/5 * * * * ec2-user /home/ec2-user/aws-scripts-mon/mon-put-instance-data.pl -- mem-util --disk-space-util --disk-path=/ --from-cron" >> /etc/crontab
  • 18. © 2012 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 CloudWatchの料金 もちろん初期費用無しの従量課金 標準の監視は無料 • EC2インスタンスの標準監視(5分間隔)含  ELB、RDSは1分間隔が無料 課金対象及び料金(2013年6月現在 Tokyoリージョン) • カスタムメトリクス 1つにつき • $0.525/月 • アラーム1つにつき • $0.10/月 • APIリクエスト1000回につき • $0.0105(Get, List, Putごとに) • EC2インスタンスの詳細監視(1分間隔) • $3.675 (インスタンスごとに) 最新の料金詳細は、こちら: http://aws.amazon.com/jp/cloudwatch/
  • 19. © 2012 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 CloudWatchの制約 メトリクスの保存は2週間まで EC2インスタンスのOS内の情報取得にはカスタムメト リクス登録が必要 データポイントは最短で1分間隔
  • 20. © 2012 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 必要に応じて他の監視ツールによる補完 ソフトウェア • Pros: 導入しやすく低コスト • Cons: 但し運用は自分で • 例: • Nagios • Cacti • Zabbix • Munin 監視のサービス • Pros: 導入しやすく運用コストも不要 • Cons: お任せする分、費用はかかる場合も • 例: • New Relic • satelliz
  • 21. © 2012 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. CloudWatchのTIPS
  • 22. © 2012 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. APIコールは少しばらつきをもたせる • カスタムメトリクスの登録や、別のシステムからの状態の取得 などにおいて、同時APIコール数が多くなってくるとスロットリ ングが発生する。 • APIコール時に数秒のジッタを挟むなどして対応する。 CloudWatchのTips
  • 23. © 2012 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 Auto Scaling
  • 24. © 2012 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. Auto Scalingとは?定義した設定に従って自動でAmazon EC2の台数を増減させるメカニ ズム  需要が増加した時はシームレスに増やしてパフォーマンスを維持  需要が減少した時には自動的に減らしてコスト削減 Auto Scalingとは Auto scaling GroupCloudWatch Alarm Auto Scaling Elastic Load Balancing
  • 25. © 2012 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. Auto ScalingはELB以外の 環境でも利用できる Elastic Load Balancing Simple Queue Service
  • 26. © 2012 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. Netflixの実例 リクエスト数の推移 インスタンス数の推移 CPU利用率 Netflix techblogより: http://techblog.netflix.com/2012/01/aut o-scaling-in-amazon-cloud.html
  • 27. © 2012 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. サーバの増減に必要な情報 Amazon EC2インスタンスの起動に必要な情報 • AMIは? • セキュリティグループは? • キーペアは? 何台インスタンスを起動すべきか • どのELB配下に? • どのAZに? • 最低何台?最大何台? どういうルールで増やすか(減らすか) • 例1: 2台増やす(2台減らす) • 例2: 50%増やす(50%減らす) Launch Configuration Autoscaling Group Autoscaling Policy
  • 28. © 2012 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. Auto Scalingの 各コンポーネントと動作 LaunchConfiguration • AMI ID • Security Group • Key pair • … Auto scaling Group • Min: X • Max: Y • ELB: elb-xxx Autoscaling Policy 1台増やす Autoscaling Policy 1台減らす has-a 1. アラーム発動 2. アラームに対応 するAuto Scaling Policy駆動 3. Auto Scalingが LaunchConfiguration に従ってインスタンスを グループに追加
  • 29. © 2012 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. Launch Configuration詳細 インスタンスの起動設定を記述必須 • AMI • インスタンスタイプ • Security group(s) 任意 • Keypair名 • IAM Profile • kernel id • RAMDISK ID • Spot Price • Block Device Mappings • user-data • ebs-optimized • Detailed Monitoring Auto scaling Group Launch Configuration Add! Auto Scaling どのAMIからどんな設定 で起動するかを決める インスタンス起動時の設定
  • 30. © 2012 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. Auto Scaling Group Auto scaling Group Add! Auto Scaling 起動しているインスタン スグループの設定 必須 • Launch Configuration • インスタンス最大数 • インスタンス最小数 • Availability Zones 任意 • Tag • VPC • Termination Policy • Health Check Type • Desired Capacity • Health Check Grace Period • Load Balancer 起動するインスタンス数などの設定 min max Desired capacity
  • 31. © 2012 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. Auto Scaling Policy Auto scaling Group Add! Auto Scaling インスタンス追加/削除 時の挙動の設定 Auto Scaling Group辺り25個まで Adjustする台数 最小Adjust台数 Adjust Type • ChangeInCapacity: X台増減 • ExactCapacity: X台に指定 • PercentChangeInCapacity: 現キャパシティに対してX%増減 スケール時の動作設定
  • 32. © 2012 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. Auto Scalingの設定手順(1/3) Auto ScalingのCLIツールを取得しておく • http://aws.amazon.com/developertools/2535 • AWSの新CLIでも実施可能ですが、現状(2013/6)まだド キュメントが揃っていないのでこちらのツールでご案内しま す。 まずはLaunch Configを作る $ as-create-launch-config LAUNCH_CONFIG_NAME --image-id hogehoge #AMIのID --instance-type c1.mediuma #インスタンスタイプ --group fugafuga #セキュリティグループ名 --key foo #keypair名
  • 33. © 2012 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. Auto Scalingの設定手順(2/3) 次はAuto Scaling Group作る • これが完了した時点でAuto Scaling Groupの設定に基いて インスタンス群が立ち上がってくる Auto Scaling Policy作る $ as-create-auto-scaling-group AUTO_SCALING_GROUP_NAME --launch-configuration LAUNCH_CONFIG_NAME # launch config名 --min-size 4 # 最小台数 --max-size 8 # 最大台数 $ as-put-scaling-policy POLICY_NAME --type ChangeInCapacity #Scaling Type --auto-scaling-group AUTO_SCALING_GROUP_NAME #ASG名 --adjustment 3 #スケールアクションごとのアジャスト値
  • 34. © 2012 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. 最後にCloudWatchのアラームを Auto Scaling Policyに設定する Auto Scalingの設定手順(3/3)
  • 35. © 2012 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. Auto Scalingの設定手順 次はAuto Scaling Group作る • これが完了した時点でAuto Scaling Groupの設定に基いて インスタンス群が立ち上がってくる Auto Scaling Policy作る $ as-create-auto-scaling-group AUTO_SCALING_GROUP_NAME --launch-configuration LAUNCH_CONFIG_NAME # launch config名 --min-size 4 # 最小台数 --max-size 8 # 最大台数 $ as-put-scaling-policy POLICY_NAME --type ChangeInCapacity #Scaling Type --auto-scaling-group AUTO_SCALING_GROUP_NAME #ASG名 --adjustment 3 #スケールアクションごとのアジャスト値
  • 36. © 2012 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. Scaleしなくても Auto Scaling Auto Healingとして利用 • Min N, Max Nとして設定すればN台のHealthyなインスタンス をキープ Auto Scaling Groupをまとめて監視 min max Desired capacity
  • 37. © 2012 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. オンデマンドでAuto Scaling Auto Scaling Groupのdesired capacityを利用するとある程 度手動でEC2の台数をコントロールできる Desired Capacityとは、「いま起動しておいてほしい台数」 Auto Scaling Groupの最小台数と最大台数の間で設定可能。 上記のコマンドだと、一旦5台起動している状態になるが、 その後はポリシーに沿ってスケールアウト/インする。 $ as-set-desired-capacity AUTOSCALING_GROUP_NAME --desired-capacity 5 min max Desired capacity
  • 38. © 2012 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. スケジュールに従ってAuto Scaling Auto Scalingはスケジュールベースでも設定可能 $ as-put-scheduled-update-group-action ScaleUp --auto-scaling-group AUTO_SCALING_GROUP --start-time "2013-05-12T08:00:00Z" --desired-capacity 3 $ as-put-scheduled-update-group-action scaleup-schedule-year --auto-scaling-group AUTO_SCALING_GROUP --recurrence “30 0 1 1,6,12 0” --desired-capacity 3 Auto Scaling Groupに単発スケジュールを追加 Auto Scaling Groupに再帰的スケジュールを追加 Auto Scaling Groupには複数のスケジュールを追加できる 下記のコマンドで現在の設定を確認できる $ as-describe-scheduled-actions --auto-scaling-group AUTO_SCALING_GROUP --headers 詳細 http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/schedule_time.html
  • 39. © 2012 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. © 2012 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. Auto Scalingの高度な操作 Auto Scaling Group内のインスタンスのHealthyステー タスを外部から制御 • 例:他の監視ツールやインスタンス自身のヘルスチェック結果 をAuto Scalingに反映させる場合など 一時的にAuto Scalingの動きを止める • 例:不具合インスタンスの調査を行う時など $ as-set-instance-health i-123abc45d –-status Unhealthy $ as-suspend-processes MyAutoScalingGroup
  • 41. © 2012 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. ELBのヘルスチェックと連携 ELBが行ったヘルスチェックの結果に基づいてAuto Scalingを駆動 • 例:アプリケーションレベルのヘルスチェック結果を反映した インスタンスの健全性維持 Grace Periodとは? • Auto ScalingがELBのヘルスチェックの結果を無視する期間 • 起動直後でELBから見たStatusがOutOfServiceの場合など • 上記の例ではインスタンス起動後300秒間はAuto Scalingは Unhealthyと見なさない $ as-update-auto-scaling-group my-test-asg-lbs –-health-check-type ELB –-grace-period 300
  • 42. © 2012 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. Terminateするインスタンスの選択 標準では以下の手順 1. (Terminationを行うAZの中で)最も古いLaunch Configurationを使うインスタンスを選択 2. 同条件のインスタンスが複数いたら次の課金が始ま るタイミングが最も近いインスタンスを選択 3. さらに同条件のインスタンスが複数いたらランダム に選択してTerminate カスタムポリシーも選択可(次ページ)
  • 43. © 2012 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. カスタムTermination Policy 下記のポリシーを1つまたは複数指定可 • OldestInstance / NewestInstance — インスタンスの起動時刻を 参照して、最も古い / 新しいインスタンスを優先的にTerminate • OldestLaunchConfiguration — 最も古いLaunch Configuration を使うインスタンスを優先的にTerminate • ClosestToNextInstanceHour — 次の課金が始まる時刻が最も近 いインスタンスを優先的にTerminate • Default --- 標準動作 複数指定した場合は指定順で適用 全ポリシーを適用しても複数インスタンスが候補になったらラ ンダムに選択
  • 44. © 2012 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 Autoscalingに スポットインスタンス 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 スポットインスタンスに関するマイスターWebinarのリンク: http://www.slideshare.net/AmazonWebServicesJapan/aws-16524731
  • 45. © 2012 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. ElasticBeanstalkのWeb UI 45 Autoscalingの閾値を設定 変更  CPUUtilization 変更  Percent Click 変更  70 変更  30
  • 46. © 2012 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. ASGARD by Netflix https://github.com/Netflix/asgard/wiki/Quick-Start-Guide
  • 47. © 2012 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. © 2012 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 Auto Scaling使うとEC2の 起動タイミングは 任意に制御できない
  • 49. © 2012 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 うまく利用するにはアプリ デプロイの自動化をしてお く必要がある
  • 50. © 2012 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 Auto Scalingでデプロイ コード コード 新規サーバーを デプロイ Auto ScalingではAMIからサーバーをデプロイするところまで面倒見てくれる AMI AMIにコードを埋め込ん でおけばOK? ひとまずOK。ただし、コード を修正するたびにAMIを新しく する必要があるので、頻繁な デプロイを行う際は更に対策 が必要。
  • 51. © 2012 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 Auto Scalingでデプロイ コード修正のたびにAMIを新しくするのは手間がかかる。 PHPやRuby, node.jsなどのLLを利用しているのであれば・・ コード コード 新規サーバーを デプロイ AMI デプロイ時にSCMから最 新のコードを取ってくる ようにしよう
  • 52. © 2012 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 Auto Scalingでデプロイ Launch Configurationに以下のようなuser dataを渡し ておけば起動時にgitから最新のコードを取得してきてく れる。 上記は前提として、コードが”/var/www/html”にあっ て、gitで管理されている場合の話。 より柔軟なデプロイについては下記を参照 http://www.slideshare.net/AmazonWebServicesJapan/20130506- 23096544 #!/bin/sh cd /var/www/html sudo -u httpd-user git pull service httpd restart
  • 53. © 2012 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. Auto ScalingのTIPS
  • 54. © 2012 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. トリガーにするメトリクスはアプリ次第。 • 一般的にはCPUが多い。 • WebSocketなどの環境ではメモリや接続数も重要。 しきい値もアプリ次第だが、最初は厳し目に設定してお いて、様子を見ながらゆるくしていくのがベター。 AZのキャパシティは均等に • 利用するAZの倍数で増やし、減らす、等
  • 55. © 2012 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. Auto Scalingの発動はSNSでキャッチできる • as-put-notification-configuration コマンドを利用することに より、既存のSNSトピックに対してオートスケーリングイベン トが発生したときに通知を出すように設定ができる Auto Scalingは時間がかかる • 基本的には、オートスケーリングは1台ずつのEC2増減をイテ レーションで実行していく。 • 3台増やす際には、1台増やして、cool down periodを待って、2 台目増やして・・・という具合 • as-set-desired-capacityを--no-honor-cooldownオプション 付けて発行すると、一度に複数台の増減をすることも可能。
  • 56. © 2012 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. 増やす時は速く • サービスのレスポンスを落とさずに 減らす時はゆっくり それって本当にAuto Scaling必要か?ともう一度確認し てみる • Auto Scalingは銀の弾丸ではないので、どんなユースケースに もマッチするわけではない。 • デプロイや監視、しきい値設定など、それなりに手間を掛けて 育てる必要がある。 • 最初は、緩めのしきい値でアラームからメールを飛ばして対応、 から始めるのもアリ。
  • 57. © 2012 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実践入門1 トレーニング AWS実践入門2 トレーニング Architecting on AWS トレーニング AWS 認定ソリュー ションアーキテクト- アソシエイトレベル 認定試験 http://aws.amazon.com/jp/training/