LoginSignup
11
9

More than 5 years have passed since last update.

Google Cloud Load Balancing を使って負荷分散してみる

Posted at

設定

  • GoogleCloudLoadBalancing を使って、Webサーバー2台に対してアクセスを分散する
  • Webサーバーは GoogleComputeEngine(GCE) でLinux+nginxで作成済み

ファイアウォールを設定

GoogleCloudPlatform(GCP)のメニューから、
ネットワーキング > ファイアウォール ルール
を選択

2017-05-30_19h16_40.png

GCEのインスタンス詳細で、ネットワークタグに、ファイアウォールルールで指定したターゲットタグ(画像だと http-server)を追加
2017-05-30_19h19_18.png

ヘルスチェック

GCPメニュー > Compute Engine > ヘルスチェック
名前入力して他はデフォルト
2017-05-30_19h23_47.png

外部IPアドレス

GCPメニュー > ネットワーキング > 外部IPアドレス
2017-05-30_19h32_44.png

インスタンスグループ

2017-05-30_19h48_14_2.png

HTTPロードバランサ

GCPメニュー > ネットワーキング > 負荷分散
ロードバランサを作成 > HTTP(S)負荷分散 設定を開始
2017-05-30_19h52_34.png

2017-05-30_19h54_06.png

2017-05-30_19h55_01.png

「バックエンドの設定」「ホストとルール」「フロントエンドの設定」まで済んだら、「確認と完了」で設定の内容を確認、問題なければ [作成] をクリックして、完成。

11
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
9