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?

【AWS】ALBのタイムアウト設定

Posted at

はじめに

EC2(APP)直アクセスの構成からALB経由のAPPサーバー2台構成に変更した際、
大量のCSVデータ出力でタイムアウトが発生するようになった。

原因

EC2のnginxの設定は5分としていたので従来はタイムアウトにならなかったが、
ALB側にもタイムアウトの設定があり、こちらに抵触しタイムアウトとなっていた。

対応

ALBのタイムアウト設定をEC2のnginxの設定と同じように5分に変更することで解決。

設定方法

EC2 > ロードバランサー > 対象ALB より
属性の編集にある接続アイドルタイムアウトの時間を変更すればOK。
ALB _1.png

ALB _2.png

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?