Help us understand the problem. What is going on with this article?

AWS Codedeployでデプロイが遅い時の対処法

More than 1 year has passed since last update.

TL;DR

ELBヘルスチェックのしきい値を最小まで下げると高速化します

ss3.png

環境

CLB(Classic Load Balancer)
インプレースデプロイ
EC2インスタンス2台(AZ)

何が起こったのか

codedeployにてデプロイは成功するものの、BlockTrafficAllowTraffic が5分もかかっている・・・。

ss1.png

そんなばかな・・・こんなもんなの?インプレースだから?と思ったが

AWSフォーラムに答えがありました。

どうやら、デプロイのライフサイクル中の BlockTrafficAllowTrafficはELBのヘルスチェックに依存するらしく、ヘルスチェックの値を適宜変更しなければならないよう。

とりあえず、ヘルスチェック設定の最小しきい値を上から順に 2,5,2,2に設定すると

ss2.png

5分1秒 → 16秒まで短縮されました :relaxed:

もっと高速化できないのかな?
ひとまず解決ということで。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした