以下の内容はhttps://dk521123.hatenablog.com/entry/2019/10/19/212241より取得しました。


【AWS】ELB ~ Auto Scaling ~

■ はじめに

https://dk521123.hatenablog.com/entry/2017/02/17/232855 https://dk521123.hatenablog.com/entry/2017/02/27/234919

の続き。

今回は、AWS の Auto Scaling(オートスケーリング)について、学ぶ。

 【1】使用上の注意

 * ヘルスチェックでヘルシーではないと判断された場合、
 EC2起動停止ではなく削除
  => ログなどの情報もなくなる
  => サーバは、ペット(大切にしケガ(故障)時には直す)で、
     クラウドは、家畜(大事にせずに、使い捨て)って話があるらしいが、
     もう従来のサーバ管理の意識で仕事をするのは難しい時代なのかな...

 1)今後、必要になりそうなサイト

Terminatedする前にログを逃がす

 * 以下のライフサイクルを使って、ログを逃がす

http://docs.aws.amazon.com/ja_jp/autoscaling/latest/userguide/lifecycle-hooks.html
http://dev.classmethod.jp/cloud/aws/autoscaling-lifecyclehook/

 * 上記でやりたいが、少し時間がかかりそうなので、以下でもできるらしい

https://cloudpack.media/684

 【2】用語整理

 * 一般的なものとして用語を整理する。
 * 一般的な用語なら、「インスタンス」⇒「仮想マシン/サーバー」と読み替えればいい。

1)スケールイン

 * システムを構成するインスタンスを減らすこと

http://docs.aws.amazon.com/ja_jp/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html#as-lifecycle-scale-in

2)スケールアウト

 * システムを構成するインスタンスを増やすこと

http://docs.aws.amazon.com/ja_jp/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html#as-lifecycle-scale-out

3)スケールダウン

 * システムを構成するインスタンスのグレードを減らすこと

4)スケールアップ

 * システムを構成するインスタンスのグレードをあげること

5)オートスケーリング

http://docs.aws.amazon.com/ja_jp/autoscaling/latest/userguide/WhatIsAutoScaling.html

 * 負荷に合わせて インスタンス数を自動的にスケールイン/スケールアウトする機能

 6)ライフサイクルフック

 * インスタンス起動時/終了時に、独自の処理を実行できる

http://docs.aws.amazon.com/ja_jp/autoscaling/latest/userguide/lifecycle-hooks.html

 参考文献

http://www.atmarkit.co.jp/ait/articles/1407/15/news007.html
http://qiita.com/iron-breaker/items/2b55da35429da7b19e49
読みやすかった
http://toach.click/hello-aws-auto-scaling/
AutoScalingを使う際の注意点

 * 勉強になった。ログなくなるのは不具合が出たときにまずいかも...

http://dev.classmethod.jp/cloud/aws/autoscaling_considerations-for-system-configuration/
http://postd.cc/5-aws-mistakes-you-should-avoid/
https://cloudpack.media/11470
https://d0.awsstatic.com/webinars/jp/pdf/services/20170315_AWS-BlackBelt-AutoScaling.pdf

 関連記事

ELB / ALB ~ 入門編 ~
https://dk521123.hatenablog.com/entry/2017/02/17/232855
ELB / ALB ~ パスベースのルーティング ~
https://dk521123.hatenablog.com/entry/2017/02/27/234919
ELB / ALB に関するトラブル「HTTP 502: Bad Gateway」が表示
https://dk521123.hatenablog.com/entry/2018/01/13/212430




以上の内容はhttps://dk521123.hatenablog.com/entry/2019/10/19/212241より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14