Slow down ASG target tracking scale out

0

From what I can tell, ASG with target tracking does not define a cooldown period. As a result, if instances are slow to initialize, the ASG could scale out again, before the new instances join the work. Is there a way to make it wait longer before scaling out again?

Shahar
質問済み 2年前651ビュー
1回答
2
承認された回答

Cooldown is used by Simple Scaling and 100% blocks additional simple scaling policies from triggering until the cooldown expires.

Target tracking (and step scaling) use warmup instead. During the warmup (either set at the group level, or on the specific scaling policy), a given instance isn't counted towards the groups actual capacity yet, which prevents excessive scale outs. Here's an example, assume each top level bullet is 1 minute apart and there's a 5 minute warmup set

  • Group is stable with desired capacity of 4 and 4 instances
  • High usage alarm triggers target tracking
    • target tracking calculates a +1 change
    • 4 + 1 = 5; new desired is set to 5 and 1 instance is launched
  • High alarm is still going off, and metric value is roughly the same
    • target tracking again calculates a +1 change
    • 1 instance is still in warmup and isn't counted towards the groups capacity yet, so the calculation is still:
    • 4 + 1 = 5; new desired should be 5 so no instances are launched
  • High alarm is still going off, but metric value went up
    • target tracking calculates a +2 change
    • 1 instance is still in warmup and isn't counted towards the groups capacity yet, so the calculation is:
    • 4 + 2 = 6; new desired is set to 6, so 1 instance is launched

This way the ASG can still dynamically react to increasing metric values, but it shouldn't over scale while the instance is still warming up. Note that warmup starts AFTER lifecycle hooks are done (if you're using launching lifecycle hooks)

AWS
回答済み 2年前
profile pictureAWS
エキスパート
レビュー済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ