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

[AWS]Auto Scalingで終了されるインスタンスの選択基準

More than 1 year has passed since last update.

はじめに

Auto Scalingの(デフォルトの)終了ポリシーが毎回よくわからなくなるので、ちょっと整理してみました。
スケールインが発生した場合、AZ→インスタンスの順で判定が発生します。

(参考ページ)
https://aws.amazon.com/jp/autoscaling/
https://docs.aws.amazon.com/ja_jp/autoscaling/ec2/userguide/as-instance-termination.html

判定①AZの選択(マルチAZ構成の場合)

  1. 稼働中のインスタンスが最も多い
  2. 起動設定(Launch Configuretion)が最も古いインスタンスが所属している
  3. 1,2に該当するAZが複数ある場合はランダム

「起動設定が古い」とは、要するに起動時間が一番長い、ということらしい。

判定その②インスタンスの選択

  1. 起動時間(Launch Configuretion)が最も古い
  2. 課金発生時間が最も近い
  3. 1,2に該当するインスタンスが複数ある場合はランダム

(こちらも参考)
https://qiita.com/iron-breaker/items/2b55da35429da7b19e49

Why do not you register as a user and use Qiita more conveniently?
  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
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