0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

IBM Cloud ALBがヘルス・チェックで送信する内容

Last updated at Posted at 2022-05-18

ALBがヘルス・チェックで送信する内容

IBM Cloud ALB (Application Load Balancer for VPC) でヘルス・チェックを設定した際に、
届いたパケットをサーバー(Nginx)側でキャプチャーした結果を記載する。

構成

  • ALB
    • フロントエンド・リスナー:Http port 80
    • バックエンド・プール
      • ヘルス・チェック(HTTP) : GET / HTTP/1.0
      • ヘルス・チェック(TCP) : TCP port 80
      • サーバー:HTTP port 80
  • サーバー
    • Nginx version 1.16.1

キャプチャー結果 (HTTP)

Nginx上でtcpdump -w ファイル名で取得

ALB
(192.168.0.8)
向き サーバー
(192.168.0.4)
説明
1 TCP Syn TCP 3 hands shake Port 80
2 TCP Syn-Ack TCP 3 hands shake
3 HTTP Get GET / HTTP/1.0\r\n
4 TCP Ack TCP 3 hands shake
5 TCP Psh Ack
6 HTTP Response HTTP/1.1 200 OK Connection:close
7 TCP RST
8 TCP RST
  • サーバーからHTTP/1.1 200 OK Connection:closeのレスポンスを受け取ると、ALBはRSTで切断した。
  • ALBはサーバーからStatus Code 200 OKの応答があるとSuccess(合格)と判定する。

Wiresharkでの表示結果

キャプチャー結果 (TCP)

Nginx上でtcpdump -w ファイル名で取得

ALB
(192.168.0.8)
向き サーバー
(192.168.0.4)
説明
1 TCP Syn TCP 3 hands shake Port 80
2 TCP Syn-Ack TCP 3 hands shake
3 TCP RST
  • サーバーからTCP Syn-Ackのレスポンスを受け取ると、ALBはRSTで切断した。
  • ALBはサーバーからTCP Syn-Ackの応答があるとSuccess(合格)と判定する。

参考リンク

IBM Cloud Application Load Balancer for VPC についての FAQ
https://cloud.ibm.com/docs/vpc?topic=vpc-load-balancer-faqs&locale=ja

※上記ヘルス・チェックの送信内容についての記述はありません。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?