Auto Scaling launches a new EC2 instance.
Do not register it with the load balancer until configuration and agent installation finish.
Which feature is most appropriate?
Use an Auto Scaling lifecycle hook with a Pending:Wait state and run initialization through a managed procedure.
Detailed explanation
S3 object lifecycle management does not initialize an EC2 instance.
S3 object lifecycle management does not initialize an EC2 instance.
DNS TTL does not control the Auto Scaling lifecycle.
DNS TTL does not control the Auto Scaling lifecycle.
The hook pauses the lifecycle transition until initialization is complete, avoiding premature traffic.
The hook pauses the lifecycle transition until initialization is complete, avoiding premature traffic.
Manual registration adds delay and can be missed during automatic scaling.
Manual registration adds delay and can be missed during automatic scaling.
Check official documentation
Compare the following points with the official documentation.
EC2 Auto Scaling lifecycle hooksの公式説明を確認する。
What to confirm
起動状態とサービス参加状態の間に初期化待機を置ける。
Key points
- Lifecycle hook
- Pending:Wait
- Initialization
Notes
- Environment: AWS公式SOA-C03試験ガイドとAWS公式ドキュメントの確認
- Confirm current AWS service behavior in the official documentation.
Foundation review
Readiness boundary
A running process is not necessarily ready to serve production requests.
Managed initialization
A controlled procedure can install agents and report completion before the hook continues.