SlideShare a Scribd company logo
1 of 55
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マイスターシリーズ
Elastic Load Balancing
2013.6.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.
2
Agenda
2. ELB各種機能詳細とTips
5. まとめ
1. ELB基本編
3. ELBと各種サービスの連携
4. ELB負荷試験時の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.
3
1. ELB基本編
© 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.
4
ELB: Elastic Load Balancingとは?
AWSクラウド上のロードバランシングサービス
ELBの特徴
 負荷分散 : リクエストを複数のバックエンドのサーバーに分散
 スケーラブル: ELB自体が負荷に応じてキャパシティを増減
 高い可用性: 複数のAvailability Zoneに跨がるトラフィック分配
 ヘルスチェック機能: 健全なEC2にのみトラフィックを分配
 安価な従量課金: 従量課金で利用可能
AWS Management Console、API、コマンドラインツール、SDKで
コントロール可
© 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
ELBの概念図
AZ a AZ b
ELB
ユーザー
クライアント
Web
コンソール
開発者
HTTP / HTTPS /
TCP / SSL
HTTP / HTTPS /
TCP / SSL
EC2 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.
6
ELBによる負荷分散
バックエンドのEC2インスタンスのリクエスト数や
コネクション数を基に負荷分散
コネクション数・リクエスト数
が均等になるよう割り振る
サポートしているプロトコル
(L7)HTTP, HTTPS
(L4)TCP, SSL
© 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
ELBのスケーリング
ELBは負荷の増減に応じて自動でスケール
(キャパシティを自動で増加する)
注:ELBがスケールするときには、IPアドレスが変化
• ELBへアクセスするときには必ずDNS名で!
• 独自ドメインに割り当てる際はCNAMEにて
© 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
複数AZ利用による高い可用性
AZ A
AZ B ELB
エンド
ポイント
DNS
ラウンド
ロビン ELBによる
負荷分散
ELBによる
負荷分散
AZ配下の
EC2台数はAZ
間で均等化を
推奨
2段階で負荷分散
• DNSラウンドロビンによるAZ間振り分け
• AZ内ではコネクション数などを見ながら負荷分散
Internet Internet
Gateway
© 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
バックエンドのヘルスチェック
ELBは指定した設定に基づき、バックエンドのインスタンス
のヘルスチェックを行う
• Pingプロトコル:例:HTTP
• Pingポート:例 80番
• Pingパス(HTTP利用時)
:例 /index.html
• ヘルスチェック間隔:例 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.
10
使いやすくて安価な従量課金
時間当たりの利用料は、複数AZ配置構成でも同一
ELBにリザーブドプランはなし
処理量は右図の通り
2013年6月12日現在
50K
⇒100K
50K
50K
50K
© 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
2. ELBの各種機能詳細と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.
12
ELBの各種機能詳細とTips
ELB利用時のTips
• AZとバックエンドキャパシティの関係
• 独自ドメインでの利用
• クライアントのIPアドレス取得
• ELBとバックエンドのコネクション
SSLサポート
VPCでの利用
ELBとSecurity Group
ELBのスケーリング
Stickyセッション
© 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
ELBの各種機能詳細とTips
ELB利用時のTips
• AZとバックエンドキャパシティの関係
• 独自ドメインでの利用
• クライアントのIPアドレス取得
• ELBとバックエンドのコネクション
SSLサポート
VPCでの利用
ELBとSecurity Group
ELBのスケーリング
Stickyセッション
© 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
ELBとアベイラビリティゾーン(AZ)と
リージョン
リージョン内の複数のAZに負荷分散可能
• リージョンを越えたトラフィック分散は行わない
規模を問わず複数AZの利用を推奨
Availability Zone Availability Zone
myLB-xxx.elb.amazonaws.com
© 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
ELBとAZ内キャパシティの関係
ELBで有効になっているAZ間で均等に負荷分散される
Availability Zone
Availability Zone
10
2
Availability Zone
Availability Zone
6
6
myLB-
xxx.elb.amazonaws.com
myLB-
xxx.elb.amazonaws.com
良くない例: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.
16
独自ドメインの利用
CNAMEを利用
• ドメインのDNSサーバに設定を投入すれば完了
• Zone Apexの場合
• 通常のDNSサーバではCNAME設定不可
 Route 53のエイリアスレコードを使うことで対応可能
www.foo.example.com CNAME myLB-xxxx.ap-northeast-1.elb.amazonaws.com
© 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
クライアントのIPアドレス取得
バックエンドサーバのアクセスログにはELBのIPアドレ
スのみが含まれる
• クライアントELB, ELBバックエンドのコネクションは
それぞれ独立しているため
HTTPならX-Forwarded-Forリクエストヘッダで参照可
• 例:
X-Forwarded-For: 203.0.113.7, 10.12.33.44, 10.12.23.88
Client IP address
送信元 経由するルート
© 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
ELBとTCPコネクション
クライアント  ELB のコネクション
• アイドル状態が60秒続くとそのコネクションを切断する
ELB バックエンドインスタンスのコネクション
• Keepaliveの設定を推奨
• コネクションタイムアウト値を60秒以上に設定することを推奨
• 60秒以下の場合、ELBがその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.
19
ELBの各種機能詳細とTips
ELB利用時のTips
• AZとバックエンドキャパシティの関係
• 独自ドメインでの利用
• クライアントのIPアドレス取得
• ELBとバックエンドのコネクション
SSLサポート
VPCでの利用
ELBとSecurity Group
ELBのスケーリング
Stickyセッション
© 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
SSL Termination
ELBでSSL Terminationも可能
1. ELBでSSL Terminationし、バックエンドとはSSLなし
2. ELBでSSL Terminationし、バックエンドと別途SSL
3. SSLをバイパスしてバックエンドにTCPで送信
• 1, 2の場合、SSL証明書をELBで一元管理可能
• Cipherの選択も可能
HTTP or HTTPS HTTP or HTTPS
© 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.
21
SSL Termination時のサーバ証明書
ELBにSSL証明書をアップロード
• バックエンドとの通信にSSLを用いないなら証明書の管理が容易
• マネージメントコンソール or IAM APIで設定
SSL証明書
(*)証明書のライセンスに関しては、ドメイン単位/サーバ単位
で発行などそれぞれ異なるので発行元に問い合わせの事
© 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でのSSL証明書の管理
SSLを用いる場合、
ウィザードの中で
SSLの選択/インポー
ト画面が出てくる
ELBへのSSL証明書の設定
© 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
ELBへのSSL証明書の設定
~API編~
IAMのAPIを利用
http://docs.aws.amazon.com/IAM/latest/UserGuide/InstallC
ert.html
iam-servercertupload -b public_key_certificate_file -c
certificate_chain_file -k privatekey.pem -s certificate_object_name
© 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.
24
バックエンドインスタンスの認証
ELBとバックエンドインスタンス間でHTTPS/SSL使用
時に、オプションでバックエンドの認証を利用可能
© 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.
25
ELBの各種機能詳細とTips
ELB利用時のTips
• AZとバックエンドキャパシティの関係
• 独自ドメインでの利用
• クライアントのIPアドレス取得
• ELBとバックエンドのコネクション
SSLサポート
VPCでの利用
ELBとSecurity Group
ELBのスケーリング
Stickyセッション
© 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.
26
VPC内での利用
AZ
: a
AZ
: b
Subnet : a1 Subnet : a2
Subnet : b1
ELB
エンド
ポイント
DNS
ラウンド
ロビン
ELBによる
負荷分散
ELBによる
負荷分散
AZ配下の
EC2台数はAZ
間で均等化を
推奨
VPCとELBは同一Region内にAZを超えて作成
(※SubnetはAZをまたいだ構成ができない)
VPC by default後、ELBはVPC内に配置が基本
Internet
Internet
Gateway
© 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.
27
VPC対応概要
ELB inside VPCの機能
 ELBのトラフィックをサブネッ
トをまたいで分散も可能
 ELBにセキュリティグループが
設定可能
ELB inside VPCの制約
(2013年6月時点)
 IPv6サポート現状なし
 Dedicatedインスタンスは
サポートせず
 /27 CIDRブロック以上の
Subnetが必要
© 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.
28
VPC内のELB配置設定方法
作成済のVPC一覧が表示
されるため、ELBを配置
するVPCを選択
Public Subnet(Internet GatewayがアタッチされたSubnet)
を作成(アタッチされていないとエラー)
© 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.
29
ELBを配置するVPC内Subnetの指定
EC2-Classicの場合と違いVPC内に配置する場合は
ELBを配置するVPC Subnetを明示的に各AZにつき1つ指定
ELBを配置するSubnetを
指定
複数AZ構成の場合各AZ
に1つSubnetを指定
(注意)/27よ
り小さな
Subnetを選択
するとエラー
© 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.
30
Internal ELB
プライベートIPアドレスのみを持つELB
 グローバルIPアドレスを持たないこと以外は
“VPC内ELBと同機能”
 VPC内のみで利用可
(EC2-Classicでは不可)
 Internet Gatewayが
アタッチされていないVPCにも配置可
Internal ELBの制約
 VPC外では作成不可
 VPC内ELBと同様
© 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.
31
ELBの各種機能詳細とTips
ELB利用時のTips
• AZとバックエンドキャパシティの関係
• 独自ドメインでの利用
• クライアントのIPアドレス取得
• ELBとバックエンドのコネクション
SSLサポート
VPCでの利用
ELBとSecurity Group
ELBのスケーリング
Stickyセッション
© 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.
32
ELBのSecurity Group
バックエンドはELBからのみ
リクエストを受け付ける設定
を推奨
443
80
80
80
80
22
EC2-ClassicではELBは全て
“amazon-elb/amazon-elb-sg”
に属する
© 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.
33
ELBのSecurity Group
VPCではELBに任意のSecurity Groupを設定可能
• VPC Security Groupとして編集可
• Outbound設定についてはELB自身が能動的に外部と通信を確立すること
はないため特に設定不要
既存のVPC内のセ
キュリティグルー
プの選択も可能
新規作成も可能
(この際は
Inboundのみ)sg-ELB
443: 0.0.0.0/0
sg-EC2
80:sg-ELB
22:10.0.0.0/24
443
80
80
80
80
CIDR : 10.0.0.0/24
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.
34
ELBの各種機能詳細とTips
ELB利用時のTips
• AZとバックエンドキャパシティの関係
• 独自ドメインでの利用
• クライアントのIPアドレス取得
• ELBとバックエンドのコネクション
SSLサポート
VPCでの利用
ELBとSecurity Group
ELBのスケーリング
Stickyセッション
© 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.
35
ELBのスケーリング詳細
ELBは負荷に応じてスケールする
但し、以下のような場合にELBがHTTP 503を返す
• ELBへの接続・リクエストが瞬間的に急増したために、ELBのス
ケーリングが間に合わない場合
• TVやメディアによるサービス紹介、等
回避方法
• 事前にELBをスケールさせておく
• 負荷をかける
• Pre-Warming(暖気運転)の申請を行う
© 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.
36
ELBの暖気運転(Pre-Warming)
Business/Enterpriseサポートに加入者様向けにELBを
事前にスケールさせておく操作
急激なトラフィックの増加が予想される場合に有効
• メディアで自社サイトが紹介される、等
ELBの負荷テストで、段階的にスケールさせることが出
来ない場合にも有効
© 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.
37
ELBの各種機能詳細とTips
ELB利用時のTips
• AZとバックエンドキャパシティの関係
• 独自ドメインでの利用
• クライアントのIPアドレス取得
• ELBとバックエンドのコネクション
SSLサポート
VPCでの利用
ELBとSecurity Group
ELBのスケーリング
Stickyセッション
© 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.
38
Stickyセッション
Stickyセッションを使うと、同じユーザから来たリクエ
ストを全て同じインスタンスに送信可能
Stickyセッションの種類は以下2パターン
• Application Genereated Cookie Stickiness
• Load Balancer Generated Cookie Stickiness
ELBがどのくらいの期間同じインスタンスにルーティン
グし続けさせるかを決めることが重要
© 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.
39
Application Generated
Cookie Stickiness
アプリケーション固有のセッション維持を行う
アプリケーションに独自のセッションCookieがある場合
等に利用
例:Webサービスへのユーザーログ
イン時にCookieを生成。ログアウト
時にCookie削除
© 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
Load Balancer
Generated Cookie Stickiness
期間ベースのセッション維持を行う
アプリケーションに独自のセッションCookieがない場合、
ELB側でセッション維持を管理したい場合に利用
ELB側で期限付きCookieを生成
© 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.
41
3. ELBと各種サービスの連携
© 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.
42
CloudWatchとの連携
CloudWatchによりELBの以下を監視可能
• 遅延時間
• リクエスト数
• 健全なホスト数
• 不健全なホスト数
• バックエンドの2xx-5xxレスポンス数
• ELBの4xxと5xxのレスポンス数
監視
© 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.
43
Auto Scalingとの連携
Auto Scalingによるインスタンス増減時にELBへのアタッ
チ・デタッチが可能
ELBのヘルスチェックの結果をAuto Scalingに反映可能
利用例:
• 一定間隔でレスポンスをチェックし、遅延が増加したらインスタ
ンスを自動追加
• ELBのヘルスチェックが成功したEC2インスタンスを常にX台以上
Auto scaling Group
増減
© 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
Route53 DNSフェイルオーバ対応
Route53のヘルスチェック機能と連携
• 例:アプリケーション障害時にSorryペー
ジヘ誘導
正常時 フェイルオーバ時
S3 Bucket
1. DBに問題発生
2. AppサーバのELB
ヘルスチェック失敗
3. ELB可に健全なイ
ンスタンスなし
4. フェイルオーバ
5. Sorry
ページ
© 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.
45
Route53 DNSフェイルオーバ対応
設定方法
• Alias Target にELBを指定し、
Routing Policyに「Failover」を選択
Evaluate Target
Health:
[Yes]
「Associate with
Health Check」:
既存のヘルスチェッ
クとの関連付け。
「ELB」の場合は原
則「No」を選択
© 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.
46
User AWS Management
Console
スタック
Load Balancerレイヤー
App Serverレイヤー
Databaseレイヤー
レシピ
レシピ
レシピ DB
Web
/App
Web
/App
LB
①スタックの作成
②レイヤーの作成
③レシピの作成・設定
(ビルトイン
レシピ利用可)
④レイヤーにインスタ
ンス追加・起動
⑤レシピによって
パッケージインス
トール、設定
LBとしてELBが選択可能に
OpsWorksでELBをLBレイヤーに利用可能に
OpsWorksのELB対応
© 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.
47
4ELB負荷テストに関する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.
48
ELBを負荷テストする必要性について
ELBのいくつかの特長がテストシナリオに影響を与える
可能性がある。
• ELBのスケーリング
• ELBの初期キャパシティ
• アイドルコネクションタイムアウト
• バックエンドインスタンスのヘルスチェック
• Stickyセッション、等
ご利用内容に合わせたシナリオでテストが必要
© 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
ELBの負荷テスト方法の種類
シングルクライアントテスト
• 例:Apache Bench(ab)
マルチクライアントテスト
• 例:curl-loader
(都度DNS解決を行うツールが望ましい)
分散テスト
• 例:Fabricフレームワーク、
BeesWithMachineGuns
※いずれのテストにおいても、クライアントの負荷が足り
ない場合はクライアント数を増やす等で対応可
負荷生成
クライアント
バックエンドイン
スタンス
© 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
推奨テストアプローチ
想定する最大負荷のテスト
通常のトラフィック時のテスト
• トラフィックの多い時
• トラフィックの少ない時
• トラフィックの傾向に変化がある時(朝や昼の時間帯など)
短い時間でトラフィックが大きく変化する場合のテスト
※ELB以外にも負荷生成クライアント、バックエンド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.
51
負荷テストの注意事項
ELBの初期スケールに注意
• スケールするまでに、HTTP 503レスポンスを返す期間があり得る
• 回避策:
• ELBの暖気運転( Pre-Warming)申請をする
• 5分間隔で50%以上のトラフィック増加をしないよう負荷テストを設定
DNSクエリの仕方に注意
• テストクライアント側で少なくとも1分に1回DNSの再解決をする
スティッキーセッション利用時の割り振り方
• 同じCookieでリクエストを続けた場合などは振り分けに偏りが
バックエンドインスタンスのアイドルタイムアウト
• 60秒以上に設定しないとELBが誤って不健全なホストと見なす可能性あり
© 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
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.
53
まとめ
ELBはAWSが提供するロードバランシングサービス
• 運用管理コストを抑えながらスケーラブルで高可用なインフラ
を構築可能
• 各種サービスとの連携もスムーズ&随時拡充
• 負荷試験時はその特性を理解した上で
• 急激な負荷の増大が想定される場合には、サポート加入の上で
暖気申請(Pre-Warming)を
© 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.
54
日本語Link
(クラウドサービス活用集に掲載)
VPC内ELB配置設計指針
ロードバランサとSocket接続を使用したイベント通知
サーバの負荷分散
Elastic Load Balancing開発者ガイド
• http://docs.aws.amazon.com/ja_jp/ElasticLoadBalancing/lat
est/DeveloperGuide/Welcome.html
Elasitc Load Balancingを評価するためのベストプラク
ティス
• http://d36cz9buwru1tt.cloudfront.net/jp/documentation/Be
stPracticesInEvaluatingELB-ja-final.pdf
© 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.
55
英語Link(最新版)
参考資料
• Amazon Elastic Load Balancing Developer Guide
http://docs.aws.amazon.com/ElasticLoadBalancing/latest/Devel
operGuide/Welcome.html
• Best Practices in Evaluating Elastic Load Balancing
http://aws.amazon.com/articles/1636185810492479
• Amazon ELB FAQ
http://aws.amazon.com/ec2/faqs/
Elastic Load Balancing の箇所
• AWS re: Invent CPN 205: Zero to Millions of Requests
https://www.youtube.com/watch?v=xKF-Aawz9oc

More Related Content

What's hot

20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...
20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...
20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...Amazon Web Services Japan
 
20191029 AWS Black Belt Online Seminar Elastic Load Balancing (ELB)
20191029 AWS Black Belt Online Seminar Elastic Load Balancing (ELB)20191029 AWS Black Belt Online Seminar Elastic Load Balancing (ELB)
20191029 AWS Black Belt Online Seminar Elastic Load Balancing (ELB)Amazon Web Services Japan
 
20191105 AWS Black Belt Online Seminar Amazon Route 53 Hosted Zone
20191105 AWS Black Belt Online Seminar Amazon Route 53 Hosted Zone20191105 AWS Black Belt Online Seminar Amazon Route 53 Hosted Zone
20191105 AWS Black Belt Online Seminar Amazon Route 53 Hosted ZoneAmazon 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
 
20190129 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...
20190129 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...20190129 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...
20190129 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...Amazon 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
 
20210216 AWS Black Belt Online Seminar AWS Database Migration Service
20210216 AWS Black Belt Online Seminar AWS Database Migration Service20210216 AWS Black Belt Online Seminar AWS Database Migration Service
20210216 AWS Black Belt Online Seminar AWS Database Migration ServiceAmazon Web Services Japan
 
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
 
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
 
[Aurora事例祭り]Amazon Aurora を使いこなすためのベストプラクティス
[Aurora事例祭り]Amazon Aurora を使いこなすためのベストプラクティス[Aurora事例祭り]Amazon Aurora を使いこなすためのベストプラクティス
[Aurora事例祭り]Amazon Aurora を使いこなすためのベストプラクティスAmazon Web Services Japan
 
20200722 AWS Black Belt Online Seminar AWSアカウント シングルサインオンの設計と運用
20200722 AWS Black Belt Online Seminar AWSアカウント シングルサインオンの設計と運用20200722 AWS Black Belt Online Seminar AWSアカウント シングルサインオンの設計と運用
20200722 AWS Black Belt Online Seminar AWSアカウント シングルサインオンの設計と運用Amazon Web Services Japan
 
20190806 AWS Black Belt Online Seminar AWS Glue
20190806 AWS Black Belt Online Seminar AWS Glue20190806 AWS Black Belt Online Seminar AWS Glue
20190806 AWS Black Belt Online Seminar AWS GlueAmazon Web Services Japan
 
20190731 Black Belt Online Seminar Amazon ECS Deep Dive
20190731 Black Belt Online Seminar Amazon ECS Deep Dive20190731 Black Belt Online Seminar Amazon ECS Deep Dive
20190731 Black Belt Online Seminar Amazon ECS Deep DiveAmazon Web Services Japan
 
AWS Black Belt Online Seminar 2017 AWS Storage Gateway
AWS Black Belt Online Seminar 2017 AWS Storage GatewayAWS Black Belt Online Seminar 2017 AWS Storage Gateway
AWS Black Belt Online Seminar 2017 AWS Storage GatewayAmazon Web Services Japan
 
20191120 AWS Black Belt Online Seminar Amazon Managed Streaming for Apache Ka...
20191120 AWS Black Belt Online Seminar Amazon Managed Streaming for Apache Ka...20191120 AWS Black Belt Online Seminar Amazon Managed Streaming for Apache Ka...
20191120 AWS Black Belt Online Seminar Amazon Managed Streaming for Apache Ka...Amazon Web Services Japan
 
Amazon Pinpoint を中心としたカスタマーエンゲージメントの全体像 / Customer Engagement On Amazon Pinpoint
Amazon Pinpoint を中心としたカスタマーエンゲージメントの全体像 / Customer Engagement On Amazon PinpointAmazon Pinpoint を中心としたカスタマーエンゲージメントの全体像 / Customer Engagement On Amazon Pinpoint
Amazon Pinpoint を中心としたカスタマーエンゲージメントの全体像 / Customer Engagement On Amazon PinpointAmazon Web Services Japan
 
20200219 AWS Black Belt Online Seminar オンプレミスとAWS間の冗長化接続
20200219 AWS Black Belt Online Seminar オンプレミスとAWS間の冗長化接続20200219 AWS Black Belt Online Seminar オンプレミスとAWS間の冗長化接続
20200219 AWS Black Belt Online Seminar オンプレミスとAWS間の冗長化接続Amazon Web Services Japan
 
[社内勉強会]ELBとALBと数万スパイク負荷テスト
[社内勉強会]ELBとALBと数万スパイク負荷テスト[社内勉強会]ELBとALBと数万スパイク負荷テスト
[社内勉強会]ELBとALBと数万スパイク負荷テストTakahiro Moteki
 
AWSのログ管理ベストプラクティス
AWSのログ管理ベストプラクティスAWSのログ管理ベストプラクティス
AWSのログ管理ベストプラクティスAkihiro Kuwano
 

What's hot (20)

20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...
20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...
20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...
 
20191029 AWS Black Belt Online Seminar Elastic Load Balancing (ELB)
20191029 AWS Black Belt Online Seminar Elastic Load Balancing (ELB)20191029 AWS Black Belt Online Seminar Elastic Load Balancing (ELB)
20191029 AWS Black Belt Online Seminar Elastic Load Balancing (ELB)
 
20191105 AWS Black Belt Online Seminar Amazon Route 53 Hosted Zone
20191105 AWS Black Belt Online Seminar Amazon Route 53 Hosted Zone20191105 AWS Black Belt Online Seminar Amazon Route 53 Hosted Zone
20191105 AWS Black Belt Online Seminar Amazon Route 53 Hosted Zone
 
Application Load Balancer
Application Load BalancerApplication Load Balancer
Application Load Balancer
 
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
 
20190129 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...
20190129 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...20190129 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...
20190129 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...
 
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
 
20210216 AWS Black Belt Online Seminar AWS Database Migration Service
20210216 AWS Black Belt Online Seminar AWS Database Migration Service20210216 AWS Black Belt Online Seminar AWS Database Migration Service
20210216 AWS Black Belt Online Seminar AWS Database Migration Service
 
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の概要
 
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
 
[Aurora事例祭り]Amazon Aurora を使いこなすためのベストプラクティス
[Aurora事例祭り]Amazon Aurora を使いこなすためのベストプラクティス[Aurora事例祭り]Amazon Aurora を使いこなすためのベストプラクティス
[Aurora事例祭り]Amazon Aurora を使いこなすためのベストプラクティス
 
20200722 AWS Black Belt Online Seminar AWSアカウント シングルサインオンの設計と運用
20200722 AWS Black Belt Online Seminar AWSアカウント シングルサインオンの設計と運用20200722 AWS Black Belt Online Seminar AWSアカウント シングルサインオンの設計と運用
20200722 AWS Black Belt Online Seminar AWSアカウント シングルサインオンの設計と運用
 
20190806 AWS Black Belt Online Seminar AWS Glue
20190806 AWS Black Belt Online Seminar AWS Glue20190806 AWS Black Belt Online Seminar AWS Glue
20190806 AWS Black Belt Online Seminar AWS Glue
 
20190731 Black Belt Online Seminar Amazon ECS Deep Dive
20190731 Black Belt Online Seminar Amazon ECS Deep Dive20190731 Black Belt Online Seminar Amazon ECS Deep Dive
20190731 Black Belt Online Seminar Amazon ECS Deep Dive
 
AWS Black Belt Online Seminar 2017 AWS Storage Gateway
AWS Black Belt Online Seminar 2017 AWS Storage GatewayAWS Black Belt Online Seminar 2017 AWS Storage Gateway
AWS Black Belt Online Seminar 2017 AWS Storage Gateway
 
20191120 AWS Black Belt Online Seminar Amazon Managed Streaming for Apache Ka...
20191120 AWS Black Belt Online Seminar Amazon Managed Streaming for Apache Ka...20191120 AWS Black Belt Online Seminar Amazon Managed Streaming for Apache Ka...
20191120 AWS Black Belt Online Seminar Amazon Managed Streaming for Apache Ka...
 
Amazon Pinpoint を中心としたカスタマーエンゲージメントの全体像 / Customer Engagement On Amazon Pinpoint
Amazon Pinpoint を中心としたカスタマーエンゲージメントの全体像 / Customer Engagement On Amazon PinpointAmazon Pinpoint を中心としたカスタマーエンゲージメントの全体像 / Customer Engagement On Amazon Pinpoint
Amazon Pinpoint を中心としたカスタマーエンゲージメントの全体像 / Customer Engagement On Amazon Pinpoint
 
20200219 AWS Black Belt Online Seminar オンプレミスとAWS間の冗長化接続
20200219 AWS Black Belt Online Seminar オンプレミスとAWS間の冗長化接続20200219 AWS Black Belt Online Seminar オンプレミスとAWS間の冗長化接続
20200219 AWS Black Belt Online Seminar オンプレミスとAWS間の冗長化接続
 
[社内勉強会]ELBとALBと数万スパイク負荷テスト
[社内勉強会]ELBとALBと数万スパイク負荷テスト[社内勉強会]ELBとALBと数万スパイク負荷テスト
[社内勉強会]ELBとALBと数万スパイク負荷テスト
 
AWSのログ管理ベストプラクティス
AWSのログ管理ベストプラクティスAWSのログ管理ベストプラクティス
AWSのログ管理ベストプラクティス
 

Viewers also liked

AWS Black Belt Techシリーズ Elastic Load Balancing (ELB)
AWS Black Belt Techシリーズ  Elastic Load Balancing (ELB)AWS Black Belt Techシリーズ  Elastic Load Balancing (ELB)
AWS Black Belt Techシリーズ Elastic Load Balancing (ELB)Amazon Web Services Japan
 
AWS Blackbelt 2015シリーズ Elastic Load Balancing
AWS Blackbelt 2015シリーズ Elastic Load BalancingAWS Blackbelt 2015シリーズ Elastic Load Balancing
AWS Blackbelt 2015シリーズ Elastic Load BalancingAmazon Web Services Japan
 
ELB & Auto Scaling & CloudWatch 詳細 -ほぼ週刊AWSマイスターシリーズ第5回-
ELB & Auto Scaling & CloudWatch 詳細 -ほぼ週刊AWSマイスターシリーズ第5回- ELB & Auto Scaling & CloudWatch 詳細 -ほぼ週刊AWSマイスターシリーズ第5回-
ELB & Auto Scaling & CloudWatch 詳細 -ほぼ週刊AWSマイスターシリーズ第5回- SORACOM, INC
 
[AWSマイスターシリーズ] Amazon Elastic Compute Cloud (EC2)
 [AWSマイスターシリーズ] Amazon Elastic Compute Cloud (EC2) [AWSマイスターシリーズ] Amazon Elastic Compute Cloud (EC2)
[AWSマイスターシリーズ] Amazon Elastic Compute Cloud (EC2)Amazon 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
 
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
 
実践!AWSクラウドデザインパターン
実践!AWSクラウドデザインパターン実践!AWSクラウドデザインパターン
実践!AWSクラウドデザインパターンHiroyasu Suzuki
 
[AWSマイスターシリーズ]Amazon Simple Workflow Service (SWF)
[AWSマイスターシリーズ]Amazon Simple Workflow Service (SWF)[AWSマイスターシリーズ]Amazon Simple Workflow Service (SWF)
[AWSマイスターシリーズ]Amazon Simple Workflow Service (SWF)Amazon Web Services Japan
 
AWSにおけるバッチ処理の ベストプラクティス - Developers.IO Meetup 05
AWSにおけるバッチ処理の ベストプラクティス - Developers.IO Meetup 05AWSにおけるバッチ処理の ベストプラクティス - Developers.IO Meetup 05
AWSにおけるバッチ処理の ベストプラクティス - Developers.IO Meetup 05都元ダイスケ Miyamoto
 
データモデルについて知っておくべき7つのこと 〜NoSQLに手を出す前に〜
データモデルについて知っておくべき7つのこと 〜NoSQLに手を出す前に〜データモデルについて知っておくべき7つのこと 〜NoSQLに手を出す前に〜
データモデルについて知っておくべき7つのこと 〜NoSQLに手を出す前に〜Mikiya Okuno
 
AWSクラウドデザインパターン VPC移行編
AWSクラウドデザインパターン VPC移行編AWSクラウドデザインパターン VPC移行編
AWSクラウドデザインパターン VPC移行編Yasuhiro Araki, Ph.D
 
(WEB401) Optimizing Your Web Server on AWS | AWS re:Invent 2014
(WEB401) Optimizing Your Web Server on AWS | AWS re:Invent 2014(WEB401) Optimizing Your Web Server on AWS | AWS re:Invent 2014
(WEB401) Optimizing Your Web Server on AWS | AWS re:Invent 2014Amazon Web Services
 
AWSクラウドデザインパターン(CDP) - コンテンツ配信編 -
AWSクラウドデザインパターン(CDP) - コンテンツ配信編 -AWSクラウドデザインパターン(CDP) - コンテンツ配信編 -
AWSクラウドデザインパターン(CDP) - コンテンツ配信編 -Akio Katayama
 
アイデンティティ2.0とOAuth/OpenID Connect
アイデンティティ2.0とOAuth/OpenID Connectアイデンティティ2.0とOAuth/OpenID Connect
アイデンティティ2.0とOAuth/OpenID ConnectShinichi Tomita
 
負荷対策しておもったことまとめ~JMeterでSocket.IOもいけるでよ~
負荷対策しておもったことまとめ~JMeterでSocket.IOもいけるでよ~負荷対策しておもったことまとめ~JMeterでSocket.IOもいけるでよ~
負荷対策しておもったことまとめ~JMeterでSocket.IOもいけるでよ~johgus johgus
 
AWS Solution Architect Associate試験勉強メモ
AWS Solution Architect Associate試験勉強メモAWS Solution Architect Associate試験勉強メモ
AWS Solution Architect Associate試験勉強メモTadayasu Yotsu
 
[AWSマイスターシリーズ] Amazon Virtual Private Cloud (VPC)
[AWSマイスターシリーズ] Amazon Virtual Private Cloud (VPC)[AWSマイスターシリーズ] Amazon Virtual Private Cloud (VPC)
[AWSマイスターシリーズ] Amazon Virtual Private Cloud (VPC)Amazon Web Services Japan
 

Viewers also liked (20)

AWS Black Belt Techシリーズ Elastic Load Balancing (ELB)
AWS Black Belt Techシリーズ  Elastic Load Balancing (ELB)AWS Black Belt Techシリーズ  Elastic Load Balancing (ELB)
AWS Black Belt Techシリーズ Elastic Load Balancing (ELB)
 
AWS Blackbelt 2015シリーズ Elastic Load Balancing
AWS Blackbelt 2015シリーズ Elastic Load BalancingAWS Blackbelt 2015シリーズ Elastic Load Balancing
AWS Blackbelt 2015シリーズ Elastic Load Balancing
 
ELB & Auto Scaling & CloudWatch 詳細 -ほぼ週刊AWSマイスターシリーズ第5回-
ELB & Auto Scaling & CloudWatch 詳細 -ほぼ週刊AWSマイスターシリーズ第5回- ELB & Auto Scaling & CloudWatch 詳細 -ほぼ週刊AWSマイスターシリーズ第5回-
ELB & Auto Scaling & CloudWatch 詳細 -ほぼ週刊AWSマイスターシリーズ第5回-
 
[AWSマイスターシリーズ] Amazon Elastic Compute Cloud (EC2)
 [AWSマイスターシリーズ] Amazon Elastic Compute Cloud (EC2) [AWSマイスターシリーズ] Amazon Elastic Compute Cloud (EC2)
[AWSマイスターシリーズ] Amazon Elastic Compute Cloud (EC2)
 
[AWSマイスターシリーズ]Amazon CloudWatch & Auto Scaling
[AWSマイスターシリーズ]Amazon CloudWatch & Auto Scaling[AWSマイスターシリーズ]Amazon CloudWatch & Auto Scaling
[AWSマイスターシリーズ]Amazon CloudWatch & Auto Scaling
 
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
 
ELBの概要と勘所
ELBの概要と勘所ELBの概要と勘所
ELBの概要と勘所
 
実践!AWSクラウドデザインパターン
実践!AWSクラウドデザインパターン実践!AWSクラウドデザインパターン
実践!AWSクラウドデザインパターン
 
[AWSマイスターシリーズ]Amazon Simple Workflow Service (SWF)
[AWSマイスターシリーズ]Amazon Simple Workflow Service (SWF)[AWSマイスターシリーズ]Amazon Simple Workflow Service (SWF)
[AWSマイスターシリーズ]Amazon Simple Workflow Service (SWF)
 
AWSにおけるバッチ処理の ベストプラクティス - Developers.IO Meetup 05
AWSにおけるバッチ処理の ベストプラクティス - Developers.IO Meetup 05AWSにおけるバッチ処理の ベストプラクティス - Developers.IO Meetup 05
AWSにおけるバッチ処理の ベストプラクティス - Developers.IO Meetup 05
 
Amazon Simple Workflow Service (SWF)
Amazon Simple Workflow Service (SWF)Amazon Simple Workflow Service (SWF)
Amazon Simple Workflow Service (SWF)
 
データモデルについて知っておくべき7つのこと 〜NoSQLに手を出す前に〜
データモデルについて知っておくべき7つのこと 〜NoSQLに手を出す前に〜データモデルについて知っておくべき7つのこと 〜NoSQLに手を出す前に〜
データモデルについて知っておくべき7つのこと 〜NoSQLに手を出す前に〜
 
AWSクラウドデザインパターン VPC移行編
AWSクラウドデザインパターン VPC移行編AWSクラウドデザインパターン VPC移行編
AWSクラウドデザインパターン VPC移行編
 
(WEB401) Optimizing Your Web Server on AWS | AWS re:Invent 2014
(WEB401) Optimizing Your Web Server on AWS | AWS re:Invent 2014(WEB401) Optimizing Your Web Server on AWS | AWS re:Invent 2014
(WEB401) Optimizing Your Web Server on AWS | AWS re:Invent 2014
 
20120521 aws-meister-elb&as&cw-public
20120521 aws-meister-elb&as&cw-public20120521 aws-meister-elb&as&cw-public
20120521 aws-meister-elb&as&cw-public
 
AWSクラウドデザインパターン(CDP) - コンテンツ配信編 -
AWSクラウドデザインパターン(CDP) - コンテンツ配信編 -AWSクラウドデザインパターン(CDP) - コンテンツ配信編 -
AWSクラウドデザインパターン(CDP) - コンテンツ配信編 -
 
アイデンティティ2.0とOAuth/OpenID Connect
アイデンティティ2.0とOAuth/OpenID Connectアイデンティティ2.0とOAuth/OpenID Connect
アイデンティティ2.0とOAuth/OpenID Connect
 
負荷対策しておもったことまとめ~JMeterでSocket.IOもいけるでよ~
負荷対策しておもったことまとめ~JMeterでSocket.IOもいけるでよ~負荷対策しておもったことまとめ~JMeterでSocket.IOもいけるでよ~
負荷対策しておもったことまとめ~JMeterでSocket.IOもいけるでよ~
 
AWS Solution Architect Associate試験勉強メモ
AWS Solution Architect Associate試験勉強メモAWS Solution Architect Associate試験勉強メモ
AWS Solution Architect Associate試験勉強メモ
 
[AWSマイスターシリーズ] Amazon Virtual Private Cloud (VPC)
[AWSマイスターシリーズ] Amazon Virtual Private Cloud (VPC)[AWSマイスターシリーズ] Amazon Virtual Private Cloud (VPC)
[AWSマイスターシリーズ] Amazon Virtual Private Cloud (VPC)
 

Similar to [AWSマイスターシリーズ]Amazon Elastic Load Balancing (ELB)

ELB & CloudWatch & AutoScaling - AWSマイスターシリーズ
ELB & CloudWatch & AutoScaling - AWSマイスターシリーズELB & CloudWatch & AutoScaling - AWSマイスターシリーズ
ELB & CloudWatch & AutoScaling - AWSマイスターシリーズAmazon Web Services Japan
 
[AWSマイスターシリーズ] AWS Elastic Beanstalk
[AWSマイスターシリーズ] AWS Elastic Beanstalk[AWSマイスターシリーズ] AWS Elastic Beanstalk
[AWSマイスターシリーズ] AWS Elastic BeanstalkAmazon Web Services Japan
 
AWS Black Belt Online Seminar Elastic Load Balancing
AWS Black Belt Online Seminar Elastic Load BalancingAWS Black Belt Online Seminar Elastic Load Balancing
AWS Black Belt Online Seminar Elastic Load BalancingAmazon Web Services Japan
 
負荷分散だけじゃないELBのメリット
負荷分散だけじゃないELBのメリット負荷分散だけじゃないELBのメリット
負荷分散だけじゃないELBのメリットTakashi Toyosaki
 
[AWSマイスターシリーズ] AWS Elastic Beanstalk -Python編-
[AWSマイスターシリーズ] AWS Elastic Beanstalk -Python編-[AWSマイスターシリーズ] AWS Elastic Beanstalk -Python編-
[AWSマイスターシリーズ] AWS Elastic Beanstalk -Python編-Amazon Web Services Japan
 
Lampで作るソーシャルアプリの負荷対策~アプリとインフラの調和のテクニック~
Lampで作るソーシャルアプリの負荷対策~アプリとインフラの調和のテクニック~Lampで作るソーシャルアプリの負荷対策~アプリとインフラの調和のテクニック~
Lampで作るソーシャルアプリの負荷対策~アプリとインフラの調和のテクニック~KLab株式会社
 
2013/12/05 Serverworks Seminar 小室分
2013/12/05 Serverworks Seminar 小室分2013/12/05 Serverworks Seminar 小室分
2013/12/05 Serverworks Seminar 小室分Serverworks Co.,Ltd.
 
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
 
20190828 AWS Black Belt Online Seminar Amazon Aurora with PostgreSQL Compatib...
20190828 AWS Black Belt Online Seminar Amazon Aurora with PostgreSQL Compatib...20190828 AWS Black Belt Online Seminar Amazon Aurora with PostgreSQL Compatib...
20190828 AWS Black Belt Online Seminar Amazon Aurora with PostgreSQL Compatib...Amazon Web Services Japan
 
東京リージョン対応PrimeCloud Controllerを用いたハイブリッドクラウドの可能性
東京リージョン対応PrimeCloud Controllerを用いたハイブリッドクラウドの可能性東京リージョン対応PrimeCloud Controllerを用いたハイブリッドクラウドの可能性
東京リージョン対応PrimeCloud Controllerを用いたハイブリッドクラウドの可能性Yoichi Takizawa
 
cloudpack導入資料(20120302版)
cloudpack導入資料(20120302版)cloudpack導入資料(20120302版)
cloudpack導入資料(20120302版)iret, Inc.
 
[AWSマイスターシリーズ] AWS OpsWorks
[AWSマイスターシリーズ] AWS OpsWorks[AWSマイスターシリーズ] AWS OpsWorks
[AWSマイスターシリーズ] AWS OpsWorksAmazon Web Services Japan
 
AWS Black Belt Online Seminar 2017 AWS Elastic Beanstalk
AWS Black Belt Online Seminar 2017 AWS Elastic BeanstalkAWS Black Belt Online Seminar 2017 AWS Elastic Beanstalk
AWS Black Belt Online Seminar 2017 AWS Elastic BeanstalkAmazon Web Services Japan
 
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マイスターシリーズ(Elastic Beanstalk)
AWSマイスターシリーズ(Elastic Beanstalk)AWSマイスターシリーズ(Elastic Beanstalk)
AWSマイスターシリーズ(Elastic Beanstalk)Akio Katayama
 
AWS Elastic Beanstalk 詳細 -ほぼ週刊AWSマイスターシリーズ第9回-
AWS Elastic Beanstalk 詳細 -ほぼ週刊AWSマイスターシリーズ第9回-AWS Elastic Beanstalk 詳細 -ほぼ週刊AWSマイスターシリーズ第9回-
AWS Elastic Beanstalk 詳細 -ほぼ週刊AWSマイスターシリーズ第9回-SORACOM, INC
 
[AWSマイスターシリーズ] Amazon DynamoDB
[AWSマイスターシリーズ] Amazon DynamoDB[AWSマイスターシリーズ] Amazon DynamoDB
[AWSマイスターシリーズ] Amazon DynamoDBAmazon Web Services Japan
 

Similar to [AWSマイスターシリーズ]Amazon Elastic Load Balancing (ELB) (20)

test
testtest
test
 
ELB & CloudWatch & AutoScaling - AWSマイスターシリーズ
ELB & CloudWatch & AutoScaling - AWSマイスターシリーズELB & CloudWatch & AutoScaling - AWSマイスターシリーズ
ELB & CloudWatch & AutoScaling - AWSマイスターシリーズ
 
[AWSマイスターシリーズ] AWS Elastic Beanstalk
[AWSマイスターシリーズ] AWS Elastic Beanstalk[AWSマイスターシリーズ] AWS Elastic Beanstalk
[AWSマイスターシリーズ] AWS Elastic Beanstalk
 
AWS Black Belt Online Seminar Elastic Load Balancing
AWS Black Belt Online Seminar Elastic Load BalancingAWS Black Belt Online Seminar Elastic Load Balancing
AWS Black Belt Online Seminar Elastic Load Balancing
 
負荷分散だけじゃないELBのメリット
負荷分散だけじゃないELBのメリット負荷分散だけじゃないELBのメリット
負荷分散だけじゃないELBのメリット
 
Elastic beanstalk docker_support
Elastic beanstalk docker_supportElastic beanstalk docker_support
Elastic beanstalk docker_support
 
[AWSマイスターシリーズ] AWS Elastic Beanstalk -Python編-
[AWSマイスターシリーズ] AWS Elastic Beanstalk -Python編-[AWSマイスターシリーズ] AWS Elastic Beanstalk -Python編-
[AWSマイスターシリーズ] AWS Elastic Beanstalk -Python編-
 
Lampで作るソーシャルアプリの負荷対策~アプリとインフラの調和のテクニック~
Lampで作るソーシャルアプリの負荷対策~アプリとインフラの調和のテクニック~Lampで作るソーシャルアプリの負荷対策~アプリとインフラの調和のテクニック~
Lampで作るソーシャルアプリの負荷対策~アプリとインフラの調和のテクニック~
 
2013/12/05 Serverworks Seminar 小室分
2013/12/05 Serverworks Seminar 小室分2013/12/05 Serverworks Seminar 小室分
2013/12/05 Serverworks Seminar 小室分
 
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)
 
20190828 AWS Black Belt Online Seminar Amazon Aurora with PostgreSQL Compatib...
20190828 AWS Black Belt Online Seminar Amazon Aurora with PostgreSQL Compatib...20190828 AWS Black Belt Online Seminar Amazon Aurora with PostgreSQL Compatib...
20190828 AWS Black Belt Online Seminar Amazon Aurora with PostgreSQL Compatib...
 
東京リージョン対応PrimeCloud Controllerを用いたハイブリッドクラウドの可能性
東京リージョン対応PrimeCloud Controllerを用いたハイブリッドクラウドの可能性東京リージョン対応PrimeCloud Controllerを用いたハイブリッドクラウドの可能性
東京リージョン対応PrimeCloud Controllerを用いたハイブリッドクラウドの可能性
 
cloudpack導入資料(20120302版)
cloudpack導入資料(20120302版)cloudpack導入資料(20120302版)
cloudpack導入資料(20120302版)
 
[AWSマイスターシリーズ] AWS OpsWorks
[AWSマイスターシリーズ] AWS OpsWorks[AWSマイスターシリーズ] AWS OpsWorks
[AWSマイスターシリーズ] AWS OpsWorks
 
AWS Black Belt Online Seminar 2017 AWS Elastic Beanstalk
AWS Black Belt Online Seminar 2017 AWS Elastic BeanstalkAWS Black Belt Online Seminar 2017 AWS Elastic Beanstalk
AWS Black Belt Online Seminar 2017 AWS Elastic Beanstalk
 
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)
 
Elastic beanstalk
Elastic beanstalkElastic beanstalk
Elastic beanstalk
 
AWSマイスターシリーズ(Elastic Beanstalk)
AWSマイスターシリーズ(Elastic Beanstalk)AWSマイスターシリーズ(Elastic Beanstalk)
AWSマイスターシリーズ(Elastic Beanstalk)
 
AWS Elastic Beanstalk 詳細 -ほぼ週刊AWSマイスターシリーズ第9回-
AWS Elastic Beanstalk 詳細 -ほぼ週刊AWSマイスターシリーズ第9回-AWS Elastic Beanstalk 詳細 -ほぼ週刊AWSマイスターシリーズ第9回-
AWS Elastic Beanstalk 詳細 -ほぼ週刊AWSマイスターシリーズ第9回-
 
[AWSマイスターシリーズ] Amazon DynamoDB
[AWSマイスターシリーズ] Amazon DynamoDB[AWSマイスターシリーズ] Amazon DynamoDB
[AWSマイスターシリーズ] Amazon DynamoDB
 

More from 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
 
202201 AWS Black Belt Online Seminar Apache Spark Performnace Tuning for AWS ...
202201 AWS Black Belt Online Seminar Apache Spark Performnace Tuning for AWS ...202201 AWS Black Belt Online Seminar Apache Spark Performnace Tuning for AWS ...
202201 AWS Black Belt Online Seminar Apache Spark Performnace Tuning for AWS ...Amazon Web Services Japan
 

More from Amazon Web Services Japan (20)

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のご紹介
 
202201 AWS Black Belt Online Seminar Apache Spark Performnace Tuning for AWS ...
202201 AWS Black Belt Online Seminar Apache Spark Performnace Tuning for AWS ...202201 AWS Black Belt Online Seminar Apache Spark Performnace Tuning for AWS ...
202201 AWS Black Belt Online Seminar Apache Spark Performnace Tuning for AWS ...
 

Recently uploaded

株式会社ベクトル総研会社概要 Vector Research Institute (VRI) Corporate Profile
株式会社ベクトル総研会社概要 Vector Research Institute (VRI) Corporate Profile株式会社ベクトル総研会社概要 Vector Research Institute (VRI) Corporate Profile
株式会社ベクトル総研会社概要 Vector Research Institute (VRI) Corporate Profilevrihomepage
 
エンジニア採用のミスマッチを防ぐコーディング試験サービス『HireRoo(ハイヤールー)』
エンジニア採用のミスマッチを防ぐコーディング試験サービス『HireRoo(ハイヤールー)』エンジニア採用のミスマッチを防ぐコーディング試験サービス『HireRoo(ハイヤールー)』
エンジニア採用のミスマッチを防ぐコーディング試験サービス『HireRoo(ハイヤールー)』Kousuke Kuzuoka
 
HRMOS(ハーモス)タレントマネジメント_ご紹介資料_Saleshub掲載用
HRMOS(ハーモス)タレントマネジメント_ご紹介資料_Saleshub掲載用HRMOS(ハーモス)タレントマネジメント_ご紹介資料_Saleshub掲載用
HRMOS(ハーモス)タレントマネジメント_ご紹介資料_Saleshub掲載用wataruhonda3
 
第15回販促コンペ 審査員個人賞(林 知幸 氏) アルカナ? アディダスジャパン
第15回販促コンペ 審査員個人賞(林 知幸 氏) アルカナ? アディダスジャパン第15回販促コンペ 審査員個人賞(林 知幸 氏) アルカナ? アディダスジャパン
第15回販促コンペ 審査員個人賞(林 知幸 氏) アルカナ? アディダスジャパンYusuke Katsuma
 
JAPAN WEB3.0 AWARD 2023 ブロックチェーン(NFT)技術を活用したアイディア 優秀賞作品 遺3.0相続
JAPAN WEB3.0 AWARD 2023 ブロックチェーン(NFT)技術を活用したアイディア 優秀賞作品 遺3.0相続JAPAN WEB3.0 AWARD 2023 ブロックチェーン(NFT)技術を活用したアイディア 優秀賞作品 遺3.0相続
JAPAN WEB3.0 AWARD 2023 ブロックチェーン(NFT)技術を活用したアイディア 優秀賞作品 遺3.0相続Yusuke Katsuma
 
hakuten_company profile for saleshub_202404
hakuten_company profile for saleshub_202404hakuten_company profile for saleshub_202404
hakuten_company profile for saleshub_202404keiibayashi
 
株式会社AllAdsと申します。サービス紹介資料で御座いますので、是非ご覧くださいませ。
株式会社AllAdsと申します。サービス紹介資料で御座いますので、是非ご覧くださいませ。株式会社AllAdsと申します。サービス紹介資料で御座いますので、是非ご覧くださいませ。
株式会社AllAdsと申します。サービス紹介資料で御座いますので、是非ご覧くださいませ。takuyamatsumoto29
 
株式会社フィジオ会社説明資料|採用の際の福利厚生やカルチャーなどを紹介しています
株式会社フィジオ会社説明資料|採用の際の福利厚生やカルチャーなどを紹介しています株式会社フィジオ会社説明資料|採用の際の福利厚生やカルチャーなどを紹介しています
株式会社フィジオ会社説明資料|採用の際の福利厚生やカルチャーなどを紹介していますchizurumurakami
 
HCCソフト株式会社 2025年新卒採用向け 会社紹介・採用情報資料------
HCCソフト株式会社 2025年新卒採用向け 会社紹介・採用情報資料------HCCソフト株式会社 2025年新卒採用向け 会社紹介・採用情報資料------
HCCソフト株式会社 2025年新卒採用向け 会社紹介・採用情報資料------ssusercbaf23
 
ROMS_recruting_deck_for_website_20240322.pdf
ROMS_recruting_deck_for_website_20240322.pdfROMS_recruting_deck_for_website_20240322.pdf
ROMS_recruting_deck_for_website_20240322.pdfhirokisawa3
 
chouhou_obuse_reiwa6nenn_4_2404slide.pdf
chouhou_obuse_reiwa6nenn_4_2404slide.pdfchouhou_obuse_reiwa6nenn_4_2404slide.pdf
chouhou_obuse_reiwa6nenn_4_2404slide.pdfssuser31dbd1
 

Recently uploaded (12)

株式会社ベクトル総研会社概要 Vector Research Institute (VRI) Corporate Profile
株式会社ベクトル総研会社概要 Vector Research Institute (VRI) Corporate Profile株式会社ベクトル総研会社概要 Vector Research Institute (VRI) Corporate Profile
株式会社ベクトル総研会社概要 Vector Research Institute (VRI) Corporate Profile
 
エンジニア採用のミスマッチを防ぐコーディング試験サービス『HireRoo(ハイヤールー)』
エンジニア採用のミスマッチを防ぐコーディング試験サービス『HireRoo(ハイヤールー)』エンジニア採用のミスマッチを防ぐコーディング試験サービス『HireRoo(ハイヤールー)』
エンジニア採用のミスマッチを防ぐコーディング試験サービス『HireRoo(ハイヤールー)』
 
HRMOS(ハーモス)タレントマネジメント_ご紹介資料_Saleshub掲載用
HRMOS(ハーモス)タレントマネジメント_ご紹介資料_Saleshub掲載用HRMOS(ハーモス)タレントマネジメント_ご紹介資料_Saleshub掲載用
HRMOS(ハーモス)タレントマネジメント_ご紹介資料_Saleshub掲載用
 
第15回販促コンペ 審査員個人賞(林 知幸 氏) アルカナ? アディダスジャパン
第15回販促コンペ 審査員個人賞(林 知幸 氏) アルカナ? アディダスジャパン第15回販促コンペ 審査員個人賞(林 知幸 氏) アルカナ? アディダスジャパン
第15回販促コンペ 審査員個人賞(林 知幸 氏) アルカナ? アディダスジャパン
 
Japan IT Week 2024 Brochure by 47Billion
Japan IT Week 2024 Brochure by 47BillionJapan IT Week 2024 Brochure by 47Billion
Japan IT Week 2024 Brochure by 47Billion
 
JAPAN WEB3.0 AWARD 2023 ブロックチェーン(NFT)技術を活用したアイディア 優秀賞作品 遺3.0相続
JAPAN WEB3.0 AWARD 2023 ブロックチェーン(NFT)技術を活用したアイディア 優秀賞作品 遺3.0相続JAPAN WEB3.0 AWARD 2023 ブロックチェーン(NFT)技術を活用したアイディア 優秀賞作品 遺3.0相続
JAPAN WEB3.0 AWARD 2023 ブロックチェーン(NFT)技術を活用したアイディア 優秀賞作品 遺3.0相続
 
hakuten_company profile for saleshub_202404
hakuten_company profile for saleshub_202404hakuten_company profile for saleshub_202404
hakuten_company profile for saleshub_202404
 
株式会社AllAdsと申します。サービス紹介資料で御座いますので、是非ご覧くださいませ。
株式会社AllAdsと申します。サービス紹介資料で御座いますので、是非ご覧くださいませ。株式会社AllAdsと申します。サービス紹介資料で御座いますので、是非ご覧くださいませ。
株式会社AllAdsと申します。サービス紹介資料で御座いますので、是非ご覧くださいませ。
 
株式会社フィジオ会社説明資料|採用の際の福利厚生やカルチャーなどを紹介しています
株式会社フィジオ会社説明資料|採用の際の福利厚生やカルチャーなどを紹介しています株式会社フィジオ会社説明資料|採用の際の福利厚生やカルチャーなどを紹介しています
株式会社フィジオ会社説明資料|採用の際の福利厚生やカルチャーなどを紹介しています
 
HCCソフト株式会社 2025年新卒採用向け 会社紹介・採用情報資料------
HCCソフト株式会社 2025年新卒採用向け 会社紹介・採用情報資料------HCCソフト株式会社 2025年新卒採用向け 会社紹介・採用情報資料------
HCCソフト株式会社 2025年新卒採用向け 会社紹介・採用情報資料------
 
ROMS_recruting_deck_for_website_20240322.pdf
ROMS_recruting_deck_for_website_20240322.pdfROMS_recruting_deck_for_website_20240322.pdf
ROMS_recruting_deck_for_website_20240322.pdf
 
chouhou_obuse_reiwa6nenn_4_2404slide.pdf
chouhou_obuse_reiwa6nenn_4_2404slide.pdfchouhou_obuse_reiwa6nenn_4_2404slide.pdf
chouhou_obuse_reiwa6nenn_4_2404slide.pdf
 

[AWSマイスターシリーズ]Amazon Elastic Load Balancing (ELB)

  • 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マイスターシリーズ Elastic Load Balancing 2013.6.12 アマゾンデータサービスジャパン株式会社 ソリューション アーキテクト 舟崎 健治 平山 毅 安川 健太
  • 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 Agenda 2. ELB各種機能詳細とTips 5. まとめ 1. ELB基本編 3. ELBと各種サービスの連携 4. ELB負荷試験時のTips
  • 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 1. ELB基本編
  • 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. 4 ELB: Elastic Load Balancingとは? AWSクラウド上のロードバランシングサービス ELBの特徴  負荷分散 : リクエストを複数のバックエンドのサーバーに分散  スケーラブル: ELB自体が負荷に応じてキャパシティを増減  高い可用性: 複数のAvailability Zoneに跨がるトラフィック分配  ヘルスチェック機能: 健全なEC2にのみトラフィックを分配  安価な従量課金: 従量課金で利用可能 AWS Management Console、API、コマンドラインツール、SDKで コントロール可
  • 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 ELBの概念図 AZ a AZ b ELB ユーザー クライアント Web コンソール 開発者 HTTP / HTTPS / TCP / SSL HTTP / HTTPS / TCP / SSL EC2 EC2
  • 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 ELBによる負荷分散 バックエンドのEC2インスタンスのリクエスト数や コネクション数を基に負荷分散 コネクション数・リクエスト数 が均等になるよう割り振る サポートしているプロトコル (L7)HTTP, HTTPS (L4)TCP, SSL
  • 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 ELBのスケーリング ELBは負荷の増減に応じて自動でスケール (キャパシティを自動で増加する) 注:ELBがスケールするときには、IPアドレスが変化 • ELBへアクセスするときには必ずDNS名で! • 独自ドメインに割り当てる際はCNAMEにて
  • 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 複数AZ利用による高い可用性 AZ A AZ B ELB エンド ポイント DNS ラウンド ロビン ELBによる 負荷分散 ELBによる 負荷分散 AZ配下の EC2台数はAZ 間で均等化を 推奨 2段階で負荷分散 • DNSラウンドロビンによるAZ間振り分け • AZ内ではコネクション数などを見ながら負荷分散 Internet Internet Gateway
  • 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 バックエンドのヘルスチェック ELBは指定した設定に基づき、バックエンドのインスタンス のヘルスチェックを行う • Pingプロトコル:例:HTTP • Pingポート:例 80番 • Pingパス(HTTP利用時) :例 /index.html • ヘルスチェック間隔:例 12分 健全/不健全を判定するまでの ヘルスチェックの成功・失敗回数 は指定可能 ヘルスチェックを意図的に失敗させることで特定のインスタ ンスへのリクエスト振り分けを止めることも可
  • 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 使いやすくて安価な従量課金 時間当たりの利用料は、複数AZ配置構成でも同一 ELBにリザーブドプランはなし 処理量は右図の通り 2013年6月12日現在 50K ⇒100K 50K 50K 50K
  • 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 2. ELBの各種機能詳細とTips
  • 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 ELBの各種機能詳細とTips ELB利用時のTips • AZとバックエンドキャパシティの関係 • 独自ドメインでの利用 • クライアントのIPアドレス取得 • ELBとバックエンドのコネクション SSLサポート VPCでの利用 ELBとSecurity Group ELBのスケーリング Stickyセッション
  • 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 ELBの各種機能詳細とTips ELB利用時のTips • AZとバックエンドキャパシティの関係 • 独自ドメインでの利用 • クライアントのIPアドレス取得 • ELBとバックエンドのコネクション SSLサポート VPCでの利用 ELBとSecurity Group ELBのスケーリング Stickyセッション
  • 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 ELBとアベイラビリティゾーン(AZ)と リージョン リージョン内の複数のAZに負荷分散可能 • リージョンを越えたトラフィック分散は行わない 規模を問わず複数AZの利用を推奨 Availability Zone Availability Zone myLB-xxx.elb.amazonaws.com
  • 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 ELBとAZ内キャパシティの関係 ELBで有効になっているAZ間で均等に負荷分散される Availability Zone Availability Zone 10 2 Availability Zone Availability Zone 6 6 myLB- xxx.elb.amazonaws.com myLB- xxx.elb.amazonaws.com 良くない例:AZ間でキャパシティが不均等 良い例:AZ間でキャパシティが均等
  • 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 独自ドメインの利用 CNAMEを利用 • ドメインのDNSサーバに設定を投入すれば完了 • Zone Apexの場合 • 通常のDNSサーバではCNAME設定不可  Route 53のエイリアスレコードを使うことで対応可能 www.foo.example.com CNAME myLB-xxxx.ap-northeast-1.elb.amazonaws.com
  • 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 クライアントのIPアドレス取得 バックエンドサーバのアクセスログにはELBのIPアドレ スのみが含まれる • クライアントELB, ELBバックエンドのコネクションは それぞれ独立しているため HTTPならX-Forwarded-Forリクエストヘッダで参照可 • 例: X-Forwarded-For: 203.0.113.7, 10.12.33.44, 10.12.23.88 Client IP address 送信元 経由するルート
  • 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 ELBとTCPコネクション クライアント  ELB のコネクション • アイドル状態が60秒続くとそのコネクションを切断する ELB バックエンドインスタンスのコネクション • Keepaliveの設定を推奨 • コネクションタイムアウト値を60秒以上に設定することを推奨 • 60秒以下の場合、ELBがそのEC2インスタンスを不健全と判定し、 トラフィックを送らなくなることがあるので注意
  • 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 ELBの各種機能詳細とTips ELB利用時のTips • AZとバックエンドキャパシティの関係 • 独自ドメインでの利用 • クライアントのIPアドレス取得 • ELBとバックエンドのコネクション SSLサポート VPCでの利用 ELBとSecurity Group ELBのスケーリング Stickyセッション
  • 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 SSL Termination ELBでSSL Terminationも可能 1. ELBでSSL Terminationし、バックエンドとはSSLなし 2. ELBでSSL Terminationし、バックエンドと別途SSL 3. SSLをバイパスしてバックエンドにTCPで送信 • 1, 2の場合、SSL証明書をELBで一元管理可能 • Cipherの選択も可能 HTTP or HTTPS HTTP or HTTPS
  • 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. 21 SSL Termination時のサーバ証明書 ELBにSSL証明書をアップロード • バックエンドとの通信にSSLを用いないなら証明書の管理が容易 • マネージメントコンソール or IAM APIで設定 SSL証明書 (*)証明書のライセンスに関しては、ドメイン単位/サーバ単位 で発行などそれぞれ異なるので発行元に問い合わせの事
  • 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. ELBでのSSL証明書の管理 SSLを用いる場合、 ウィザードの中で SSLの選択/インポー ト画面が出てくる ELBへのSSL証明書の設定
  • 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 ELBへのSSL証明書の設定 ~API編~ IAMのAPIを利用 http://docs.aws.amazon.com/IAM/latest/UserGuide/InstallC ert.html iam-servercertupload -b public_key_certificate_file -c certificate_chain_file -k privatekey.pem -s certificate_object_name
  • 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. 24 バックエンドインスタンスの認証 ELBとバックエンドインスタンス間でHTTPS/SSL使用 時に、オプションでバックエンドの認証を利用可能
  • 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. 25 ELBの各種機能詳細とTips ELB利用時のTips • AZとバックエンドキャパシティの関係 • 独自ドメインでの利用 • クライアントのIPアドレス取得 • ELBとバックエンドのコネクション SSLサポート VPCでの利用 ELBとSecurity Group ELBのスケーリング Stickyセッション
  • 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. 26 VPC内での利用 AZ : a AZ : b Subnet : a1 Subnet : a2 Subnet : b1 ELB エンド ポイント DNS ラウンド ロビン ELBによる 負荷分散 ELBによる 負荷分散 AZ配下の EC2台数はAZ 間で均等化を 推奨 VPCとELBは同一Region内にAZを超えて作成 (※SubnetはAZをまたいだ構成ができない) VPC by default後、ELBはVPC内に配置が基本 Internet Internet Gateway
  • 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. 27 VPC対応概要 ELB inside VPCの機能  ELBのトラフィックをサブネッ トをまたいで分散も可能  ELBにセキュリティグループが 設定可能 ELB inside VPCの制約 (2013年6月時点)  IPv6サポート現状なし  Dedicatedインスタンスは サポートせず  /27 CIDRブロック以上の Subnetが必要
  • 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. 28 VPC内のELB配置設定方法 作成済のVPC一覧が表示 されるため、ELBを配置 するVPCを選択 Public Subnet(Internet GatewayがアタッチされたSubnet) を作成(アタッチされていないとエラー)
  • 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. 29 ELBを配置するVPC内Subnetの指定 EC2-Classicの場合と違いVPC内に配置する場合は ELBを配置するVPC Subnetを明示的に各AZにつき1つ指定 ELBを配置するSubnetを 指定 複数AZ構成の場合各AZ に1つSubnetを指定 (注意)/27よ り小さな Subnetを選択 するとエラー
  • 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. 30 Internal ELB プライベートIPアドレスのみを持つELB  グローバルIPアドレスを持たないこと以外は “VPC内ELBと同機能”  VPC内のみで利用可 (EC2-Classicでは不可)  Internet Gatewayが アタッチされていないVPCにも配置可 Internal ELBの制約  VPC外では作成不可  VPC内ELBと同様
  • 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. 31 ELBの各種機能詳細とTips ELB利用時のTips • AZとバックエンドキャパシティの関係 • 独自ドメインでの利用 • クライアントのIPアドレス取得 • ELBとバックエンドのコネクション SSLサポート VPCでの利用 ELBとSecurity Group ELBのスケーリング Stickyセッション
  • 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. 32 ELBのSecurity Group バックエンドはELBからのみ リクエストを受け付ける設定 を推奨 443 80 80 80 80 22 EC2-ClassicではELBは全て “amazon-elb/amazon-elb-sg” に属する
  • 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. 33 ELBのSecurity Group VPCではELBに任意のSecurity Groupを設定可能 • VPC Security Groupとして編集可 • Outbound設定についてはELB自身が能動的に外部と通信を確立すること はないため特に設定不要 既存のVPC内のセ キュリティグルー プの選択も可能 新規作成も可能 (この際は Inboundのみ)sg-ELB 443: 0.0.0.0/0 sg-EC2 80:sg-ELB 22:10.0.0.0/24 443 80 80 80 80 CIDR : 10.0.0.0/24 22
  • 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. 34 ELBの各種機能詳細とTips ELB利用時のTips • AZとバックエンドキャパシティの関係 • 独自ドメインでの利用 • クライアントのIPアドレス取得 • ELBとバックエンドのコネクション SSLサポート VPCでの利用 ELBとSecurity Group ELBのスケーリング Stickyセッション
  • 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. 35 ELBのスケーリング詳細 ELBは負荷に応じてスケールする 但し、以下のような場合にELBがHTTP 503を返す • ELBへの接続・リクエストが瞬間的に急増したために、ELBのス ケーリングが間に合わない場合 • TVやメディアによるサービス紹介、等 回避方法 • 事前にELBをスケールさせておく • 負荷をかける • Pre-Warming(暖気運転)の申請を行う
  • 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. 36 ELBの暖気運転(Pre-Warming) Business/Enterpriseサポートに加入者様向けにELBを 事前にスケールさせておく操作 急激なトラフィックの増加が予想される場合に有効 • メディアで自社サイトが紹介される、等 ELBの負荷テストで、段階的にスケールさせることが出 来ない場合にも有効
  • 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. 37 ELBの各種機能詳細とTips ELB利用時のTips • AZとバックエンドキャパシティの関係 • 独自ドメインでの利用 • クライアントのIPアドレス取得 • ELBとバックエンドのコネクション SSLサポート VPCでの利用 ELBとSecurity Group ELBのスケーリング Stickyセッション
  • 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. 38 Stickyセッション Stickyセッションを使うと、同じユーザから来たリクエ ストを全て同じインスタンスに送信可能 Stickyセッションの種類は以下2パターン • Application Genereated Cookie Stickiness • Load Balancer Generated Cookie Stickiness ELBがどのくらいの期間同じインスタンスにルーティン グし続けさせるかを決めることが重要
  • 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. 39 Application Generated Cookie Stickiness アプリケーション固有のセッション維持を行う アプリケーションに独自のセッションCookieがある場合 等に利用 例:Webサービスへのユーザーログ イン時にCookieを生成。ログアウト 時にCookie削除
  • 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. 40 Load Balancer Generated Cookie Stickiness 期間ベースのセッション維持を行う アプリケーションに独自のセッションCookieがない場合、 ELB側でセッション維持を管理したい場合に利用 ELB側で期限付きCookieを生成
  • 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. 41 3. ELBと各種サービスの連携
  • 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. 42 CloudWatchとの連携 CloudWatchによりELBの以下を監視可能 • 遅延時間 • リクエスト数 • 健全なホスト数 • 不健全なホスト数 • バックエンドの2xx-5xxレスポンス数 • ELBの4xxと5xxのレスポンス数 監視
  • 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. 43 Auto Scalingとの連携 Auto Scalingによるインスタンス増減時にELBへのアタッ チ・デタッチが可能 ELBのヘルスチェックの結果をAuto Scalingに反映可能 利用例: • 一定間隔でレスポンスをチェックし、遅延が増加したらインスタ ンスを自動追加 • ELBのヘルスチェックが成功したEC2インスタンスを常にX台以上 Auto scaling Group 増減
  • 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 Route53 DNSフェイルオーバ対応 Route53のヘルスチェック機能と連携 • 例:アプリケーション障害時にSorryペー ジヘ誘導 正常時 フェイルオーバ時 S3 Bucket 1. DBに問題発生 2. AppサーバのELB ヘルスチェック失敗 3. ELB可に健全なイ ンスタンスなし 4. フェイルオーバ 5. Sorry ページ
  • 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. 45 Route53 DNSフェイルオーバ対応 設定方法 • Alias Target にELBを指定し、 Routing Policyに「Failover」を選択 Evaluate Target Health: [Yes] 「Associate with Health Check」: 既存のヘルスチェッ クとの関連付け。 「ELB」の場合は原 則「No」を選択
  • 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. 46 User AWS Management Console スタック Load Balancerレイヤー App Serverレイヤー Databaseレイヤー レシピ レシピ レシピ DB Web /App Web /App LB ①スタックの作成 ②レイヤーの作成 ③レシピの作成・設定 (ビルトイン レシピ利用可) ④レイヤーにインスタ ンス追加・起動 ⑤レシピによって パッケージインス トール、設定 LBとしてELBが選択可能に OpsWorksでELBをLBレイヤーに利用可能に OpsWorksのELB対応
  • 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. 47 4ELB負荷テストに関するTips
  • 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 ELBを負荷テストする必要性について ELBのいくつかの特長がテストシナリオに影響を与える 可能性がある。 • ELBのスケーリング • ELBの初期キャパシティ • アイドルコネクションタイムアウト • バックエンドインスタンスのヘルスチェック • Stickyセッション、等 ご利用内容に合わせたシナリオでテストが必要
  • 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 ELBの負荷テスト方法の種類 シングルクライアントテスト • 例:Apache Bench(ab) マルチクライアントテスト • 例:curl-loader (都度DNS解決を行うツールが望ましい) 分散テスト • 例:Fabricフレームワーク、 BeesWithMachineGuns ※いずれのテストにおいても、クライアントの負荷が足り ない場合はクライアント数を増やす等で対応可 負荷生成 クライアント バックエンドイン スタンス
  • 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 推奨テストアプローチ 想定する最大負荷のテスト 通常のトラフィック時のテスト • トラフィックの多い時 • トラフィックの少ない時 • トラフィックの傾向に変化がある時(朝や昼の時間帯など) 短い時間でトラフィックが大きく変化する場合のテスト ※ELB以外にも負荷生成クライアント、バックエンドEC2 インスタンスも監視すべき • アプリケーション内部の動作も要確認 時間 負荷
  • 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 負荷テストの注意事項 ELBの初期スケールに注意 • スケールするまでに、HTTP 503レスポンスを返す期間があり得る • 回避策: • ELBの暖気運転( Pre-Warming)申請をする • 5分間隔で50%以上のトラフィック増加をしないよう負荷テストを設定 DNSクエリの仕方に注意 • テストクライアント側で少なくとも1分に1回DNSの再解決をする スティッキーセッション利用時の割り振り方 • 同じCookieでリクエストを続けた場合などは振り分けに偏りが バックエンドインスタンスのアイドルタイムアウト • 60秒以上に設定しないとELBが誤って不健全なホストと見なす可能性あり
  • 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 5.まとめ
  • 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. 53 まとめ ELBはAWSが提供するロードバランシングサービス • 運用管理コストを抑えながらスケーラブルで高可用なインフラ を構築可能 • 各種サービスとの連携もスムーズ&随時拡充 • 負荷試験時はその特性を理解した上で • 急激な負荷の増大が想定される場合には、サポート加入の上で 暖気申請(Pre-Warming)を
  • 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. 54 日本語Link (クラウドサービス活用集に掲載) VPC内ELB配置設計指針 ロードバランサとSocket接続を使用したイベント通知 サーバの負荷分散 Elastic Load Balancing開発者ガイド • http://docs.aws.amazon.com/ja_jp/ElasticLoadBalancing/lat est/DeveloperGuide/Welcome.html Elasitc Load Balancingを評価するためのベストプラク ティス • http://d36cz9buwru1tt.cloudfront.net/jp/documentation/Be stPracticesInEvaluatingELB-ja-final.pdf
  • 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. 55 英語Link(最新版) 参考資料 • Amazon Elastic Load Balancing Developer Guide http://docs.aws.amazon.com/ElasticLoadBalancing/latest/Devel operGuide/Welcome.html • Best Practices in Evaluating Elastic Load Balancing http://aws.amazon.com/articles/1636185810492479 • Amazon ELB FAQ http://aws.amazon.com/ec2/faqs/ Elastic Load Balancing の箇所 • AWS re: Invent CPN 205: Zero to Millions of Requests https://www.youtube.com/watch?v=xKF-Aawz9oc